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.
| Version | Type | Source | Base | Exp | Imp |
|---|---|---|---|---|---|
| 3.1 | Primary | NVD | 7.8 | 1.8 | 5.9 |
| 3.1 | Primary | cve.org | 7.8 | — | — |
| 3.1 | Secondary | NVD | 8.4 | 2.5 | 5.9 |
| 4.0 | Primary | cve.org | 8.5 | — | — |
| 4.0 | Secondary | ENISA EUVD | 8.6 | — | — |
| 4.0 | Secondary | NVD | 8.5 | — | — |