Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-111125 Overview
CVE-2026-111125 is a heap-based out-of-bounds read vulnerability [CWE-125] in NASA's CFITSIO library through version 4.7.0. The flaw resides in the HCOMPRESS tile decoder, specifically within the input_nnybble routine in fits_hdecompress.c. Attackers craft a malicious Flexible Image Transport System (FITS) file with ZCMPTYPE HCOMPRESS_1 and oversized tile geometry declarations. When applications call fits_read_pix to process the file, the decoder reads past the bounds of the compressed tile buffer. This can crash the application or disclose limited heap memory contents to the attacker.
Critical Impact
Crafted FITS files trigger application crashes and limited heap memory disclosure in astronomy and scientific software linked against vulnerable CFITSIO builds.
Affected Products
- NASA CFITSIO versions through 4.7.0
- Applications linking the vulnerable fits_hdecompress.c decoder
- Scientific and astronomy pipelines invoking fits_read_pix on untrusted FITS inputs
Discovery Timeline
- 2026-10-15 - CVE CVE-2026-111125 published to NVD
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-111125
Vulnerability Analysis
CFITSIO is NASA's C library for reading and writing FITS files, the standard data format in astronomy. The HCOMPRESS algorithm compresses image tiles using H-transform encoding followed by quadtree compression. The decoder processes nybble-packed data through the input_nnybble helper to reconstruct original pixel values.
The vulnerable path begins when an application calls fits_read_pix on a FITS file containing ZCMPTYPE HCOMPRESS_1. The decoder trusts the tile dimensions declared in the file header without validating them against the actual compressed buffer size. When tile geometry is inflated beyond the real buffer, input_nnybble continues reading nybbles past the allocated heap region.
The reference analysis at HackMD cfitsio Analysis and the VulnCheck cfitsio Advisory document the exact source locations in fits_hdecompress.c and imcompress.c.
Root Cause
The root cause is missing bounds validation between the declared tile geometry metadata and the actual size of the compressed input buffer. The HCOMPRESS decoder treats the ZNAXIS and tile dimension fields as trusted, deriving loop counts from attacker-controlled values. No sanity check reconciles those values against the length of the buffer passed to input_nnybble.
Attack Vector
Exploitation requires local file processing with user interaction, such as opening or loading a FITS file. An attacker constructs a FITS file declaring HCOMPRESS_1 compression and oversized tile geometry. When a victim passes the file to an application built on CFITSIO, the decoder dereferences heap memory beyond the compressed tile buffer. The outcome is either a process crash denial-of-service or disclosure of adjacent heap bytes.
The vulnerability requires no authentication and no network access. See the vulnerable code regions in the GitHub cfitsio Source Code Segment and the GitHub cfitsio Code Fragment.
No public proof-of-concept exploit code is linked from the enriched references. Readers should consult the VulnCheck cfitsio Advisory for the authoritative technical write-up.
Detection Methods for CVE-2026-111125
Indicators of Compromise
- FITS files declaring ZCMPTYPE = 'HCOMPRESS_1' with tile dimensions inconsistent with the embedded compressed payload length
- Unexpected crashes or AddressSanitizer heap-buffer-overflow reports in processes invoking fits_read_pix
- Core dumps from astronomy pipelines referencing fits_hdecompress.c or input_nnybble in the stack trace
Detection Strategies
- Fuzz CFITSIO-linked applications with AddressSanitizer enabled to surface out-of-bounds reads in the HCOMPRESS decoder
- Parse incoming FITS headers at the gateway and flag files where declared tile geometry exceeds the compressed payload size
- Inventory binaries that statically link CFITSIO versions at or below 4.7.0 across scientific workstations and shared compute clusters
Monitoring Recommendations
- Alert on repeated process crashes of applications processing third-party FITS files
- Log file provenance for FITS inputs sourced from external collaborators, email attachments, or public archives
- Monitor memory telemetry on shared analysis hosts for abnormal faults originating in CFITSIO decoder frames
How to Mitigate CVE-2026-111125
Immediate Actions Required
- Identify all applications and container images that link CFITSIO 4.7.0 or earlier
- Restrict processing of FITS files to trusted sources until the library is updated
- Run FITS-handling tools in sandboxed or non-privileged accounts to contain crash impact and memory disclosure
Patch Information
Monitor the upstream GitHub cfitsio Repository for a release addressing the HCOMPRESS input_nnybble out-of-bounds read. Rebuild or repackage downstream distributions, scientific pipelines, and container images once a fixed CFITSIO release is published. Validate the fix by replaying known malformed FITS samples through the updated decoder under AddressSanitizer.
Workarounds
- Disable or avoid code paths that call fits_read_pix on HCOMPRESS-compressed tiles from untrusted sources
- Pre-validate FITS headers to reject files where ZCMPTYPE equals HCOMPRESS_1 and tile geometry exceeds the compressed segment length
- Execute CFITSIO-based tools inside containers, seccomp profiles, or dedicated accounts to limit heap disclosure scope
# Example: identify binaries linking vulnerable CFITSIO on Linux hosts
for bin in $(find /usr /opt -type f -executable 2>/dev/null); do
ldd "$bin" 2>/dev/null | grep -q libcfitsio && echo "$bin"
done
# Example: reject suspicious HCOMPRESS FITS files at ingest
fitsverify suspect.fits && \
grep -E "ZCMPTYPE *= *'HCOMPRESS_1'" header.txt && \
echo "Quarantine: review tile geometry before processing"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

