---
id: CVE-2026-77878
title: Control Web Panel (CWP) < 1.29 OS Command Injection via restoredatabase API
summary: >-
  Control Web Panel (CWP) before webpanel_version 1.29 contains an OS command
  injection vulnerability in the loopback API database restore route
  /v1/restoredatabase/, where the restoreDBBackup() handler passes an
  attacker-controlled file p…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-78
vendor: Control Web Panel
product: Control Web Panel
affected:
  - control_web_panel < 1.29
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-11-02T15:49:43.834589Z'
published: '2026-11-02'
updated: '2026-11-03'
sourceUpdated: '2026-11-03T17:01:06.102Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-77878'
references:
  - url: 'https://control-webpanel.com/changelog'
    label: Changelog
  - url: >-
      https://www.vulncheck.com/blog/control-web-panel-pre-auth-module-dispatch-rce
    label: VulnCheck Blog
  - url: >-
      https://www.vulncheck.com/advisories/control-web-panel-cwp-os-command-injection-via-restoredatabase-api
    label: >-
      VulnCheck Advisory: Control Web Panel (CWP) < 1.30 OS Command Injection
      via restoredatabase API
tags:
  - cve.org
epss: 0.00848
epssPercentile: 0.58214
ingestedAt: '2026-11-05T20:33:06.297Z'
---

## Overview

Control Web Panel (CWP) before webpanel_version 1.29 contains an OS command injection vulnerability in the loopback API database restore route /v1/restoredatabase/, where the restoreDBBackup() handler passes an attacker-controlled file path from the POST body into a shell command without proper escaping. An attacker able to reach the route can inject arbitrary OS commands that execute as root.

## Affected

- `control_web_panel < 1.29`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
