CVE-2026-57825: CWE-61 UNIX Symbolic Link (Symlink) Following in OCaml opam
Affects OCaml opamSource CVE Database V5
Not known to be exploited · CVSS 5.7 Medium · fixed in 2.5.2 : update OCaml opam when convenient.
Data as of 10/25/2026, 04:40:13 UTC
- Exploitation
Not in CISA KEV, no exploitation reported
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.5.2
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:NWhat to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| OCamlopam | Affected
| Fixed in
|
GitHubocaml/opampkg:github/ocaml/opamOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in opam version 2.5.2. Users should upgrade to version 2.5.2 or later to remediate this vulnerability. No additional mitigation steps are indicated by the vendor advisory.
Description
CVE-2026-57825 is a medium severity vulnerability in the opam package manager for OCaml. Versions before 2.5.2 mishandle symbolic links during the processing of .install files, allowing the sandbox protection mechanism to be bypassed. This flaw can lead to integrity violations but does not impact confidentiality or availability.
Impact
An attacker with some level of privileges and the ability to trigger .install file processing can bypass sandbox protections due to symlink mishandling. This can lead to unauthorized modification of files, compromising system integrity. There is no direct impact on confidentiality or availability according to the CVSS vector. No known exploits are reported in the wild.
Summary
The vulnerability identified as CVE-2026-57825 affects opam versions prior to 2.5.2. It involves improper handling of UNIX symbolic links (symlinks) within the sandbox protection mechanism when .install files are used. This mishandling allows an attacker with limited privileges to bypass sandbox restrictions, potentially leading to unauthorized modification or integrity compromise of files. The CVSS 3.1 base score is 5.7, reflecting a network attack vector with low attack complexity, requiring privileges and user interaction, and resulting in high impact on integrity but no impact on confidentiality or availability.
Weaknesses
- CWE-61UNIX Symbolic Link (Symlink) Following (opens in a new tab)
Compound weaknessLikelihood of exploit: HighOWASP Top 10 A01:2025: Broken Access Control (opens in a new tab)
The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.