CVE-2026-62268: borgbackup Symlink and Hardlink Vulnerability Leading to Out-of-Tree File Modification

borgbackup Updated 16 Oct 2026

Summary

15/10/2026
Yes i
Moderate
5.3

CVE-2026-62268: borg extract might modify out-of-tree files when extracting maliciously crafted archives. Affects borgbackup across 2 version ranges.

< 1.4.5 >= 2.0.0b1, < 2.0.0b22

Fixed in 1.4.5 or 2.0.0b22, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

borgbackup is an open-source deduplicating backup program that efficiently manages backup archives. It allows users to create, manage, and restore backups while ensuring data integrity and security. However, certain versions of borgbackup are vulnerable to a flaw that can lead to unintended modifications of files outside the designated extraction directory, particularly when handling maliciously crafted archives.

Vulnerability Detail

The vulnerability arises from the way borgbackup processes symlinks and paths containing '..' during the extraction of archives. A maliciously crafted archive could include a symlink pointing to a sensitive directory (e.g., '/etc') or an item with a path that navigates outside the extraction directory. This could lead to the deletion or overwriting of critical files. Although the risk is mitigated by requiring repository access and credentials, the potential for exploitation remains a significant concern.

How To Fix

Latest published version: 1.4.5 as of 23 Oct 2026

pip install --upgrade "borgbackup==1.4.5"

The newest release already contains this fix.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 2.0.0b1, < 2.0.0b22 2.0.0b22
    pip install --upgrade "borgbackup==2.0.0b22"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

For encrypted or authenticated repositories, do not share the borg key and passphrase with potential attackers. Additionally, restrict repository access to prevent unauthorized users from creating malicious archives.

Conclusion

The borgbackup vulnerability CVE-2026-62268 poses a risk of unauthorized file modification through maliciously crafted archives. Users are strongly advised to update to the latest patched versions to mitigate this risk and implement recommended workarounds to enhance security.

See every vulnerability recorded for borgbackup →

Share this vulnerability

FAQ

CVE-2026-62268 is a vulnerability in borgbackup that allows maliciously crafted archives to modify files outside the extraction directory.

All borgbackup releases before 1.4.5 and all 2.0.0 beta versions before b22 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If updating is not possible, ensure that repository access is tightly controlled and avoid sharing sensitive credentials with potential attackers.

The CVSS score of this vulnerability is 5.3, indicating a moderate level of risk.

Related vulnerabilities

Recent vulnerabilities recorded for borgbackup.

How To Fix

Latest published version: 1.4.5 as of 23 Oct 2026

pip install --upgrade "borgbackup==1.4.5"

The newest release already contains this fix.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 2.0.0b1, < 2.0.0b22 2.0.0b22
    pip install --upgrade "borgbackup==2.0.0b22"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback