Critical Out‑of‑Bounds Write in Krita Enables Remote Code Execution via Malicious HEIC Files
What Happened — Krita, the open‑source digital‑painting application, was found to contain a remote‑code‑execution (RCE) flaw in its handling of HEIC images. The vulnerability stems from an out‑of‑bounds write in the bundled libheif library. An attacker who convinces a user to open a crafted HEIC file—or to load a malicious web page that triggers automatic file parsing—can execute arbitrary code in the context of the Krita process.
The issue was first reported to the Krita maintainers on 24 December 2025 (ZDI‑CAN‑28656). The vendor acknowledged receipt three days later. Over the following year ZDI sent multiple follow‑up requests for status updates (April 9 2026, June 22 2026). On 3 November 2026 ZDI warned the project that the advisory would be published as a 0‑day, and the coordinated public release occurred on 18 November 2026. The advisory assigns a CVSS v3.1 base score of 7.8 (High) with the vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, indicating that local access is required but user interaction is mandatory.
The advisory does not disclose a CVE number, but the vulnerability is tracked internally as ZDI‑26‑1017. No public exploit code has been released, and there are no reported compromises to date. The vendor’s mitigation guidance is limited to “restrict interaction with the product” – essentially, avoid opening untrusted HEIC files until the library is updated.
Krita’s reliance on libheif illustrates a broader supply‑chain risk: many desktop applications embed third‑party codecs that may lag behind upstream security patches. Because Krita is widely used by graphic designers, illustrators, and media production teams, the potential impact spans both individual creators and enterprises that embed the tool in internal pipelines.
The advisory notes that the vulnerability was disclosed after a coordinated timeline spanning almost a year, highlighting the challenges of timely remediation in open‑source ecosystems where maintainers may have limited resources.
Why It Matters for Trust & Control Assurance — This case underscores the need for continuous monitoring of third‑party component versions and evidence‑driven vulnerability management.
Who Is Affected — Media and entertainment firms, design agencies, freelance creators, and any organization that permits Krita on employee workstations.
Recommended Actions
- Verify that all Krita installations are running the latest version that includes an updated
libheiflibrary. - If updating is not immediately possible, enforce a policy that blocks opening HEIC files from untrusted sources (e.g., via endpoint file‑type controls).
- Integrate open‑source component scanning into your software‑asset inventory to surface similar risks across the organization.
- Document the remediation steps and maintain audit‑ready evidence of patch deployment.
Technical Notes
- Attack Vector: Exploitation requires a malicious HEIC file and user interaction (UI:R).
- CVSS: 7.8 (High) – Local access, low complexity, required user interaction, high impact on confidentiality, integrity, and availability.
- Root Cause: Out‑of‑bounds write in
libheifused by Krita for HEIC parsing. - Mitigation: Update
libheifto a patched version; otherwise, restrict HEIC file handling. - Disclosure Timeline: 2025‑12‑24 (report) → 2025‑12‑27 (ack) → 2026‑04‑09 (follow‑up) → 2026‑06‑22 (follow‑up) → 2026‑11‑03 (0‑day notice) → 2026‑11‑18 (public advisory).
Source: Zero Day Initiative advisory