Vulnerability DatabaseCVE-2026-134042

CVE-2026-134042: 
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2026-134042 is an out-of-bounds write vulnerability in Krita's HEIC file parsing functionality that allows remote attackers to execute arbitrary code. The root cause is Krita's use of a vulnerable version of the libheif library. The vulnerability was reported to the vendor on December 24, 2025, and publicly disclosed on November 18–20, 2026, after the vendor did not release a patch within ZDI's coordinated disclosure window, resulting in a 0-day advisory publication. The affected version is Krita 5.2.15, and the vulnerability carries a CVSS v3 base score of 7.8 (High) (ZDI Advisory, GitHub Advisory).

Technical details

The vulnerability is classified as an out-of-bounds write (CWE not formally assigned in available sources) triggered during the parsing of maliciously crafted HEIC image files. The underlying defect resides in a vulnerable version of the libheif library bundled with Krita, which fails to properly validate memory boundaries when processing HEIC file structures. An attacker exploits this by delivering a specially crafted HEIC file — either directly or via a malicious web page — that, when opened by the victim in Krita, causes an out-of-bounds write condition leading to arbitrary code execution in the context of the Krita process. No privileges are required on the attacker's side, but user interaction (opening the malicious file or visiting a malicious page) is a prerequisite (ZDI Advisory, GitHub Advisory).

Impact

Successful exploitation grants an attacker arbitrary code execution within the context of the Krita process, resulting in high confidentiality, integrity, and availability impact on the affected system. An attacker could read sensitive files accessible to the user running Krita, modify data, or crash the application. Because the attack executes in the user's process context, further lateral movement or privilege escalation would depend on the victim's system permissions and environment (ZDI Advisory, GitHub Advisory).

Exploitability

There is no public proof-of-concept exploit code and no evidence of in-the-wild exploitation as of the disclosure date (Feedly). The vulnerability was tracked internally by ZDI as ZDI-CAN-28656 and was published as a 0-day advisory after the vendor failed to release a patch within the coordinated disclosure timeline. The EPSS score is approximately 0.36%, indicating a low probability of near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported (ZDI Advisory).

Exploitation steps

  1. Craft a malicious HEIC file: Create a specially crafted HEIC image file that exploits the out-of-bounds write condition in the vulnerable version of libheif bundled with Krita 5.2.15. The payload must be structured to corrupt memory in a way that redirects execution flow.
  2. Deliver the payload: Host the malicious HEIC file on an attacker-controlled web page or distribute it via email, messaging, or file-sharing platforms targeting Krita users.
  3. Social engineer the victim: Lure the target into visiting the malicious page or opening the crafted HEIC file using Krita (e.g., by disguising it as a legitimate image or artwork file).
  4. Trigger the vulnerability: When the victim opens the file in Krita, the vulnerable libheif parser processes the malformed HEIC data, triggering an out-of-bounds write in memory.
  5. Achieve code execution: The memory corruption is leveraged to overwrite critical data structures (e.g., function pointers or return addresses), redirecting execution to attacker-controlled shellcode or a ROP chain, resulting in arbitrary code execution in the Krita process context (ZDI Advisory).

Indicators of compromise

  • File System: Unexpected HEIC files in user download directories or temporary folders with unusual file sizes or metadata; new or modified files in user home directories created around the time Krita was used to open an unknown HEIC file.
  • Process: Unusual child processes spawned by the Krita process (e.g., shell interpreters, network utilities such as curl, wget, nc, or python); Krita process exhibiting unexpected network connections.
  • Network: Outbound connections from the Krita process or its child processes to unknown external IP addresses or domains, particularly shortly after opening a HEIC file.
  • Logs: System or application logs showing Krita crashes or abnormal termination (segmentation faults) when opening HEIC files from untrusted sources; audit logs recording file access or execution of unexpected binaries by the user running Krita.

Mitigation and workarounds

A patch is available — users should update Krita to a version that includes a fixed version of libheif (see the GitHub Advisory for details: GitHub Advisory). As an interim workaround, avoid opening HEIC files from untrusted or unknown sources in Krita. If HEIC format support is not required, consider disabling or restricting it within the application. ZDI noted that given the nature of the vulnerability, restricting interaction with the product is the only salient mitigation strategy until a patch is applied (ZDI Advisory).

Community reactions

The vulnerability was disclosed by ZDI as a 0-day advisory after an extended coordinated disclosure period spanning nearly 11 months (reported December 24, 2025; published November 18, 2026), indicating the vendor did not release a patch within the standard disclosure window. The ZDI advisory notes that the vendor acknowledged receipt of the report but did not provide a fix before the public release deadline. Social media activity was observed on Mastodon via TheHackerWire, and the vulnerability was indexed by multiple threat intelligence aggregators shortly after disclosure (ZDI Advisory, GitHub Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Affected

bookworm

krita

Affected

sid

krita

Affected

trixie

krita

Affected

Source: This report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-134170HIGH8.2
  • Linux Debian logoLinux Debian
  • mongoose
NoNoNov 20, 2026
CVE-2026-134043HIGH7.8
  • Linux Debian logoLinux Debian
  • krita
NoNoNov 20, 2026
CVE-2026-134042HIGH7.8
  • Linux Debian logoLinux Debian
  • krita
NoNoNov 20, 2026
CVE-2026-134041HIGH7.8
  • Linux Debian logoLinux Debian
  • krita
NoNoNov 20, 2026
CVE-2026-134171MEDIUM6.9
  • Linux Debian logoLinux Debian
  • mongoose
NoNoNov 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management