{"id":"CVE-2026-41082","state":"PUBLISHED","title":"In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.","description":"In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.","publishedAt":"2026-04-16T17:32:40.068Z","updatedAt":"2026-07-15T01:00:03.411Z","severity":{"score":7.3,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","source":"mitre"},"assigner":"mitre","products":["OCaml opam"],"affected":[{"vendor":"OCaml","product":"opam","packageURL":"pkg:opam/opam-format","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.5.1","versionType":"semver"}]}],"references":["https://github.com/ocaml/opam/releases/tag/2.5.1","https://github.com/ocaml/opam/pull/6897","https://osv.dev/vulnerability/OSEC-2026-03","https://lists.debian.org/debian-lts-announce/2026/04/msg00021.html","https://access.redhat.com/security/cve/CVE-2026-41082","https://bugzilla.redhat.com/show_bug.cgi?id=2459003","https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41082.json"],"weaknesses":["CWE-24"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/41xxx/CVE-2026-41082.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-41082","state":"PUBLISHED","datePublished":"2026-04-16T17:32:40.068Z","dateUpdated":"2026-07-15T01:00:03.411Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2026-04-16T17:32:39.584Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory."}],"affected":[{"vendor":"OCaml","product":"opam","packageURL":"pkg:opam/opam-format","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.5.1","versionType":"semver"}]}],"references":[{"url":"https://github.com/ocaml/opam/releases/tag/2.5.1"},{"url":"https://github.com/ocaml/opam/pull/6897"},{"url":"https://osv.dev/vulnerability/OSEC-2026-03"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":7.3,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-24","description":"CWE-24 Path Traversal: '../filedir'","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2026-06-15T18:52:20.182Z"},"x_generator":{"engine":"CVE-Request-form 0.0.1"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://osv.dev/vulnerability/OSEC-2026-03","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-16T16:10:19.452755Z","id":"CVE-2026-41082","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-16T16:10:25.046Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2026/04/msg00021.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-04-21T09:32:52.152Z"}},{"title":"ocaml-opam: path traversal via the .install field","descriptions":[{"lang":"en","value":"A flaw was found in OCaml opam. A malicious package containing a crafted .install field with directory traversal sequences allows an attacker to write files to arbitrary locations, potentially overwriting system files and causing arbitrary code execution."}],"affected":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","packageName":"ocaml-dune","defaultStatus":"affected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","cpes":["cpe:/o:redhat:enterprise_linux:10"]}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-41082","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2459003","name":"RHBZ#2459003","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41082.json","tags":["x_sadp-csaf-vex"]}],"metrics":[{"other":{"content":{"namespace":"https://access.redhat.com/security/updates/classification/","value":"Important"},"type":"Red Hat severity rating"}},{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","version":"3.1"},"format":"CVSS"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-24","description":"Path Traversal: '../filedir'","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"redhat-SADP","orgId":"0b0ca135-0b70-47e7-9f44-1890c2a1c46c","dateUpdated":"2026-07-15T01:00:03.411Z"},"datePublic":"2026-04-16T17:32:40.068Z","timeline":[{"lang":"en","time":"2026-04-16T18:00:56.999Z","value":"Reported to Red Hat."},{"lang":"en","time":"2026-04-16T17:32:40.068Z","value":"Made public."}],"workarounds":[{"lang":"en","value":"To mitigate this vulnerability, do not install packages from untrusted sources and manually inspect the .install field in the package source to make sure it does not contain malicious paths."}],"x_adpType":"supplier","x_generator":{"engine":"sadp-cli 1.0.0"}}]}}}