Skip to main content

Gammapy CVE-2026-134694

| EUVDEUVD-2026-132589 HIGH
Eval Injection (CWE-95)
2026-11-22 disclosure@vulncheck.com GHSA-23p6-62vq-f652
8.5
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft .fits with Python in WCSSHAPE
  2. Exploit
    Deliver file to target researcher
  3. Execution
    Victim loads file via Map.read()
  4. Impact
    eval() 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

gammapy 0 ≤2.1

Affected Packages

euvd gammapy no fix

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

Vendor (vulncheck) PRIMARY 8.5 HIGH
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
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Low
niche gamma-ray astronomy Python library, research/scientific user base only
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy