Gammapy through 2.1 Code Injection via WCSSHAPE FITS Header Card
- State
- Published
- Severity
- 8.5 High
- Published
- Nov 22, 2026
- Updated
- Nov 23, 2026
- Reserved
- Nov 22, 2026
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().
| Product | Versions |
|---|---|
| gammapy gammapy | 2.1 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.5 High | VulnCheck | |
| 3.1 | 7.8 High | VulnCheck |
Weaknesses
- CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
References
- https://github.com/gammapy/gammapy/issues/7086Issue Tracker
- https://github.com/gammapy/gammapy/commit/1be273b648e814c0605d8f3610d056c9c62130caPatch
- https://github.com/gammapy/gammapy/blob/v2.1/gammapy/maps/wcs/geom.pyTechnical Details
- VulnCheck Advisory: Gammapy through 2.1 Code Injection via WCSSHAPE FITS Header CardThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.