CVE-2026-136455: borg-ui before 2.4.1 Privilege Escalation via Backup Plan Path Traversal
borg-ui before 2.4.1 contains a privilege escalation vulnerability that allows a repository-scoped operator to escalate to full administrator by exploiting an unrestricted sourcedirectories field in the backup-plan API that lacks path allow-listing. Attackers can configure a backup plan to archive the application's data directory, download the resulting archive to extract the static HS256 .secretkey, and use it to forge a JWT with sub":"admin" to access admin-only endpoints like GET /api/auth/users, achieving full application takeover without admin credentials, XSS, or CSRF.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.4.1
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs repository-scoped operator privileges. No administrator credentials, XSS, or CSRF are required.
What access does successful exploitation provide?
The attacker can obtain the application's static HS256 .secret_key from an archive and forge a JWT with the admin subject. This enables access to administrator-only API endpoints and full application takeover.
Which versions are affected?
borg-ui versions before 2.4.1 are affected. Version 2.4.1 is identified as the release containing the fix.
What capability is required to carry out the attack?
The attacker must be able to configure a backup plan through the backup-plan API and set source_directories to archive the application's data directory. They must then be able to download and inspect the resulting archive.