# CVE-2026-115504: CFITSIO through 4.7.0 Out-of-Bounds Write via ffgcls2 in getcols.c

- Severity: High 8.5 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-22T19:14:04.552Z
- Modified: 2026-10-29T04:18:28.327Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- HEASARC cfitsio: up to 4.7.0

## Every score

- VulnCheck: CVSS:4.0 8.5 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://gist.github.com/yure1432/98f15c7e8f48dc90ae65646f926aa176> (exploit, technical-description)
- <https://github.com/HEASARC/cfitsio/pull/184> (issue-tracking, patch)
- <https://github.com/HEASARC/cfitsio/commit/579792e0f85bff0c6733ad5ebdf54c3b5c188686> (patch)
- <https://github.com/HEASARC/cfitsio> (product)
- <https://www.vulncheck.com/advisories/cfitsio-through-4.7.0-out-of-bounds-write-via-ffgcls2-in-getcols-c> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-115504](https://www.cve.org/CVERecord?id=CVE-2026-115504), CVE Terms of Use, modified 2026-10-29
- NVD: [CVE-2026-115504](https://nvd.nist.gov/vuln/detail/CVE-2026-115504), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-115504 · Whole record: https://cve.day/CVE-2026-115504.json · Rebuilt by cve.day 2026-11-25T22:59:46.838Z
