Skip to main content

ocaml-tar EUVDEUVD-2026-36766

| CVE-2026-45390 CRITICAL
Path Traversal (CWE-22)
2026-06-15 mitre GHSA-x4gv-m4gg-cwm5
9.1
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach tar decompression endpoint
  2. Delivery
    Upload crafted archive with ../ names
  3. Exploit
    ocaml-tar skips traversal check
  4. Execution
    Write file outside extraction root
  5. Impact
    Overwrite sensitive config/keys

Vulnerability Assessment

Weakness
CWE
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The concrete prerequisite is that the target application must expose a code path that uses ocaml-tar (before 3.4.0) to extract an archive whose contents the attacker controls or can influence - i.e., a reachable 'tar decompression endpoint' as the advisory states. The attacker must be able to supply a crafted tar archive containing member names with '../' path segments (or absolute paths). Limiting factors: if the application only extracts trusted, internally-generated archives, or validates paths itself before writing, the flaw is not reachable; the CVSS AV:N/PR:N/UI:N framing assumes the decompression endpoint is network-exposed and unauthenticated, which is a property of the embedding application, not of the library itself, so realistic risk drops sharply where extraction is local-only or requires authentication. Files are written with the privileges of the extracting process, so a low-privilege extractor limits blast radius.

Impact

The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, base 9.1) rates this Critical/High, treating it as a network, no-auth, low-complexity write-anywhere primitive - but that scoring is optimistic and context-dependent. The real risk hinges on whether an application actually exposes an ocaml-tar decompression endpoint to untrusted input; the description itself qualifies impact as applying only 'to an attacker that can reach a tar decompression endpoint,' so C:H is questionable since the flaw is fundamentally an arbitrary file WRITE (integrity), not a read/disclosure. SSVC aligns on the write-anywhere severity (Exploitation: poc, Automatable: yes, Technical Impact: total), yet EPSS is only 0.15% (4th percentile) and there is no KEV listing, indicating no observed widespread exploitation. Net: prioritize patching where ocaml-tar handles untrusted archives, but note the network/unauth framing depends entirely on the embedding application - a purely local extraction of trusted archives is materially lower risk than the 9.1 implies.

Exploit ScenarioDerived

An attacker uploads a maliciously crafted tar archive to an application that uses ocaml-tar to unpack user-supplied archives (for example a build service, package installer, or file-import feature). The archive contains a member named with '../' segments such as '../../../home/user/.ssh/authorized_keys', and because ocaml-tar does not reject the traversal, the file is written outside the extraction directory. Given AV:N/AC:L and SSVC 'Automatable: yes' with publicly available POC code, this can be scripted against any reachable decompression endpoint.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

Arbitrary file write in ocaml-tar before 3.4.0 lets remote attackers escape the intended extraction directory using '../' path segments embedded in archive member names. Unlike the standard tar(1) utility, which rejects such traversal, ocaml-tar decompresses the crafted entries anyway, writing files to attacker-chosen locations outside the target directory. There is publicly available exploit code exists per SSVC (POC), though EPSS remains low at 0.15% and it is not listed in CISA KEV.

RemediationAI

Upgrade ocaml-tar to version 3.4.0 or later, which rejects archive entries containing traversal segments (Vendor-released patch: 3.4.0). Rebuild and redeploy any application, unikernel, or service that vendors or pins ocaml-tar as a dependency, since the fix must be recompiled into consumers. Where an immediate upgrade is not possible, the specific compensating control is to validate and canonicalize every archive member name before writing - reject any entry whose resolved path escapes the intended extraction root (any '../' component or absolute path) - or restrict decompression to trusted, authenticated sources only and run extraction under a low-privilege account with a chroot/jailed working directory so a traversal write cannot reach sensitive paths; the trade-off is added validation code and reduced flexibility for archives that legitimately use relative layouts. Consult the OCaml Security advisory (https://osv.dev/vulnerability/OSEC-2026-08) for exact fix details.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ocaml-tar is a pure-OCaml library for reading and writing Unix tar archives, commonly embedded in OCaml applications and services (including MirageOS-style unikernels and CI/build tooling) that need to unpack archives without shelling out to the system tar binary. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory / Path Traversal): during extraction the library trusts the file name recorded in each tar header and does not canonicalize or reject relative '../' components, so a member named like '../../etc/foo' resolves outside the extraction root. CPE data is uninformative here (the feed carries only a placeholder 'cpe:2.3:a:n/a:n/a:*'), so the affected component identity rests on the description and the upstream OCaml Security advisory (OSEC-2026-08) rather than a structured NVD CPE match.

Know when N A gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 8.2 HIGH

Arbitrary file write is an integrity impact (I:H) with possible availability effect from overwriting files (A:L); no read primitive so C:N; network AV and PR:N assume the common untrusted-upload deployment.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
CVE Published
Jun 15, 2026 - 00:00 cve.org
CRITICAL 9.1
CVE Published
Jun 15, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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

Executive ViewAI

Why It Matters

ocaml-tar contains a critical path traversal vulnerability enabling arbitrary file writes when processing untrusted archives. Any application using this library to extract external archives faces risk of code execution or persistent data destruction, directly threatening production system integrity and confidentiality.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Implement mandatory pre-extraction validation of archive contents to reject entries with '..' path segments, execute all tar operations in isolated containers or sandboxed environments with minimal file system permissions, enforce strict file system access controls to limit extraction process scope, and evaluate replacement with alternative libraries that enforce path traversal protections or the standard tar(1) utility.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Low
niche OCaml library, limited to OCaml/MirageOS ecosystem consumers
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy