CVE-2026-57825

medium
EUVD alias: EUVD-2026-74594
Assigned by CNA: mitre
Published 2026-09-09 · Modified 2026-09-09
CVSS v3
5.7
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
CVSS v4 NEW
not yet in upstream
VIR risk
5.7

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.

Predictions

Exploit likelihood
67%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

Mitigation details

Source: Debian Security Tracker · View original ↗ · DFSG

CVE-2026-57825 NameCVE-2026-57825 DescriptionIn 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. SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) ReferencesDLA-4684-1, DSA-6386-1…

CVE-2026-57825

NameCVE-2026-57825
DescriptionIn 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4684-1, DSA-6386-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
opam (PTS)bookworm2.1.2-1+deb12u1vulnerable
bookworm (security)2.1.2-1+deb12u2fixed
trixie2.3.0-1+deb13u1vulnerable
trixie (security)2.3.0-1+deb13u2fixed
forky, sid2.5.2-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
opamsourcebookworm2.1.2-1+deb12u2DLA-4684-1
opamsourcetrixie2.3.0-1+deb13u2DSA-6386-1
opamsource(unstable)2.5.2-1

Notes

https://github.com/ocaml/security-advisories/blob/main/advisories/2026/OSEC-2026-10.md
https://github.com/ocaml/opam/pull/7005
Testcase: https://github.com/ocaml/opam/commit/362f5dc08c1436be964e14aa50a5837050124d36 (2.5.2)
Fixed by: https://github.com/ocaml/opam/commit/175a5d777806ad32fa6cdd95f2501dc4bd5e584e (2.5.2)

Home - Debian Security - Source (Git)

Apply commands

text fix
Notes
https://github.com/ocaml/security-advisories/blob/main/advisories/2026/OSEC-2026-10.mdhttps://github.com/ocaml/opam/pull/7005Testcase: https://github.com/ocaml/opam/commit/362f5dc08c1436be964e14aa50a5837050124d36 (2.5.2)Fixed by: https://github.com/ocaml/opam/commit/175a5d777806ad32fa6cdd95f2501dc4bd5e584e (2.5.2)

OS impact

debian Debian Mixed 5 releases
VersionStatusFixed in
trixie Fixed 2.3.0-1+deb13u2
sid Fixed 2.5.2-1
forky Fixed 2.5.2-1
bullseye Affected
bookworm Fixed 2.1.2-1+deb12u2
alpine Alpine Fixed 2 releases
VersionStatusFixed in
v3.24 Fixed 2.5.2-r0
v3.23 Fixed 2.5.2-r0

References

CWEs

CWE-61

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.