Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach tar decompression endpoint
-
DeliveryUpload crafted archive with ../ names
-
Exploitocaml-tar skips traversal check
-
ExecutionWrite file outside extraction root
-
ImpactOverwrite 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
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.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2026-36766
GHSA-x4gv-m4gg-cwm5
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB