{"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-07-09T17:15:48.437353169Z","published":"2026-05-07T15:21:08Z","related":["UBUNTU-CVE-2026-41082"],"upstream":["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?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.5-1ubuntu1+esm1"}]}],"versions":["2.0.5-1","2.0.5-1ubuntu1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"opam","binary_version":"2.0.5-1ubuntu1+esm1"},{"binary_version":"2.0.5-1ubuntu1+esm1","binary_name":"opam-installer"}]},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:20.04:LTS","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":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"score":"medium","type":"Ubuntu"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json"}},{"package":{"name":"opam","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/opam?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":{"availability":"No subscription required","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"}]},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:22.04:LTS","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":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"score":"medium","type":"Ubuntu"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json"}},{"package":{"name":"opam","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/opam?arch=source&distro=esm-apps%2Fnoble"},"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_name":"opam","binary_version":"2.1.5-1ubuntu0.1~esm2"},{"binary_version":"2.1.5-1ubuntu0.1~esm2","binary_name":"opam-installer"}]},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:24.04:LTS","cves":[{"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":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}],"id":"CVE-2026-41082"}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json"}},{"package":{"name":"opam","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/opam?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_name":"opam-installer","binary_version":"2.3.0-1+deb13u1build0.25.10.1"}],"availability":"No subscription required"},"database_specific":{"cves_map":{"cves":[{"id":"CVE-2026-41082","severity":[{"score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"type":"Ubuntu","score":"medium"}]}],"ecosystem":"Ubuntu:25.10"},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json"}},{"package":{"name":"opam","ecosystem":"Ubuntu:Pro:26.04:LTS","purl":"pkg:deb/ubuntu/opam?arch=source&distro=esm-apps%2Fresolute"},"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":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"opam","binary_version":"2.5.0-1ubuntu0.1~esm1"},{"binary_name":"opam-installer","binary_version":"2.5.0-1ubuntu0.1~esm1"}]},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:26.04:LTS","cves":[{"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":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H"},{"score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2026-41082"}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json"}}],"schema_version":"1.7.5"}