{"id":"CVE-2026-115504","summary":"CFITSIO through 4.7.0 Out-of-Bounds Write via ffgcls2 in getcols.c","details":"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.","modified":"2026-10-30T02:30:59.429792864Z","published":"2026-10-22T19:14:04.552Z","database_specific":{"cwe_ids":["CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115504.json","cna_assigner":"VulnCheck"},"references":[{"type":"WEB","url":"https://github.com"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115504.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115504"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/cfitsio-through-4.7.0-out-of-bounds-write-via-ffgcls2-in-getcols-c"},{"type":"FIX","url":"https://github.com/HEASARC/cfitsio/commit/579792e0f85bff0c6733ad5ebdf54c3b5c188686"},{"type":"FIX","url":"https://github.com/HEASARC/cfitsio/pull/184"},{"type":"PACKAGE","url":"https://github.com/HEASARC/cfitsio"},{"type":"EVIDENCE","url":"https://gist.github.com/yure1432/98f15c7e8f48dc90ae65646f926aa176"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/heasarc/cfitsio","events":[{"introduced":"0"},{"fixed":"579792e0f85bff0c6733ad5ebdf54c3b5c188686"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"4.7.0"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"579792e0f85bff0c6733ad5ebdf54c3b5c188686"}]}]}}],"versions":["cfitsio-4.7.0","cfitsio-4.6.3","cfitsio-4.6.2","cfitsio-4.6.1","cfitsio-4.6.0","cfitsio-4.4.0","cfitsio-4.3.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-115504.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}