{"id":"UBUNTU-CVE-2026-134694","details":"Gammapy through 2.1 contains a code injection vulnerability in WcsGeom.from_header() that passes the WCSSHAPE FITS header card to eval(). Attackers can supply a crafted .fits file with a Python expression in WCSSHAPE, executing code as the user who loads it via Map.read().","modified":"2026-11-25T17:45:52Z","published":"2026-11-22T02:17:00Z","upstream":["CVE-2026-134694"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-134694"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-134694"},{"type":"REPORT","url":"https://github.com/gammapy/gammapy/blob/v2.1/gammapy/maps/wcs/geom.py"},{"type":"REPORT","url":"https://github.com/gammapy/gammapy/commit/1be273b648e814c0605d8f3610d056c9c62130ca"},{"type":"REPORT","url":"https://github.com/gammapy/gammapy/issues/7086"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/gammapy-through-2.1-code-injection-via-wcsshape-fits-header-card"}],"affected":[{"package":{"name":"gammapy","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/gammapy?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.13-1","0.15-1","0.16-1","0.16-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-gammapy","binary_version":"0.16-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-134694.json"}},{"package":{"name":"gammapy","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/gammapy?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.1-1build1","2.1-1","2.1-2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1-2","binary_name":"python3-gammapy"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-134694.json"}},{"package":{"name":"gammapy","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/gammapy?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3-2","2.0-3","2.0-5","2.0-6","2.0.1-1","2.0.1-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-gammapy","binary_version":"2.0.1-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-134694.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CNA"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"CNA"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}