CVE-2026-45390
Received Received - Intake
Directory Traversal Vulnerability in OCaml-tar

Publication date: 2026-06-15

Last updated on: 2026-06-15

Assigner: 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).
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-15
Last Modified
2026-06-15
Generated
2026-06-16
AI Q&A
2026-06-15
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
ocaml ocaml-tar to 3.4.0 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

In OCaml-tar versions before 3.4.0, there is a vulnerability where a specially crafted archive containing '../' path segments in file names can escape the intended extraction directory.

While the standard tar utility (tar(1)) rejects such extractions to prevent directory traversal, ocaml-tar decompresses these archives anyway, allowing files to be written outside the target directory.

Impact Analysis

This vulnerability allows an attacker who can provide a tar archive to a decompression endpoint using ocaml-tar to write arbitrary files outside the intended extraction directory.

This can lead to overwriting critical files, potentially resulting in unauthorized code execution, data corruption, or system compromise.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-45390. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart