Affected versions
- Affected versions
- Unknown
- Fixed version
- Not reported
Exploitation
Description
CFITSIO through 4.7.0 contains an out-of-bounds write vulnerability in ffgcls2() in getcols.c that trusts attacker-controlled heap descriptor lengths for variable-length string columns. Attackers can supply a crafted FITS file that overflows a fixed 28,800-byte stack buffer and the caller's string array, enabling arbitrary code execution.
A flaw was found in cfitsio. An attacker could exploit this vulnerability by enticing a user or automated system to process a specially crafted Flexible Image Transport System (FITS) file. Due to improper bounds checking when handling variable-length string columns in the ffgcls2() function, an out-of-bounds write occurs, which can lead to memory corruption and arbitrary code execution.

