Skip to content
Gammapy Code Injection (CVE-2026-134694) Lets Malicious FITS Files Execute Code

Gammapy Code Injection (CVE-2026-134694) Lets Malicious FITS Files Execute Code

First seen 22 Nov 2026, 21:43 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 22, 2026 at 22:13 UTC
  • •Gammapy through 2.1 passes the WCSSHAPE FITS header card to eval(), enabling code execution when a crafted map is loaded with Map.read().
  • •CVE-2026-134694 carries a CVSS score of 8.5 (high); no exploitation in the wild is reported in the provided articles.
  • •A public GitHub issue describes a working proof of concept confirmed on gammapy 2.1 with astropy on Linux.
  • •Users should avoid loading untrusted FITS files and inspect WCSSHAPE values until a fixed release is confirmed.
  • •The articles do not state a patched version; the GitHub issue recommends parsing the card with ast.literal_eval.

A code injection vulnerability in Gammapy through version 2.1, tracked as CVE-2026-134694 with a CVSS score of 8.5, affects the WcsGeom.from_header() function. The function passes the WCSSHAPE FITS header card to eval(), so a crafted .fits or .fits.gz file containing a Python expression can execute code as the user who loads it via Map.read(). Vulnerability database Redpacketsecurity describes the risk as high for teams processing untrusted scientific data. A GitHub issue (gammapy/gammapy#7086) describes a proof of concept in which an attacker modifies the WCSSHAPE card to run a shell command, which the issue reports was confirmed on gammapy 2.1 with astropy on Linux. The issue states the same code is present on the default branch HEAD. Affected users are those who open FITS maps from collaborators, repositories or supplementary data, typically on analysis workstations, HPC nodes or CI runners. Redpacketsecurity notes that no KEV, SSVC, EPSS or exploitation-in-the-wild indicators were supplied, so urgency cannot be ranked from its data. Cveplayground references EPSS and CISA KEV for exploit likelihood but does not report a KEV listing in its text. The GitHub issue proposes replacing eval with ast.literal_eval as the fix direction. No patched release is confirmed in the articles.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Timeline

2026-11-22
CVE-2026-134694 published
Gammapy code injection via WCSSHAPE header card disclosed with CVSS 8.5.
Cveplayground
2026-11-22
Proof of concept documented in public issue
GitHub issue #7086 describes modifying WCSSHAPE to run a command during Map.read, confirmed on gammapy 2.1.
github.com

More articles in this cluster (6)

Following this threat?

Track CVE-2026-134694 in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed

Common questions

Am I affected?
You are affected if you run Gammapy through version 2.1 and load FITS maps from sources you do not control. The articles do not list a patched version.
How urgent is this?
The articles rate the risk as high for teams processing untrusted data, but they provide no KEV listing or exploitation-in-the-wild evidence. A public proof of concept exists.
What should we do now?
Avoid loading untrusted .fits files, inspect WCSSHAPE header values first, and run analysis with least privilege until an upstream fix is applied and tested.