CVE-2026-62268

borg extract might modify out-of-tree files when extracting maliciously crafted archives

Published Nov 5, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
borgbackup is an opensource, deduplicating archiver with compression and authenticated encryption. Prior to 1.4.5 and 2.0.0b22, extracting a malicious archive can follow a symlinked parent path or resolve embedded dot-dot path components and delete or overwrite files outside the extraction directory. A crafted slave hardlink can also use an attacker-controlled hardlink source outside the extraction directory and hard-link that file into the restored tree, disclosing its contents. Creating the malicious archive requires repository access and, for encrypted or authenticated repositories, the Borg key and passphrase; a victim must then extract the archive. This issue is fixed in versions 1.4.5 and 2.0.0b22.

Analysis

AI-generated

Technical impact

A malicious Borg archive can cause files outside the intended extraction directory to be deleted, overwritten, or have their contents disclosed. The archive may exploit symbolic links that point to parents, use dot‑dot components to traverse upward, or include a crafted slave hardlink that points to a file outside the extraction tree and is then linked into the restored structure. This results in loss or compromise of arbitrary files on the local system.

Affected Systems

The vulnerability affects BorgBackup (borg) versions prior to 1.4.5 and 2.0.0b22. The issue was fixed in those releases, so systems running the affected versions are at risk.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting limited evidence of active exploitation. An attacker needs write access to create a malicious archive in the repository and must trigger extraction in order to exploit the flaw. Once extraction occurs, any file the victim owns can be altered or revealed, depending on the victim’s permissions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade BorgBackup to version 1.4.5 or later, or 2.0.0b22 and newer, to apply the bundled patch.
  • Verify that only trusted archives are extracted; scan or validate archives before extraction.
  • If upgrading is not immediately possible, perform the extraction in an isolated environment, such as a sandbox or container, that limits write access to the rest of the file system.

Generated by OpenCVE AI on November 6, 2026 at 14:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-gfp8-w835-v44j borg extract might modify out-of-tree files when extracting maliciously crafted archives
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-22
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Borgbackup
Borgbackup borg
Vendors & Products Borgbackup
Borgbackup borg
Type Values Removed Values Added
Description borgbackup is an opensource, deduplicating archiver with compression and authenticated encryption. Prior to 1.4.5 and 2.0.0b22, extracting a malicious archive can follow a symlinked parent path or resolve embedded dot-dot path components and delete or overwrite files outside the extraction directory. A crafted slave hardlink can also use an attacker-controlled hardlink source outside the extraction directory and hard-link that file into the restored tree, disclosing its contents. Creating the malicious archive requires repository access and, for encrypted or authenticated repositories, the Borg key and passphrase; a victim must then extract the archive. This issue is fixed in versions 1.4.5 and 2.0.0b22.
Title borg extract might modify out-of-tree files when extracting maliciously crafted archives
Weaknesses CWE-59
References
Metrics cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 9, 2026, 10:53 PM
Reserved
Jul 13, 2026, 5:09 PM
Status
Deferred
Published
Nov 5, 2026, 9:18 PM
Modified
Nov 12, 2026, 10:18 PM
Severity
Moderate
Public date
Nov 5, 2026, 8:28 PM