# CVE-2026-62268: borg extract might modify out-of-tree files when extracting maliciously crafted archives

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v4.0, CNA) `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 metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: High; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-28)
- **CWE:** CWE-59
- **Aliases:** GHSA-gfp8-w835-v44j
- **Published:** 2026-10-15T20:09:23.000Z
- **Modified:** 2026-11-12T22:18:51.470Z

## Who should check

- Projects that depend on PyPI package borgbackup (\< 1.4.5)
- Anyone running borgbackup borg \< 1.4.5; \>= 2.0.0b1, \< 2.0.0b22

## 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 and fixed versions

- PyPI `borgbackup`: affected \< 1.4.5; fixed 1.4.5, 2.0.0b22 (osv)
- borgbackup borg: \< 1.4.5; \>= 2.0.0b1, \< 2.0.0b22 (cvelist)

## Mitigation

- Upgrade borgbackup to one of 1.4.5, 2.0.0b22 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-62268. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-62268.md
Affected: borgbackup < 1.4.5
Fixed in: 1.4.5, 2.0.0b22

Steps:
1. Search this machine and project for borgbackup (PyPI), borgbackup borg: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-62268 being exploited?

There is no confirmed exploitation: CVE-2026-62268 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-62268?

Medium: CVSS 5.3 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-62268?

borgbackup \< 1.4.5.

### Is there a fix for CVE-2026-62268?

Yes. Fixed in 1.4.5, 2.0.0b22. Upgrade borgbackup to one of 1.4.5, 2.0.0b22 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-62268?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/borgbackup/borg/security/advisories/GHSA-gfp8-w835-v44j>
- patch: <https://github.com/borgbackup/borg/commit/0ac568e290518c3bbe781459978720dde7fab224>
- patch: <https://github.com/borgbackup/borg/commit/141888f2fabcd57a300547c2aa63212cb213924d>
- patch: <https://github.com/borgbackup/borg/commit/2d632531028b09da8ab5d1450f89bebcc205d640>
- patch: <https://github.com/borgbackup/borg/commit/3e9ed6d1ad6d3531b39c07b8ef3ecf41fce4437f>
- patch: <https://github.com/borgbackup/borg/commit/4f37fdfed10b50559a0dd333b0d5581c642af329>
- patch: <https://github.com/borgbackup/borg/commit/d907f2cb57337041c4fa55ca4682895535e5076b>
- other: <https://github.com/borgbackup/borg/releases/tag/1.4.5>
- other: <https://github.com/borgbackup/borg/releases/tag/2.0.0b22>
- other: <https://github.com/borgbackup/borg>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-62268>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-gfp8-w835-v44j> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-62268> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-62268>
