Read the docs

Code injection in Gammapy via WCSSHAPE FITS header card

Priority HIGH 72CWE-95Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
No fix listed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-95.

Summary

Gammapy through 2.1 contains a code injection flaw in WcsGeom.from_header(), which passes the WCSSHAPE FITS header card to eval(). This is an improper neutralization of directives in dynamically evaluated code (CWE-95). An attacker with no privileges can supply a crafted .fits file with a Python expression in WCSSHAPE, and the code runs as the user who loads the file with Map.read(), so a user must open it.

Written with Claude Haiku 5.5 from the sources below · 2026-11-23

Description from the CNA

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().

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00228 8th percentileScored 2026-11-30
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
gammapygammapyup to 2.1—No fix listedCNA
  • gammapy Vendorgammapy Affected up to 2.1 Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for gammapy.

Written with Claude Haiku 5.5 from the sources below · 2026-11-23

Timeline

  1. 2026-11-22 Threatist record created from CVE-2026-134694
  2. 2026-11-22 Alias added: GHSA-23p6-62vq-f652
  3. 2026-11-23 CISA SSVC decision points changed

References

Sources