CVE-2026-45390: Vulnerability in OCaml-tar

Critical. 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).

CWE-22

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-22
Published
15 Jun 2026
Last change
17 Jun 2026

Affected products

Affected versions and the first fixed release

  • OCaml-tar Before 3.4.0. Fixed in 3.4.0

Related