{"id":"CVE-2026-41082","aliases":["CVE-2026-41082","OSEC-2026-03"],"related":[],"kind":"vulnerability","state":"published","title":"opam install sandbox escape","summary":"In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.","source":"cvelist"},{"lang":"en","text":"## Summary\n\n`.install` files do not validate whether they are inside the package area, and so can bypass sandboxing.\n\n## Exploit\n\nIn a `package.install` file, this installs a file as ``~/.bashrc`:\n```\nbin: [\n  \"payload.sh\" {\"../../../.bashrc\"}\n]\n```\n\n## Timeline\n\n- 2026-04-11: Anil forwarded the issue from Andrew Nesbitt to the OCaml security team\n- 2026-04-11: Kate developed a fix\n- 2026-04-15: opam 2.5.1 was released with the fix","format":"markdown","source":"osec"},{"lang":"es","text":"En OCaml opam antes de 2.5.1, un campo .install que contiene una ruta de archivo de destino puede usar .. /  para alcanzar un directorio padre.","source":"nvd"}],"published":"2026-04-15T22:00:00.000Z","modified":"2026-11-06T13:45:04.187Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","score":7.3,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},{"scorer":"OCaml Security Advisories","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","score":5.7,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-22","CWE-24"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2.5.1","status":"affected"}],"vendor":"OCaml","product":"opam","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"ocaml-dune","cpe":"cpe:/o:redhat:enterprise_linux:10","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.5.1"}],"ecosystem":"opam","package":"opam-devel","purl":"pkg:opam/opam-devel","source":"osec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"d7283e3b5845447ee618794d87cfe224dd980c8f"},{"type":"git","introduced":"0","status":"affected","fixed":"c8fcf65779fe7048f9b5ef59886bfa9c5d102d84"}],"repo":"https://github.com/ocaml/opam","source":"osec"},{"ranges":[{"status":"affected","fixed":"2.5.1"}],"vendor":"ocaml","product":"opam","cpe":"cpe:2.3:a:ocaml:opam:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"redhat","product":"enterprise_linux","cpe":"cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ocaml/opam/releases/tag/2.5.1","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ocaml/opam/pull/6897","tags":["fix","issue-tracking","patch"],"sources":["cvelist","osec","nvd"]},{"url":"https://osv.dev/vulnerability/OSEC-2026-03","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/04/msg00021.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-41082","tags":["third-party-advisory","vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2459003","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41082.json","tags":["third-party-advisory","x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ocaml/opam/pull/6898","tags":["fix"],"sources":["osec"]}],"credits":["Andrew Nesbitt","Kate","Raja Boujbel","Hannes Mehnert"],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-16T16:10:19.452Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41082","url":"https://www.cve.org/CVERecord?id=CVE-2026-41082","licence":"CVE Terms of Use","modified":"2026-07-15T01:00:03.411Z"},{"source":"osec","name":"OCaml Security Advisories","id":"OSEC-2026-03","url":"https://osv.dev/vulnerability/OSEC-2026-03","licence":"CC0-1.0","modified":"2026-11-06T13:45:04.187Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41082","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41082","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:18.911Z","epss":{"score":0.00213,"percentile":0.12343,"date":"2026-12-01T12:00:22.000Z"}}