CVE-2026-134041 in Krita
Summary
by MITRE • 11/20/2026
Krita EXR File Parsing Integer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Krita. 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 EXR files. The issue results from the lack of proper validation of user-supplied data, which can result in an integer overflow before writing to memory. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-28752.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/20/2026
The vulnerability identified as CVE-2016-9344, previously tracked under Zero Day Initiative identifier ZDI-CAN-28752, represents a critical security flaw within the Krita image editing software. This issue specifically targets the application's handling of OpenEXR files, which are commonly used in professional visual effects and animation workflows due to their support for high dynamic range imaging. The core technical deficiency lies in the parsing logic responsible for processing metadata or pixel data structures within these EXR containers. During this process, the software fails to adequately validate user-supplied input values before performing arithmetic operations that determine memory allocation sizes or buffer offsets. This lack of rigorous boundary checking allows an attacker to supply crafted numerical inputs that exceed the maximum limit representable by the integer variable used in the calculation.
When such a malformed value is processed, it triggers an integer overflow condition during the internal computation phase. Instead of allocating sufficient memory for the expected data structure or correctly calculating buffer boundaries, the arithmetic wrap-around results in a significantly smaller allocated size than required for the actual payload. Subsequently, when the application attempts to write the incoming EXR file data into this undersized memory region, it overwrites adjacent memory locations on the heap. This out-of-bounds write operation corrupts critical program state and control flow mechanisms within the process address space. Because Krita operates with the privileges of the currently logged-in user, successful exploitation grants an attacker full code execution capabilities within that security context without requiring elevated system rights or administrative access.
The operational impact of this vulnerability is severe due to its potential for remote code execution. Although the prompt notes that user interaction is required, such as opening a malicious file via the application's interface or visiting a compromised webpage hosting a specially crafted EXR asset in an embedded viewer, the resulting compromise is total within the scope of the victim's account. An adversary can leverage this memory corruption to inject and execute arbitrary shellcode, potentially leading to data exfiltration, installation of persistent malware, lateral movement across internal networks if connected resources are accessible, or complete system takeover depending on the software environment and installed patches. The requirement for user interaction does not mitigate the severity but rather defines the attack vector as a targeted social engineering scenario or drive-by download attempt where the victim is tricked into opening a deceptive file.
From a classification perspective, this vulnerability aligns with CWE-190 Integer Overflow or Wraparound, which describes errors resulting from arithmetic operations that exceed the capacity of the data type used to store the result. Furthermore, it maps directly to ATT&CK technique T1203 Exploitation for Client Execution, as the attacker relies on tricking a user into executing malicious code through a legitimate application. The root cause is fundamentally CWE-20 Improper Input Validation, where the software does not sufficiently verify that input data conforms to expected formats and ranges before processing. This oversight allows malformed EXR files containing crafted integer values to bypass internal checks and trigger the overflow condition during memory management operations.
Mitigation strategies must address both immediate remediation and long-term defensive posture improvements. The primary defense is applying vendor-provided patches or updates that correct the parsing logic in Krita, ensuring that all arithmetic operations involving file metadata are performed using safe integer libraries or include explicit bounds checking before allocation. Security teams should enforce strict application whitelisting policies to prevent unauthorized versions of image editing software from running on critical workstations. Additionally, implementing network-level controls such as deep packet inspection can help detect and block the transfer of suspiciously large or malformed EXR files if they are being distributed via email or web servers. Users must be educated on the risks associated with opening untrusted media files, particularly those originating from unknown sources, to reduce the likelihood of successful social engineering attacks that exploit this specific memory corruption flaw.