[ CVE-2026-62268 · Published 5 Nov 2026 ]

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

CVSS 5.3 EPSS <1% Fix available

[ Description ]Official 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.

[ Fixes ]How to fix it

  • borgbackup 1.4.5Fixed version · GitHub Advisories · pip package borgbackup: upgrade to 1.4.5 or later (affected < 1.4.5)
  • borgbackup 2.0.0b22Fixed version · GitHub Advisories · pip package borgbackup: upgrade to 2.0.0b22 or later (affected >= 2.0.0b1, < 2.0.0b22)

Fixed versions

  • borgbackup borg: upgrade to 1.4.5 or laterEarlier versions are listed as affected
  • borgbackup borg: upgrade to 2.0.0b22 or laterEarlier versions are listed as affected

From the affected-version ranges in the CVE record. Check the vendor's advisory for the exact release for your platform or branch.

Vendor advisories and patches

[ Packages ]Affected open-source packages