CVE-2026-77878

Control Web Panel (CWP) < 1.29 OS Command Injection via restoredatabase API

Published Nov 2, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Control Web Panel (CWP) versions prior to 1.29 contain an OS command injection flaw in the loopback API database restore route /v1/restoredatabase/. The restoreDBBackup() handler concatenates an attacker‑supplied file path from the POST body into a shell command without proper escaping. Because the command is executed with the web server’s root privileges, an attacker who can reach the /v1/restoredatabase/ endpoint can inject arbitrary OS commands that execute as root. This could allow exploitation to delete or modify files, install backdoors, or otherwise compromise the confidentiality, integrity, and availability of the host.

Affected Systems

Control Web Panel (CWP) webpanel software before version 1.29 is affected, impacting all installations running the webpanel module. Systems that have not applied the 1.29 upgrade remain vulnerable.

Risk and Exploitability

The CVSS score of 8.5 marks it as high severity. Because the exploit is performed remotely via a REST API, it is reachable from the Internet if the API endpoint is exposed. The EPSS score <1% indicates a very low probability of exploitation, and the absence of a CISA KEV listing suggests no known active exploitation. However, the high severity warrants proactive mitigation. The CVE description does not mention authentication, so it is inferred that an attacker who can reach the API does not need credentials; this inference is based solely on the lack of explicit authentication requirements. Consequently, without a patch, such an attacker can achieve full system compromise by executing shell commands as root.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Control Web Panel to version 1.29 or later where the command injection is fixed.
  • Restrict access to the /v1/restoredatabase/ API endpoint by firewall or authentication, ensuring only trusted administrators can invoke it.
  • Isolate the Control Web Panel server from untrusted networks by implementing network segmentation or placing it behind a VPN.

Generated by OpenCVE AI on November 3, 2026 at 20:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Control Web Panel (CWP) before webpanel_version 1.30 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. 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.
Title Control Web Panel (CWP) < 1.30 OS Command Injection via restoredatabase API Control Web Panel (CWP) < 1.29 OS Command Injection via restoredatabase API
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Type Values Removed Values Added
Description Control Web Panel (CWP) before webpanel_version 1.30 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.
Title Control Web Panel (CWP) < 1.30 OS Command Injection via restoredatabase API
First Time appeared Control-webpanel
Control-webpanel webpanel
Weaknesses CWE-78
CPEs cpe:2.3:a:control-webpanel:webpanel:*:*:*:*:*:*:*:*
Vendors & Products Control-webpanel
Control-webpanel webpanel
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 3, 2026, 5:01 PM
Reserved
Aug 21, 2026, 3:33 PM
Status
Deferred
Published
Nov 2, 2026, 4:17 PM
Modified
Nov 3, 2026, 5:18 PM