Skip to main content

borg-ui CVE-2026-136455

| EUVDEUVD-2026-134603 HIGH
External Control of File Name or Path (CWE-73)
2026-11-24 VulnCheck GHSA-r64c-mfmw-rrf9
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as repository-scoped operator
  2. Delivery
    Configure backup plan source_directories to app data directory
  3. Exploit
    Download archive and extract static HS256 .secret_key
  4. Execution
    Forge JWT with sub:admin
  5. Impact
    Call admin-only endpoints for full takeover

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Exploitation Conditions

Requires an authenticated repository-scoped operator account (PR:L) on borg-ui before 2.4.1; the attacker then abuses the backup-plan API's source_directories field, which lacked path allow-listing, to archive the application's own data directory, retrieve the static HS256 .secret_key, and forge an admin JWT. Limiting factors: the attacker must already be able to log in and create/configure backup plans (no anonymous access), and the application must sign JWTs with a static HS256 secret stored within a backup-reachable data directory. No admin credentials, user interaction, XSS, or CSRF are needed. The patch confines operator-added source, dump/export, btrfs-staging, and pattern-root paths to allowed mount points outside the application and data directories, so patched or admin-restricted deployments are not exploitable by operators.

Impact

This is a credible, real-priority privilege-escalation issue rather than a CVSS-inflated paper risk, but it is gated by authentication. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with VC:H/VI:H/VA:H and the 8.7 base score indicate a low-complexity network attack by an already-authenticated low-privileged user that yields full confidentiality, integrity and availability loss of the application - consistent with the description's 'full application takeover without admin credentials.' PR:L is the decisive limiter: the attacker must first hold a legitimate repository-scoped operator account, so this is an insider/post-compromise escalation path, not an unauthenticated internet-facing break-in. No EPSS score, SSVC automatable/technical-impact fields, or KEV status are provided in the input, and no public exploit or PoC reference is present - only the vendor patch commit - so exploitation probability cannot be quantified from the data. The vulnerability class is well-understood (CWE-73 external control of file path leading to secret-key disclosure and JWT forgery) and the patched commit is public, which lowers the bar for reverse-engineering, but there is no confirmed active exploitation. The vendor-mapped priority is 'this_week,' aligning with a serious-but-not-emergency posture.

Exploit ScenarioDerived

A user holding only a repository-scoped operator account in borg-ui creates a backup plan whose source_directories points at the application's own data directory, runs it, then downloads the resulting archive and extracts the static HS256 .secret_key. With that key they forge a JWT asserting sub:admin and call admin-only endpoints such as GET /api/auth/users, taking over the application. No public PoC or exploit code is identified in the provided sources; exploitation requires an existing low-privileged (operator) login.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 24, 2026

Repository-scoped operators in borg-ui before 2.4.1 can convert their limited backup-plan rights into full administrator access by pointing an unrestricted source_directories value at the application's own data directory, downloading the resulting archive, and extracting the static HS256 .secret_key used to sign JWTs. With that key the attacker forges a token carrying "sub":"admin" and calls admin-only endpoints such as GET /api/auth/users, achieving total application takeover with no admin credentials, XSS, or CSRF - the CVSS vector confirms the attacker must already hold an authenticated low-privileged account (PR:L). The missing path allow-listing (CWE-73) is corrected in release 2.4.1; no CISA KEV entry and no public exploit code were identified in the available intelligence, and the priority signal places this in the current week's remediation queue rather than an emergency.

RemediationAI

Upgrade to borg-ui v2.4.1, which introduces server-side path allow-listing for operator-added source directories, dump/export and btrfs staging paths, and --pattern backup roots (release notes: https://github.com/karanhudia/borg-ui/releases#release-v2.4.1; patch commit: https://github.com/karanhudia/borg-ui/commit/b9cca22da2e9bb9d07c3fb7b2dd4c95f02964cc8; VulnCheck advisory: https://www.vulncheck.com/advisories/borg-ui-before-2.4.1-privilege-escalation-via-backup-plan-path-traversal). Because the static HS256 .secret_key may already have been exfiltrated through a crafted archive on an unpatched instance, rotate that key after upgrading - every existing session and issued JWT is invalidated by the rotation, so users must log in again. Until the upgrade is applied, reduce exposure by removing operator (non-admin) accounts from backup-plan creation and editing, and by auditing existing plans for source_directories, dump/export paths, btrfs staging paths, and create flags containing --pattern R values that resolve into the application's data directory; note that these restrictions depend on the deployment's own account provisioning rather than on any in-product control in the vulnerable versions.

Affected VersionsENISA

borg-ui 0 <2.4.1

Affected Packages

euvd borg_ui fix: 2.4.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

borg-ui (karanhudia/borg-ui, CPE cpe:2.3:a:karanhudia:borg-ui) is a Python web front end that schedules and manages BorgBackup repositories, and it authenticates users with JWTs signed by a static HS256 secret persisted as .secret_key inside its own data directory. The backup-plan API accepted operator-supplied storage locations without path allow-listing, so a non-admin could set source_directories (and, per the upstream fix, also dump/export paths, btrfs staging paths, and backup roots introduced through create-time --pattern R flags) to any server-local path, including the application and its data directory. This is CWE-73, external control of file name or path: the value is data supplied by a low-privileged user that the server then treats as a trusted filesystem location. The archival job runs with the application's own filesystem visibility, so the operator simply downloads the produced archive and reads the signing key out of it. Commit b9cca22 in app/api/backup_plans.py adds is_operator_source_allowed and is_operator_metadata_path_allowed checks that confine newly added local sources and metadata paths to allowed mount points outside the application and data directories, blocks non-admins from adding agent sources, and deliberately skips re-checking stored paths so administrators can still edit existing plans. The vulnerable precondition is an authenticated repository-scoped operator on an unpatched instance that signs tokens with the in-tree static secret; no timing, race, or memory-corruption element is involved.

Know when Borg Ui gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Authenticated operator (PR:L) over the network with low complexity; forged admin token grants full C/I/A over the same application, so scope unchanged (S:U).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-136455 in borg-ui (versions before 2.4.1) enables any authenticated low-privileged operator to escalate to full administrator access and take over the application, affecting all organizations using this backup management tool. Leadership should prioritize remediation because a single compromised operator account can lead to complete control of backup infrastructure, exposing sensitive data and business continuity risks.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Low
niche self-hosted open-source BorgBackup web UI, small single-maintainer project
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy