Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft .fits with Python in WCSSHAPE
-
ExploitDeliver file to target researcher
-
ExecutionVictim loads file via Map.read()
-
Impacteval() executes payload as loading user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to load an attacker-controlled .fits file through Gammapy's Map.read() / WcsGeom.from_header() using the GADF format path in versions through 2.1, where the WCSSHAPE header card reaches eval(). No authentication is required (PR:N) and no special non-default configuration is needed, but the attack is LOCAL (AV:L) and depends on user interaction (UI:P): the victim must choose to open the malicious file. Limiting factors are therefore the need to deliver an untrusted .fits file and get it loaded; code executes only with the privileges of the loading user, and there is no remote network trigger. |
| Impact | This is a genuine arbitrary-code-execution flaw (CWE-95) with a concrete, confirmed mechanism: WcsGeom.from_header() passed the WCSSHAPE FITS header card directly to eval(), and the fix commit (1be273b) replaces that with strict integer-tuple parsing, corroborating the description. However, the real-world risk is bounded by the delivery model rather than by severity alone. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P) correctly reflects that exploitation is LOCAL and requires the victim to load a malicious file - this is a 'pull'/open-a-file vulnerability, not remote network exploitation, despite the high 8.5 score and HIGH confidentiality/integrity/availability impact. No EPSS score, KEV listing, or confirmed public exploit is present in the input; the decision label is 'this_week', not 'act_now'/'emergency', consistent with a serious-but-not-actively-exploited issue. In short: a real priority for anyone processing untrusted .fits files in Gammapy, but not evidence of widespread opportunistic exploitation. The main caveat to flag: the 8.5 score can read as 'critical/remote' at a glance, whereas the vector and description agree this requires local file loading plus user interaction. |
| Exploit ScenarioDerived | An attacker crafts a .fits file whose WCSSHAPE header card contains a Python expression (e.g. an __import__('os') call) and distributes it via a shared dataset, email, or data repository. When a researcher opens it with Map.read(), Gammapy's from_header() passes the card to eval() and the embedded code runs with that user's privileges. The fix commit includes a test exercising a harmful WCSSHAPE payload, illustrating the mechanism, but the input provides no separately published working exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
Arbitrary Python code execution in Gammapy through 2.1 occurs when a crafted .fits file is loaded with Map.read(): the WcsGeom.from_header() GADF header handler passed the WCSSHAPE FITS header card directly to Python's eval(), so a malicious expression in that card runs with the privileges of the user doing the loading. The attack is local (AV:L) and depends on the victim choosing to open an untrusted file (UI:P), but needs no credentials (PR:N) and no non-default configuration; impact is high on confidentiality, integrity and availability of the loading user's environment, with no scope change. No CISA KEV entry or confirmed public exploit code is associated with this CVE at time of analysis, and the fault is confirmed by the upstream fix commit 1be273b, which replaces eval() with strict integer-tuple parsing, so remediation is straightforward for anyone on a release containing that change.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - commit 1be273b648e814c0605d8f3610d056c9c62130ca in gammapy replaces the eval() of WCSSHAPE with strict integer-tuple parsing and should be present in any later tagged release, so upgrade to the first Gammapy release that includes it (verify against the project's release notes for 7087 rather than assuming a version number). Until that upgrade is in place, the effective control is to treat .fits files as untrusted code: only load files from trusted sources, and pre-screen or reject headers whose WCSSHAPE card is anything other than a plain numeric tuple, since the assessment identifies the GADF header path as the condition that reaches the vulnerable eval(); the trade-off is that arbitrary GADF files can no longer be opened unchecked and automated pipelines need an explicit validation step. Run Gammapy ingestion of third-party data in a sandboxed or low-privilege process/container so that any injected expression executes without access to credentials, mounted secrets or network egress, accepting the operational cost of process isolation. Note that no remote trigger exists, so network filtering is not a meaningful mitigation, and the decision signal classifies this as this_week priority rather than an emergency. Advisory and patch references: https://github.com/gammapy/gammapy/issues/7086, https://github.com/gammapy/gammapy/commit/1be273b648e814c0605d8f3610d056c9c62130ca, https://www.vulncheck.com/advisories/gammapy-through-2.1-code-injection-via-wcsshape-fits-header-card.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Gammapy is a Python astronomy package for gamma-ray data analysis that reads FITS files into Map objects. FITS headers are free-form keyword/card stores, and the GADF (Gamma Astronomy Data Format) convention stores a WCS geometry's array shape in a text card named WCSSHAPE, typically serialized as a tuple literal such as "(10,20)". Rather than parsing that literal safely, WcsGeom.from_header() in gammapy/maps/wcs/geom.py routed the card value straight into eval(), the root cause class described by CWE-95 (improper neutralization of directives in dynamically evaluated code, i.e. eval injection). Because eval() executes arbitrary Python expressions, an attacker who controls the header of a .fits file can place any expression in WCSSHAPE and have it evaluated during Map.read()/Map.from_hdulist() processing. The upstream patch (commit 1be273b648e814c0605d8f3610d056c9c62130ca, release note 7087.bug.rst) removes the dynamic evaluation entirely, stripping parentheses and whitespace and converting each comma-separated element with int(), raising ValueError("Incorrect WCSSHAPE keyword.") on malformed input, and adds regression tests covering valid shapes, tolerant whitespace, and a hostile expression payload. The vulnerability is in the parsing of header content, not in WCS mathematics or FITS I/O itself; the trigger is the presence of an attacker-controlled WCSSHAPE card on the GADF header path, and code runs only within the process that opens the file.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local file must be loaded by the victim (AV:L, UI:R) with no auth (PR:N); eval() of attacker data yields full code execution as the user, so C:H/I:H/A:H with no scope change.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
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().
Executive ViewAI
CVE-2026-134694 is a high-severity flaw in Gammapy that allows arbitrary Python code execution when a user opens a maliciously crafted FITS file, potentially compromising the user's system and data. This impacts teams using Gammapy for data analysis, as opening untrusted files could lead to full system compromise, putting sensitive research and organizational data at risk.
No vendor-released patch identified at time of analysis. Interim mitigations include avoiding opening untrusted FITS files, verifying file sources, and manually applying the upstream fix commit 1be273b where feasible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-132589
GHSA-23p6-62vq-f652
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB