CVE-2026-134694
Received Received - Intake

Gammapy Code Injection via WCSSHAPE FITS Header

Vulnerability report for CVE-2026-134694, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-22

Last updated on: 2026-11-22

Assigner: VulnCheck

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().

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-22
Last Modified
2026-11-22
Generated
2026-11-22
AI Q&A
2026-11-22
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
gammapy gammapy From 0 (inc) to 2.1 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-95 The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

Gammapy through version 2.1 has a code injection flaw in the WcsGeom.from_header() function. It improperly handles the WCSSHAPE FITS header card by passing it directly to Python's eval() function. Attackers can exploit this by creating a malicious .fits file with a Python expression in the WCSSHAPE header. When a user loads this file using Map.read(), the embedded code executes with the user's permissions.

Detection Guidance

To detect this vulnerability, inspect Python applications using Gammapy versions before 2.1 for .fits files with WCSSHAPE header cards containing Python expressions. Check logs for eval() calls during file parsing. Use static analysis tools to scan code for unsafe eval() usage with user-controlled input.

Impact Analysis

If you use Gammapy to process .fits files, an attacker could craft a file that executes arbitrary code on your system when you load it. This could lead to data theft, system compromise, or further network infiltration, depending on your user privileges and system configuration.

Compliance Impact

This vulnerability could lead to unauthorized data access or exfiltration, violating GDPR's data protection requirements or HIPAA's safeguards for protected health information. Organizations using Gammapy may face compliance violations if sensitive data is compromised due to this flaw.

Mitigation Strategies

Upgrade Gammapy to version 2.1 or later. Avoid loading untrusted .fits files. Implement input validation for WCSSHAPE headers. Use sandboxed environments for file parsing. Monitor for suspicious eval() calls in application logs.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-134694. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...