A flaw was found in the file-fits plugin in GIMP. When processing a FITS image file, the plugin calculates memory allocation sizes using signed 32-bit integers for width and height. If a crafted file sets both values to large values, their product exceeds 2^31 and overflows, resulting in an undersized heap-based buffer allocation. This integer overflow issue results in a heap-based buffer overflow when cfitsio subsequently writes a full row of pixels in the buffer, causing memory corruption, potentially leading to arbitrary code execution or a denial of service.
{
"cwe_ids": [
"CWE-190"
],
"cna_assigner": "redhat",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66758.json"
}{
"source": "CPE_STRING",
"cpe": [
"cpe:2.3:a:gimp:gimp:3.0.8:*:*:*:*:*:*:*",
"cpe:2.3:a:gimp:gimp:3.2.4:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "3.0.8"
},
{
"last_affected": "3.0.8"
},
{
"introduced": "3.2.4"
},
{
"last_affected": "3.2.4"
}
]
}{
"source": "CPE_STRING",
"cpe": [
"cpe:2.3:a:gimp:gimp:3.0.8:*:*:*:*:*:*:*",
"cpe:2.3:a:gimp:gimp:3.2.4:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "3.0.8"
},
{
"last_affected": "3.0.8"
},
{
"introduced": "3.2.4"
},
{
"last_affected": "3.2.4"
}
]
}