← Back to search

CVE-2026-77878

8.4 HIGH

Published 2026-11-02 · Updated 2026-11-02

AI risk analysis

Summary
Control Web Panel (CWP) before version 1.30 contains an OS command injection flaw in the /v1/restoredatabase/ endpoint, where an attacker-supplied file path is passed unsanitized to a shell command during database restoration, enabling arbitrary command execution as root.
Exploitability
Low-privilege local access to the loopback API route is sufficient; no authentication or user interaction required.
Blast radius
Successful exploitation grants full root-level compromise of the host, allowing complete data exfiltration, system modification, or lateral movement.
Detection
Look for POST requests to /v1/restoredatabase/ with suspicious file paths containing shell metacharacters (e.g., semicolons, backticks, $()) in CWP access logs; additionally, monitor for unexpected root-level process spawns or file writes triggered by web server processes.
Prioritized remediation
Upgrade to CWP webpanel_version 1.30 or later, which patches the command injection in the restoreDBBackup() handler.
os-command-injectionwebappprivilege-escalationcwploopback-api

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CWE-78

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.