ZDI-26-1018: (0Day) Krita TIF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability
Summary
A remote code execution vulnerability (ZDI-26-1018) has been identified in Krita. The issue stems from a heap-based buffer overflow during the parsing of TIF files. An attacker can leverage this vulnerability to execute arbitrary code in the context of the current process, provided user interaction is enticed (e.g., opening a malicious file or visiting a malicious webpage).
- ZDI ID: ZDI-26-1018
- CVE ID: -
- CVSS Score: 7.8 (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
Affected Products
- Affected Vendor: Krita
- Affected Product: Krita
Technical Details
The specific flaw exists within the parsing of TIF 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. Exploitation requires user interaction: the target user must visit a malicious page or open a specially crafted malicious file. Successful exploitation allows an attacker to execute code in the context of the current process.
Impact
- Remote Code Execution (RCE): High impact on confidentiality, integrity, and availability. Attackers can execute arbitrary code within the execution context of the logged-in user running Krita.
Mitigation
Given the zero-day status of the vulnerability, the primary mitigation strategy is:
- Restrict interaction with the product and avoid opening untrusted TIF files.
References
- Credit: Francis Provencher {PRL}
- Disclosure Timeline:
- 2025-12-04 - Vulnerability reported to vendor
- 2025-12-10 - Vendor acknowledged receipt of report
- 2026-06-22 - ZDI asked for updates
- 2026-11-03 - ZDI notified vendor of intention to publish as 0-day advisory
- 2026-11-18 - Coordinated public release of advisory
Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.