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-111124 Overview
CVE-2026-111124 is a heap-based out-of-bounds read vulnerability in NASA's CFITSIO library through version 4.7.0. The flaw resides in the unquantize helper functions in imcompress.c, which fail to validate the ZDITHER0 seed value before indexing into the fits_rand_value table. When an attacker supplies a crafted FITS file containing a SUBTRACTIVE_DITHER_1 compressed image with a zero or negative ZDITHER0 seed, the decompression path reads memory before the start of the dither table. The issue is reachable through standard API calls such as fits_open_file() and fits_read_pix(), which are used by most downstream FITS consumers.
Critical Impact
Processing an untrusted FITS file can crash the host application or disclose adjacent heap memory into decoded pixel values, enabling information leakage from astronomy and scientific imaging workflows.
Affected Products
- NASA CFITSIO versions through 4.7.0
- Applications linking CFITSIO for FITS image decompression
- Scientific pipelines invoking fits_open_file() and fits_read_pix() on untrusted input
Discovery Timeline
- 2026-10-15 - CVE-2026-111124 published to the National Vulnerability Database (NVD)
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-111124
Vulnerability Analysis
CFITSIO is NASA's reference C library for reading and writing Flexible Image Transport System (FITS) files, the dominant format in astronomy. FITS files support tile-compressed images with a dithering scheme that randomizes quantization noise. The dither sequence is seeded from the ZDITHER0 keyword stored in the FITS header, and the seed selects a starting offset inside the precomputed fits_rand_value table.
In the vulnerable unquantize helpers in imcompress.c, the code trusts the ZDITHER0 value supplied by the file. When the seed is zero or negative, the arithmetic used to derive the table index produces an offset that points before the base of fits_rand_value. The subsequent read dereferences heap memory that lies in front of the table, and the retrieved value is mixed into the decoded pixel stream.
The out-of-bounds read [CWE-125] is deterministic and reproducible with a single crafted file. Exploitation requires only that a victim open the file with a CFITSIO-based tool, so the attack surface extends to viewers, pipelines, and web services that accept user-supplied astronomical imagery.
Root Cause
The root cause is missing input validation on the ZDITHER0 header value before it is used as an index base. The code assumes the seed falls within the positive range that keeps the computed offset inside fits_rand_value, but it never clamps or rejects non-positive values.
Attack Vector
The attack vector is local file processing with user interaction. An attacker crafts a FITS file that declares a SUBTRACTIVE_DITHER_1 compressed image and sets ZDITHER0 to zero or a negative integer. When the victim opens the file through fits_open_file() and reads pixels through fits_read_pix() or equivalent high-level APIs, CFITSIO performs the out-of-bounds read during decompression. The leaked bytes either crash the process or appear as corrupted pixel values that can be sampled by the attacker if the output is returned.
No synthetic exploit code is reproduced here. The vulnerable index arithmetic is documented in the VulnCheck CFITSIO Advisory and the HackMD Analysis on CFITSIO, with the relevant source lines in the GitHub CFITSIO Repository.
Detection Methods for CVE-2026-111124
Indicators of Compromise
- FITS files containing a ZDITHER0 header keyword with a value less than or equal to zero.
- FITS files that declare ZQUANTIZ = 'SUBTRACTIVE_DITHER_1' combined with suspicious or malformed dither seeds.
- Crashes or segmentation faults in processes that link libcfitsio while handling untrusted input.
Detection Strategies
- Scan ingested FITS files with a parser that extracts header keywords and flags non-positive ZDITHER0 values before passing files to CFITSIO-based tools.
- Run FITS processing jobs under AddressSanitizer in staging to surface heap out-of-bounds reads during regression tests.
- Monitor process telemetry for unexpected termination of astronomy pipeline binaries that consume external FITS data.
Monitoring Recommendations
- Alert on repeated crashes of FITS consumers originating from the same upload source or user identity.
- Log and review the provenance of FITS files received from external collaborators, web portals, or email attachments.
- Correlate pipeline failures with file metadata to identify malformed ZDITHER0 values entering the environment.
How to Mitigate CVE-2026-111124
Immediate Actions Required
- Inventory all applications and containers that link CFITSIO 4.7.0 or earlier and prioritize those exposed to externally supplied FITS files.
- Pre-validate the ZDITHER0 keyword on ingest and reject files where the value is zero or negative.
- Isolate FITS decoding in sandboxed or least-privilege processes to contain any heap disclosure.
Patch Information
At the time of publication, the advisory lists CFITSIO versions through 4.7.0 as affected. Monitor the GitHub CFITSIO Repository for an upstream fix that validates the ZDITHER0 seed before indexing fits_rand_value, and track distribution packages for backported patches. Refer to the VulnCheck CFITSIO Advisory for the current fix status.
Workarounds
- Reject FITS files whose ZDITHER0 header is not a positive integer before invoking any CFITSIO API.
- Disable or avoid code paths that process SUBTRACTIVE_DITHER_1 tile-compressed images from untrusted sources.
- Run FITS parsers under restrictive sandboxes such as seccomp or containers to limit the impact of a heap read.
# Example header pre-check using the fitsverify/listhead-style approach
listhead untrusted.fits | awk '/^ZDITHER0/ { if ($3+0 <= 0) { print "REJECT: non-positive ZDITHER0"; exit 1 } }'
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

