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
Affects cfitsioSource GCVE Database
Not known to be exploited · CVSS 8.5 High.
Data as of 28 Oct 2026, 22:31 UTC
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10cfitsiopkg:deb/ubuntu/cfitsio?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTScfitsiopkg:deb/ubuntu/cfitsio?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTScfitsiopkg:deb/ubuntu/cfitsio?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTScfitsiopkg:deb/ubuntu/cfitsio?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTScfitsiopkg:deb/ubuntu/cfitsio?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTScfitsiopkg:deb/ubuntu/cfitsio?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-115504 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-115504 (opens in a new tab)
- gist.github.com/yure1432/98f15c7e8f48dc90ae65646f926aa176 (opens in a new tab)
- github.com/HEASARC/cfitsio (opens in a new tab)
- github.com/HEASARC/cfitsio/commit/579792e0f85bff0c6733ad5ebdf54c3b5c188686 (opens in a new tab)
- github.com/HEASARC/cfitsio/pull/184 (opens in a new tab)
- vulncheck.com/advisories/cfitsio-through-4.7.0-out-of-bounds-write-via-ffgcls2-in-getcols-c (opens in a new tab)