Skip to main content
CVE-2026-57825VulnerabilityPublished 09/09/2026Updated 09/14/2026

CVE-2026-57825: CWE-61 UNIX Symbolic Link (Symlink) Following in OCaml opam

Affects OCaml opamSource CVE Database V5

0

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

CVSS 3.1 base score
5.7Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

What to do

Affected software

ProductAffectedFixed in
OCamlopamAffected
  • <2.5.2
Fixed in
  • 2.5.2
GitHubocaml/opampkg:github/ocaml/opamOther threatsAffected
  • <2.5.2
Fixed in
  • 2.5.2

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

References

Community reviews

Loading reviews…