# borg extract might modify out-of-tree files when extracting maliciously crafted archives

Advisory record · `GHSA-gfp8-w835-v44j`

- **Identifiers:** `GHSA-gfp8-w835-v44j` · `CVE-2026-62268`
- **State:** Confirmed
- **Severity:** CVSS 5.3 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-59](https://cwe.mitre.org/data/definitions/59.html)
- **Tags:** [Path traversal](https://agentprime.io/advisories/tag/path-traversal.md)
- **Published:** 15 Oct 2026
- **Updated:** 15 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 15 Oct 2026, 20:09 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `borgbackup` (PyPI): affected `<1.4.5 || >=2.0.0b1, <2.0.0b22`; fixed in `1.4.5`, `2.0.0b22`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> borgbackup versions before 1.4.5, and 2.0.0 betas before 2.0.0b22, can be tricked by a crafted archive into deleting or overwriting files outside the extraction directory when extracted. The attacker must already have repository access and, for encrypted or authenticated repositories, the borg key and passphrase. Upgrade to borgbackup 1.4.5 or 2.0.0b22. Do not share repository access or the borg key and passphrase with potential attackers.

Written 1 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.3 Medium, CVSS 4.0: `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`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0016, the 5th percentile, on 7 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:08 UTC: First seen by agentprime
- 31 Oct 2026, 14:08 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-gfp8-w835-v44j)
- 5 Nov 2026, 20:28 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2026-62268)
- 5 Nov 2026, 21:18 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-62268)

## Sources

- [GitHub Advisory Database: GHSA-gfp8-w835-v44j](https://github.com/advisories/GHSA-gfp8-w835-v44j)
- [OSV: GHSA-gfp8-w835-v44j](https://osv.dev/vulnerability/GHSA-gfp8-w835-v44j)
- <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>
- <https://github.com/borgbackup/borg/releases/tag/1.4.5>
- <https://github.com/borgbackup/borg/releases/tag/2.0.0b22>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-gfp8-w835-v44j>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-gfp8-w835-v44j/>. Everything for agents: <https://agentprime.io/llms.txt>.
