← News

Gammapy: code injection via crafted FITS file

HighAI-generated2026-11-22

CVE
CVE-2026-134694
Severity
High (CVSS 7.8)
Attack conditions
With local access to the device · No account needed · A user must take some action
Exploitation probability (EPSS)
0.2% (within 30 days; FIRST EPSS, 27 November 2026)

Summary

Gammapy versions up to 2.1 are vulnerable to a code injection flaw that can be triggered by a specially crafted FITS file.

Details

According to the NVD record, Gammapy through version 2.1 contains a code injection vulnerability in the WcsGeom.from_header() function. The flaw occurs because the function passes the WCSSHAPE FITS header card directly to eval().

An attacker can create a malicious .fits file that includes a Python expression in the WCSSHAPE header. When the file is loaded with Map.read(), the expression is executed with the privileges of the user running the software.

What to do

The source record does not name a specific patch, fixed version or workaround. General measures:

  • Follow the vendor's security advisories.
  • Apply the update when it is released.
  • Limit access to the product as much as possible, especially from the internet.

Sources

Timeline

  • 22 November 2026 This article was written
  • 22 November 2026 NVD record published