{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "2.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "1be273b648e814c0605d8f3610d056c9c62130ca"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "03f65e08ac04741ff5f1f7b1aeed20dddeac2023"
            },
            {
              "fixed": "1be273b648e814c0605d8f3610d056c9c62130ca"
            }
          ],
          "repo": "https://github.com/gammapy/gammapy",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-95"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134694.json"
  },
  "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().",
  "id": "CVE-2026-134694",
  "modified": "2026-11-22T03:45:47.633776380Z",
  "published": "2026-11-22T02:02:11.652Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134694.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/gammapy/gammapy"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/gammapy/gammapy/blob/v2.1/gammapy/maps/wcs/geom.py"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gammapy/gammapy/commit/1be273b648e814c0605d8f3610d056c9c62130ca"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/gammapy/gammapy/issues/7086"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-134694"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/gammapy-through-2.1-code-injection-via-wcsshape-fits-header-card"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Gammapy through 2.1 Code Injection via WCSSHAPE FITS Header Card"
}