CVE-2026-142506: CyberPanel before 3.0.9 Path Traversal via cancelRemoteBackup Handler
CyberPanel before 3.0.9 contains a path traversal vulnerability in the cancelRemoteBackup handler in backup/backupManager.py that allows users with the remoteBackups permission to delete arbitrary directories via the unvalidated dir parameter. Attackers can send traversal sequences or space-separated paths in dir to POST /backup/cancelRemoteBackup, causing root-executed rm -rf to delete arbitrary server directories.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated user with the remoteBackups permission can exploit it by sending a POST request to /backup/cancelRemoteBackup. The vulnerable handler runs rm -rf as root, so successful exploitation can delete arbitrary server directories.
Which deployments are affected?
CyberPanel versions before 3.0.9 are affected. The issue is in the cancelRemoteBackup handler in backup/backupManager.py.
What input is used to trigger the deletion?
The attacker supplies a crafted dir parameter containing traversal sequences or space-separated paths. The handler does not validate this parameter before it is passed to the root-executed deletion command.