borg extract can modify files outside the extraction directory
Key facts
- Attack vector
- Local
- Privileges required
- High
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
borgbackup borg before 1.4.5 and from 2.0.0b1 before 2.0.0b22 is affected. Extracting a malicious archive can follow a symlinked parent path or resolve embedded parent directory components (CWE-59), overwriting or deleting files outside the extraction directory. A crafted hardlink can also hard-link an outside file into the restored tree, disclosing its contents. The attacker needs repository access and, for encrypted or authenticated repositories, the Borg key and passphrase, and a victim must extract the archive.
Written with Claude Haiku 5.5 from the sources below · 2026-11-06
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| borgbackup | borg | before 1.4.5; 2.0.0b1 to before 2.0.0b22 | 1.4.5, 2.0.0b22 | Patch available | CNA |
| — | borgbackup (PyPI) | before 1.4.5 | 1.4.5 | Patch available | GHSA-gfp8-w835-v44j |
| — | borgbackup (PyPI) | 2.0.0b1 to before 2.0.0b22 | 2.0.0b22 | Patch available | GHSA-gfp8-w835-v44j |
- borg Vendorborgbackup Affected before 1.4.5; 2.0.0b1 to before 2.0.0b22 Fixed in 1.4.5, 2.0.0b22 Patch available CNA
- borgbackup (PyPI) Vendor— Affected before 1.4.5 Fixed in 1.4.5 Patch available GHSA-gfp8-w835-v44j
- borgbackup (PyPI) Vendor— Affected 2.0.0b1 to before 2.0.0b22 Fixed in 2.0.0b22 Patch available GHSA-gfp8-w835-v44j
Remediation
Upgrade borg to 1.4.5 for the 1.x branch or to 2.0.0b22 for the 2.0 beta branch. The PyPI borgbackup packages are fixed in 1.4.5 and 2.0.0b22 respectively.
Written with Claude Haiku 5.5 from the sources below · 2026-11-06
- Fix · CNA borg (borgbackup) Fixed in 1.4.5, 2.0.0b22
- Fix · GHSA-gfp8-w835-v44j borgbackup (PyPI) Fixed in 1.4.5 Advisory →
- Fix · GHSA-gfp8-w835-v44j borgbackup (PyPI) Fixed in 2.0.0b22 Advisory →
Vendor assessments
Timeline
- 2026-11-05 Threatist record created from CVE-2026-62268
- 2026-11-06 Affected versions changed · Red Hat
- 2026-11-06 CVSS score added · Red Hat
References
Other 10
- https://github.com/borgbackup/borg/security/advisories/GHSA-gfp8-w835-v44j
- https://github.com/borgbackup/borg/commit/0ac568e290518c3bbe781459978720dde7fab224
- https://github.com/borgbackup/borg/commit/141888f2fabcd57a300547c2aa63212cb213924d
- https://github.com/borgbackup/borg/commit/2d632531028b09da8ab5d1450f89bebcc205d640
- https://github.com/borgbackup/borg/commit/3e9ed6d1ad6d3531b39c07b8ef3ecf41fce4437f
- https://github.com/borgbackup/borg/commit/4f37fdfed10b50559a0dd333b0d5581c642af329
- https://github.com/borgbackup/borg/commit/d907f2cb57337041c4fa55ca4682895535e5076b
- https://github.com/borgbackup/borg/releases/tag/1.4.5
- https://github.com/borgbackup/borg/releases/tag/2.0.0b22
- https://github.com/borgbackup/borg
More borgbackup vulnerabilities
- TI-2017-11651 Incorrect implementation of access controls allows remote users to override repository… CVSS 3.0HIGH 8.8
- TI-2023-18605 Archive spoofing vulnerability in borgbackup CVSS 3.1MEDIUM 4.7
Sources
- CVE-2026-62268 · CVE Program
- CVE-2026-62268 · NVD
- FIRST EPSS
- CVE-2026-62268 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences