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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| borgbackup | borg | < 1.4.5, >= 2.0.0b1, < 2.0.0b22 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | borgbackup | 1.4.5-1 | — |
| Debian 14 | borgbackup2 | 2.0.0b22-1 | — |
| Debian 13 | borgbackup +1 | No fix yet | — |
| Debian 12 | borgbackup +1 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | borgbackup +1 | No fix yet | — |
| Ubuntu 26.04 LTS | borgbackup +1 | No fix yet | — |
| Ubuntu 24.04 LTS | borgbackup +1 | No fix yet | — |
| Ubuntu 22.04 LTS | borgbackup | No fix yet | — |
| Ubuntu 20.04 LTS | borgbackup | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | borgbackup | No fix yet | — |
| Ubuntu 16.04 LTS | borgbackup | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | borgbackup | 1.4.5-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | borgbackup | < 1.4.5 | 1.4.5 | GHSA-gfp8-w835-v44j |
| PyPI | borgbackup | >= 2.0.0b1, < 2.0.0b22 | 2.0.0b22 | GHSA-gfp8-w835-v44j |
References
- 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