Description
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().
Metrics
CVSS 3.1 7.8/10
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
Source: the vendor's advisory (CNA). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| gammapy | gammapy | <= 2.1 |
References
- https://github.com/gammapy/gammapy/blob/v2.1/gammapy/maps/wcs/geom.py
- https://github.com/gammapy/gammapy/commit/1be273b648e814c0605d8f3610d056c9c62130ca
- https://github.com/gammapy/gammapy/issues/7086
- https://www.vulncheck.com/advisories/gammapy-through-2.1-code-injection-via-wcsshape-fits-header-card
- https://github.com/gammapy/gammapy/issues/7086
Timeline
- Published
- Nov 22, 2026
- Last modified
- Nov 23, 2026
- NVD status
- Received