All reports
High

cfitsio: cfitsio: arbitrary code execution via crafted FITS file

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-115504

Probability of exploitation in the next 30 days: 0.17%

FIRST EPSS · 2026-11-21

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.