# CVE-2026-41082: opam install sandbox escape

- Severity: High 7.3 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L`
- 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.21%, higher than 12% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-15T22:00:00.000Z
- Modified: 2026-11-06T13:45:04.187Z
- Also known as: OSEC-2026-03
- Weaknesses: CWE-22, CWE-24
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## Description

In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.

(As written by CVE List.)

## Affected

- OCaml opam: before 2.5.1
- ocaml-dune: no versions given
- opam-devel (opam): before 2.5.1
- https://github.com/ocaml/opam: before d7283e3b5845447ee618794d87cfe224dd980c8f; before c8fcf65779fe7048f9b5ef59886bfa9c5d102d84
- debian debian_linux: 11.0
- redhat enterprise_linux: 10.0

## Every score

- mitre: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L`
- redhat-SADP: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- 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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://osv.dev/vulnerability/OSEC-2026-03> (exploit, third-party-advisory)
- <https://github.com/ocaml/opam/releases/tag/2.5.1> (release-notes)
- <https://github.com/ocaml/opam/pull/6897> (fix, issue-tracking, patch)
- <https://lists.debian.org/debian-lts-announce/2026/04/msg00021.html> (mailing-list, third-party-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-41082> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2459003> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41082.json> (third-party-advisory)
- <https://github.com/ocaml/opam/pull/6898> (fix)

## Sources

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

---

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