# CVE-2026-45390: Path traversal vulnerability in ocaml-tar

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-22T20:55:00.000Z
- Modified: 2026-11-06T13:45:06.953Z
- Also known as: OSEC-2026-08
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## Description

In OCaml-tar before 3.4.0, a crafted archive with ../ path segments in its name allows escaping the current working directory. This is not desired behavior, and tar(1) rejects such extractions, but ocaml-tar decompresses it anyway. The impact is that it allows arbitrary file writes outside of the desired extraction directory (to an attacker that can reach a tar decompression endpoint).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- tar (opam): before 3.5.0
- https://github.com/mirage/ocaml-tar: before 51ceb0a15982993503c169b9d84456fd50eabe99

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- OCaml Security Advisories: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N`

## References

- <https://osv.dev/vulnerability/OSEC-2026-08> (exploit)

## Sources

- CVE List: [CVE-2026-45390](https://www.cve.org/CVERecord?id=CVE-2026-45390), CVE Terms of Use, modified 2026-06-16
- OCaml Security Advisories: [OSEC-2026-08](https://osv.dev/vulnerability/OSEC-2026-08), CC0-1.0, modified 2026-11-06
- NVD: [CVE-2026-45390](https://nvd.nist.gov/vuln/detail/CVE-2026-45390), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-45390 · Whole record: https://cve.day/CVE-2026-45390.json · Rebuilt by cve.day 2026-11-25T22:59:24.654Z
