# CVE-2026-57825: opam install sandbox escape using symlinks

- Severity: Medium 5.7 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-07-07T12:00:00.000Z
- Modified: 2026-11-06T13:45:03.916Z
- Also known as: OSEC-2026-10
- Weaknesses: CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- OCaml opam: before 2.5.2
- opam-devel (opam): before 2.5.2
- https://github.com/ocaml/opam: before 09c3df1ffb33cc0a09b3a81f36bb74898dce2120; before 248f8400e5ecb6ecbd7a672448477d08cedfdc24

## Every score

- mitre: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`
- OCaml Security Advisories: CVSS:3.0 5.7 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://github.com/ocaml/opam/releases>
- <https://osv.dev/vulnerability/OSEC-2026-10>
- <https://lists.debian.org/debian-lts-announce/2026/07/msg00026.html>
- <https://github.com/ocaml/opam/pull/7005> (fix)
- <https://github.com/ocaml/opam/pull/7006> (fix)

## Sources

- CVE List: [CVE-2026-57825](https://www.cve.org/CVERecord?id=CVE-2026-57825), CVE Terms of Use, modified 2026-09-14
- OCaml Security Advisories: [OSEC-2026-10](https://osv.dev/vulnerability/OSEC-2026-10), CC0-1.0, modified 2026-11-06
- NVD: [CVE-2026-57825](https://nvd.nist.gov/vuln/detail/CVE-2026-57825), Public domain, modified 2026-09-14

---

Page: https://cve.day/CVE-2026-57825 · Whole record: https://cve.day/CVE-2026-57825.json · Rebuilt by cve.day 2026-11-25T22:59:37.686Z
