Description
CFITSIO through 4.7.0 contains a heap-based out-of-bounds read vulnerability in the HCOMPRESS tile decoder that allows attackers to read past the compressed tile buffer via input_nnybble in fits_hdecompress.c. Attackers can supply a crafted FITS file with ZCMPTYPE HCOMPRESS_1 declaring oversized tile geometry to crash applications calling fits_read_pix or disclose limited heap memory.
Metrics
CVSS 3.1 7.1/10
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| HEASARC | cfitsio | <= 4.7.0 |
References
- https://github.com/HEASARC/cfitsioProduct
- https://github.com/HEASARC/cfitsio/blob/d6d27653740864a0483e74cff23c53e34e1dceee/fits_hdecompress.c#L2575-L2633Product
- https://github.com/HEASARC/cfitsio/blob/d6d27653740864a0483e74cff23c53e34e1dceee/imcompress.c#L6310-L6316Product
- https://hackmd.io/@haind-pwn/cfitsio-zdither0-dither-seed-oob-readExploit, Mitigation, Third Party Advisory
- https://www.vulncheck.com/advisories/cfitsio-through-4.7.0-heap-out-of-bounds-read-via-hcompress-input-nnybbleThird Party Advisory
Timeline
- Published
- Oct 15, 2026
- Last modified
- Oct 21, 2026
- NVD status
- Analyzed