{"id":"USN-8256-1","summary":"opam vulnerability","details":"Andrew Nesbitt discovered that opam did not properly validate file\ndestination paths in package install files. An attacker could use this\nissue to bypass sandbox protections and write files to arbitrary locations,\npossibly leading to arbitrary code execution.","modified":"2026-05-08T13:59:17.146132060Z","published":"2026-05-07T15:21:08Z","related":["UBUNTU-CVE-2026-41082"],"upstream":["CVE-2026-41082","UBUNTU-CVE-2026-41082"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8256-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-41082"}],"affected":[{"package":{"name":"opam","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/opam@2.0.5-1ubuntu1+esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.5-1ubuntu1+esm1"}]}],"versions":["2.0.5-1","2.0.5-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.5-1ubuntu1+esm1","binary_name":"opam"},{"binary_version":"2.0.5-1ubuntu1+esm1","binary_name":"opam-installer"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json","cves_map":{"cves":[{"id":"CVE-2026-41082","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L"},{"type":"Ubuntu","score":"medium"}]}],"ecosystem":"Ubuntu:Pro:20.04:LTS"}}},{"package":{"name":"opam","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/opam@2.1.2-1+deb12u1build0.22.04.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-1+deb12u1build0.22.04.1"}]}],"versions":["2.0.8-1","2.0.10-1","2.1.2-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1.2-1+deb12u1build0.22.04.1","binary_name":"opam"},{"binary_version":"2.1.2-1+deb12u1build0.22.04.1","binary_name":"opam-installer"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json","cves_map":{"cves":[{"id":"CVE-2026-41082","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L"},{"type":"Ubuntu","score":"medium"}]}],"ecosystem":"Ubuntu:22.04:LTS"}}},{"package":{"name":"opam","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/opam@2.1.5-1ubuntu0.1~esm2?arch=source&distro=esm-apps/noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.5-1ubuntu0.1~esm2"}]}],"versions":["2.1.5-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"2.1.5-1ubuntu0.1~esm2","binary_name":"opam"},{"binary_version":"2.1.5-1ubuntu0.1~esm2","binary_name":"opam-installer"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json","cves_map":{"cves":[{"id":"CVE-2026-41082","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L"},{"type":"Ubuntu","score":"medium"}]}],"ecosystem":"Ubuntu:Pro:24.04:LTS"}}},{"package":{"name":"opam","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/opam@2.3.0-1+deb13u1build0.25.10.1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0-1+deb13u1build0.25.10.1"}]}],"versions":["2.3.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.3.0-1+deb13u1build0.25.10.1","binary_name":"opam"},{"binary_version":"2.3.0-1+deb13u1build0.25.10.1","binary_name":"opam-installer"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json","cves_map":{"cves":[{"id":"CVE-2026-41082","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L"},{"type":"Ubuntu","score":"medium"}]}],"ecosystem":"Ubuntu:25.10"}}},{"package":{"name":"opam","ecosystem":"Ubuntu:Pro:26.04:LTS","purl":"pkg:deb/ubuntu/opam@2.5.0-1ubuntu0.1~esm1?arch=source&distro=esm-apps/resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.0-1ubuntu0.1~esm1"}]}],"versions":["2.3.0-1","2.4.1-1","2.5.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.5.0-1ubuntu0.1~esm1","binary_name":"opam"},{"binary_version":"2.5.0-1ubuntu0.1~esm1","binary_name":"opam-installer"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json","cves_map":{"cves":[{"id":"CVE-2026-41082","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L"},{"type":"Ubuntu","score":"medium"}]}],"ecosystem":"Ubuntu:Pro:26.04:LTS"}}}],"schema_version":"1.7.5"}