[ CVE-2026-62268 · Published 5 Nov 2026 ]
borg extract might modify out-of-tree files when extracting maliciously crafted archives
[ 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
- Patchgithub.com
- Patchgithub.com
- Patchgithub.com
- Patchgithub.com
- Patchgithub.com
- Patchgithub.com
- Release notesgithub.com
- Release notesgithub.com
[ Packages ]Affected open-source packages
- borgbackup pipAffected < 1.4.5 · fixed in 1.4.5 · GHSA-gfp8-w835-v44j
- borgbackup pipAffected >= 2.0.0b1, < 2.0.0b22 · fixed in 2.0.0b22 · GHSA-gfp8-w835-v44j
[ References ]References
- github.com/borgbackup/borg/commit/0ac568e290518c3bbe781459978720dde7fab224
- github.com/borgbackup/borg/commit/141888f2fabcd57a300547c2aa63212cb213924d
- github.com/borgbackup/borg/commit/2d632531028b09da8ab5d1450f89bebcc205d640
- github.com/borgbackup/borg/commit/3e9ed6d1ad6d3531b39c07b8ef3ecf41fce4437f
- github.com/borgbackup/borg/commit/4f37fdfed10b50559a0dd333b0d5581c642af329
- github.com/borgbackup/borg/commit/d907f2cb57337041c4fa55ca4682895535e5076b
- github.com/borgbackup/borg/releases/tag/1.4.5
- github.com/borgbackup/borg/releases/tag/2.0.0b22
- github.com/borgbackup/borg/security/advisories/GHSA-gfp8-w835-v44j