CVE-2026-136455 in borg-uiinfo

Summary

by MITRE • 11/24/2026

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 source_directories 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 .secret_key, 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.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 11/24/2026

The vulnerability identified in borg-ui versions prior to 2.4.1 represents a critical privilege escalation flaw rooted in improper input validation within the backup-plan API endpoint. Specifically, the source_directories field lacks path allow-listing mechanisms, allowing users with repository-scoped operator privileges to specify arbitrary filesystem paths for archival operations. This design oversight enables an attacker to bypass intended access controls by directing the backup process to target sensitive application directories that are typically restricted from user-level access. The absence of strict validation on directory paths transforms a standard operational feature into a vector for unauthorized data exfiltration and subsequent authentication bypass, fundamentally undermining the security boundary between operator and administrator roles within the application architecture.

The exploitation chain begins with the attacker configuring a backup plan to include the application's internal data directory in the source_directories list. Once this configuration is submitted, the system archives these files without verifying whether the target path falls outside permitted boundaries. The resulting archive can then be downloaded by the operator using their existing credentials. Within this archived content lies the static HS256 secret key used for signing JSON Web Tokens (JWTs). This key is critical to the application's authentication mechanism, as it validates the integrity and authenticity of user sessions. By extracting this file from the backup archive, the attacker gains the cryptographic material necessary to forge valid administrative tokens without needing prior admin access or exploiting client-side vulnerabilities such as Cross-Site Scripting or Cross-Site Request Forgery.

With possession of the HS256 secret key, the attacker constructs a forged JWT containing the claim sub":"admin". This token is then presented to endpoints that require elevated privileges, effectively impersonating an administrator account. The most significant impact occurs when this forged token is used to access sensitive administrative APIs, such as GET /api/auth/users. Through this endpoint, the attacker can retrieve detailed information about all user accounts, including their roles and permissions, facilitating further lateral movement or complete system compromise. This capability allows for full application takeover, enabling the modification of configurations, deletion of data, or installation of persistent backdoors without detection by standard security monitoring tools that rely on authentication logs rather than token signature validation integrity checks.

From a classification perspective, this vulnerability aligns with CWE-284 Improper Access Control and CWE-798 Use of Hard-coded Credentials, as the secret key's exposure leads directly to privilege escalation. In terms of the MITRE ATT&CK framework, the initial exploitation corresponds to T1053 Scheduled Task/Job while leveraging file access for data staging, followed by T1078 Valid Accounts where the attacker uses forged credentials to maintain persistence and escalate privileges. The lack of path validation also reflects CWE-22 Improper Limitation of a Pathname to a Restricted Directory, highlighting a failure in enforcing strict directory traversal protections at the API level.

Mitigation strategies must focus on both immediate remediation and long-term architectural improvements. Upgrading borg-ui to version 2.4.1 or later is the primary corrective action, as this release addresses the unrestricted source_directories field by implementing proper path allow-listing and validation logic. In addition to upgrading, administrators should rotate all HS256 secret keys immediately upon patching to invalidate any potentially forged tokens generated during the window of vulnerability. Future development cycles should enforce strict input sanitization on all file system paths provided via API endpoints, ensuring that only explicitly whitelisted directories are accessible for backup operations. Furthermore, implementing runtime integrity checks and monitoring for unusual JWT signature patterns can provide an additional layer of defense against token forgery attempts in environments where immediate patching is not feasible.

Responsible

VulnCheck

Reservation

11/24/2026

Disclosure

11/24/2026

Moderation

accepted

CPE

ready

EPSS

0.00545

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!