CVE-2026-134040 in Kritainfo

Summary

by MITRE • 11/20/2026

Krita HEIC File Parsing Heap-based Buffer 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 issue results from the use of a vulnerable version of libde265. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-28657.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 11/20/2026

Krita, a popular open-source digital painting application, is susceptible to a critical heap-based buffer overflow vulnerability within its HEIC file parsing functionality. This flaw stems from improper bounds checking when processing High Efficiency Image Container (HEIC) files using the underlying libde265 library. The vulnerability allows an attacker to craft a maliciously formatted HEIC image that triggers a write operation beyond the allocated boundaries of a heap-allocated buffer during the decoding process. Because Krita is designed to handle various raster and vector formats, including complex compressed image types like HEIC, it must parse these files extensively before rendering them for display or editing. The specific implementation flaw in the version of libde265 integrated into certain releases of Krita fails to validate the length fields or structural integrity of the HEIC metadata correctly, leading to a heap overflow when parsing malformed input data.

The operational impact of this vulnerability is severe as it enables remote code execution with the privileges of the user running the application. Since image viewing and editing are common tasks for both professional artists and casual users, the attack surface is significant. An attacker can distribute a malicious HEIC file through various vectors such as email attachments, instant messaging platforms, or by hosting the file on a compromised website that prompts the user to open it directly in Krita. The requirement for user interaction means this vulnerability cannot be exploited purely passively; however, social engineering tactics are often sufficient to trick users into opening seemingly legitimate image files. Once triggered, the overflow allows an attacker to overwrite adjacent memory structures, potentially gaining control over program execution flow and executing arbitrary shellcode within the context of the current process.

From a classification perspective, this vulnerability aligns with CWE-122: Heap-based Buffer Overflow, which describes writing data beyond the bounds of a heap-allocated buffer. The exploitation technique falls under MITRE ATT&CK techniques related to code execution via memory corruption, specifically leveraging application vulnerabilities for initial access and privilege escalation if applicable within multi-user environments. Although Krita is primarily an offline tool compared to web browsers or document viewers, the nature of modern file sharing means that malicious files can be easily propagated through shared drives, cloud storage links, or direct transfers between colleagues. The reliance on a third-party library like libde265 introduces supply chain risks where vulnerabilities in underlying dependencies directly affect the security posture of the host application.

Mitigation strategies must focus on both immediate remediation and long-term defensive measures. Users should immediately update Krita to the latest stable release that includes patches for this specific heap overflow issue, ensuring that an updated version of libde265 is utilized. Administrators managing enterprise deployments should verify patch levels across all workstations where image editing software is installed. Additionally, organizations can implement application whitelisting or sandboxing solutions to restrict Krita from executing arbitrary code outside its expected behavior profile, thereby limiting the impact if a successful exploitation attempt occurs. Security awareness training for users regarding the risks of opening files from untrusted sources remains crucial given that user interaction is required for this vulnerability to be triggered. Regular auditing of third-party dependencies and their versions within software packages can help prevent similar issues arising from outdated or vulnerable libraries in the future.

Responsible

Zdi

Reservation

11/20/2026

Disclosure

11/20/2026

Moderation

accepted

CPE

ready

EPSS

0.00357

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!