GHSA-gfp8-w835-v44j

Suggest an improvement
Source
https://github.com/advisories/GHSA-gfp8-w835-v44j
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-gfp8-w835-v44j/GHSA-gfp8-w835-v44j.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gfp8-w835-v44j
Aliases
  • CVE-2026-62268
Published
2026-10-15T20:09:23Z
Modified
2026-10-15T20:30:06Z
Severity
  • 5.3 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
borg extract might modify out-of-tree files when extracting maliciously crafted archives
Details

Impact

A maliciously crafted archive could contain a symlink (e.g. "evil" -> "/etc") followed by an item below it ("evil/passwd"), or an item whose path embeds ".." (e.g. "a/../../etc/passwd").

When extracting such items, borg followed the symlink / resolved the "..", so it could delete or overwrite files outside the extraction directory.

In a quite similar scenario, a crafted archive could contain a slave hardlink item with the hardlink source pointing outside the extraction directory.

When extracting such an item, borg would hard-link the outside and the inside item.

Note: that sounds bad, but it is no big issue in practice: to create such a malicious archive, the attacker would need repository access and (for encrypted or authenticated repos) also the borg key and passphrase.

Affected: likely all borg releases before 1.4.5 (and also all borg 2.0.0 betas before b22).

Patches

  • 1.4.x release series: fix released with 1.4.5. commits 3e9ed6d1ad6d3531b39c07b8ef3ecf41fce4437f and 141888f2fabcd57a300547c2aa63212cb213924d.
  • 1.2.x release series: no new releases any more, fix commits available on 1.2-maint branch: 0ac568e290518c3bbe781459978720dde7fab224 and d907f2cb57337041c4fa55ca4682895535e5076b
  • 2.0.0 betas: fix will be in 2.0.0b22, fix commits on master branch: 2d632531028b09da8ab5d1450f89bebcc205d640 and 4f37fdfed10b50559a0dd333b0d5581c642af329

Workarounds

For encrypted or authenticated repositories, do not share borg key and passphrase with potential attackers.

For all kinds of repositories, do not share repository access with potential attackers. Usually, the repository access is protected by means outside of borg; e.g. a ssh key for remote repositories or physical access to local storage media.

References

This issue was first discovered by AI in a private code security review initiated by @ThomasWaldmann.

A few days later, it was also independently reported to @ThomasWaldmann by:

  • Michael Head (machin0r)
  • Chinnapak Charoensiri [Github: Ziim-eiei].
Database specific
{
    "cwe_ids":  [
        "CWE-59"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-15T20:09:23Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

PyPI / borgbackup

Package

Name
borgbackup
View open source insights on deps.dev
Purl
pkg:pypi/borgbackup

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.4.5

Affected versions

0.*
0.23.0
0.24.0
0.25.0
0.26.0
0.26.1
0.27.0
0.28.0
0.28.1
0.28.2
0.29.0
0.30.0
0.30.1
1.*
1.0.0rc1
1.0.0rc2
1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6rc1
1.0.6
1.0.7rc1
1.0.7rc2
1.0.7
1.0.8rc1
1.0.8
1.0.9rc1
1.0.9
1.0.10rc1
1.0.10
1.0.11rc1
1.0.11
1.0.12
1.0.13
1.1.0b1
1.1.0b2
1.1.0b3
1.1.0b4
1.1.0b5
1.1.0b6
1.1.0rc1
1.1.0rc2
1.1.0rc3
1.1.0rc4
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.1.9
1.1.10
1.1.11
1.1.12
1.1.13
1.1.14
1.1.15
1.1.16
1.1.17
1.1.18
1.2.0a2
1.2.0a3
1.2.0a4
1.2.0a5
1.2.0a6
1.2.0a7
1.2.0a8
1.2.0a9
1.2.0b1
1.2.0b2
1.2.0b3
1.2.0b4
1.2.0rc1
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
1.2.7
1.2.8
1.2.9
1.3.0a1
1.4.0a1
1.4.0b1
1.4.0b2
1.4.0rc1
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-gfp8-w835-v44j/GHSA-gfp8-w835-v44j.json"

PyPI / borgbackup

Package

Name
borgbackup
View open source insights on deps.dev
Purl
pkg:pypi/borgbackup

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0b1
Fixed
2.0.0b22

Affected versions

2.*
2.0.0b1
2.0.0b2
2.0.0b3
2.0.0b4
2.0.0b5
2.0.0b6
2.0.0b7
2.0.0b8
2.0.0b9
2.0.0b10
2.0.0b11
2.0.0b12
2.0.0b13
2.0.0b14
2.0.0b15
2.0.0b16
2.0.0b17
2.0.0b18
2.0.0b19
2.0.0b20
2.0.0b21

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-gfp8-w835-v44j/GHSA-gfp8-w835-v44j.json"