CVE-2026-57825
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
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
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
| Name | CVE-2026-57825 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4684-1, DSA-6386-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| opam (PTS) | bookworm | 2.1.2-1+deb12u1 | vulnerable |
| bookworm (security) | 2.1.2-1+deb12u2 | fixed | |
| trixie | 2.3.0-1+deb13u1 | vulnerable | |
| trixie (security) | 2.3.0-1+deb13u2 | fixed | |
| forky, sid | 2.5.2-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| opam | source | bookworm | 2.1.2-1+deb12u2 | DLA-4684-1 | ||
| opam | source | trixie | 2.3.0-1+deb13u2 | DSA-6386-1 | ||
| opam | source | (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)
Apply commands
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 Mixed 5 releases
| Version | Status | Fixed 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 Fixed 2 releases
| Version | Status | Fixed in |
|---|---|---|
| v3.24 | Fixed | 2.5.2-r0 |
| v3.23 | Fixed | 2.5.2-r0 |
References
- https://security-tracker.debian.org/tracker/CVE-2026-57825
- https://security.alpinelinux.org/vuln/CVE-2026-57825
- https://pkgs.alpinelinux.org/packages?name=opam
- https://github.com/ocaml/opam/releases
- https://osv.dev/vulnerability/OSEC-2026-10
- https://lists.debian.org/debian-lts-announce/2026/07/msg00026.html
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.