Description
In the opam package before 2.5.2 for OCaml, the sandbox protection mechanism can be bypassed because symlinks are mishandled during use of .install files.
Published: 2026-09-09
Score: 5.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: sandbox protection bypass
Action: Update opam
AI Analysis

Impact

The vulnerability involves a flaw in opam's sandbox protection where symlinks are mishandled during the processing of .install files, allowing an attacker to bypass the sandbox. This can enable the execution of arbitrary commands or code within the context of the user installing the package. The weakness corresponds to CWE‑61, a form of path or link traversal that compromises access control.

Affected Systems

The bug affects the OCaml opam package manager prior to version 2.5.2. No precise version list is provided, so all releases before 2.5.2 should be considered vulnerable until patched by the vendor.

Risk and Exploitability

The severity score of 5.7 indicates moderate risk. EPSS is not available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting limited evidence of exploitation. The most likely attack scenario is during the installation of a package containing a malicious .install file; the attacker would need to supply or influence the package contents to exploit the sandbox bypass. Once the sandbox is bypassed, the attacker could achieve privileges equivalent to the user performing the install.

Generated by OpenCVE AI on September 9, 2026 at 11:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade opam to version 2.5.2 or later
  • Limit use of .install files from untrusted packages or review their contents before installation
  • Monitor the OCaml/opam project releases and security advisories for further updates

Generated by OpenCVE AI on September 9, 2026 at 11:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4684-1 opam security update
Debian DSA Debian DSA DSA-6386-1 opam security update
History

Mon, 14 Sep 2026 21:00:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 11 Sep 2026 01:15:00 +0000

Type Values Removed Values Added
First Time appeared Ocaml
Ocaml opam
Vendors & Products Ocaml
Ocaml opam

Wed, 09 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
Title Sandbox Bypass via Symlink Mishandling in opam .install Files

Wed, 09 Sep 2026 05:30:00 +0000

Type Values Removed Values Added
References

Wed, 09 Sep 2026 03:45:00 +0000

Type Values Removed Values Added
Description In the opam package before 2.5.2 for OCaml, the sandbox protection mechanism can be bypassed because symlinks are mishandled during use of .install files.
Weaknesses CWE-61
References
Metrics cvssV3_1

{'score': 5.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-14T15:41:32.570Z

Reserved: 2026-06-25T00:00:00.000Z

Link: CVE-2026-57825

cve-icon Vulnrichment

Updated: 2026-09-09T04:12:39.763Z

cve-icon NVD

Status : Deferred

Published: 2026-09-09T04:18:01.720

Modified: 2026-09-14T16:17:15.167

Link: CVE-2026-57825

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-11T01:00:08Z

Weaknesses
  • CWE-61

    UNIX Symbolic Link (Symlink) Following