KDE Krita Heap-Based Buffer Overflow Vulnerability in TGA File Importer

Vulnerability

A heap-based buffer overflow vulnerability has been identified in KDE Krita versions prior to 5.2.13. The issue arises in the TGA file importer, specifically within the 'plugins/impex/tga/kis_tga_import.cpp' file. When a manipulated TGA file is loaded, the importer fails to properly handle certain pixel data, allowing for a buffer overflow in the application's memory.

Impact

Exploiting this vulnerability can lead to a heap-based buffer overflow, which may cause the application to crash or, in some cases, allow for arbitrary code execution.

Reproduction

The vulnerability can be reproduced by opening a specially crafted TGA file in Krita versions prior to 5.2.13. The TGA file must be manipulated to include pixel data that the importer will incorrectly process, causing the buffer overflow.

Remediation

Users are advised to update Krita to version 5.2.13 or later. Instructions for downloading the latest version can be found on the official Krita website.

Added: Nov 26, 2025, 6:18 AM
Updated: Nov 26, 2025, 6:18 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
5.4
remediation
7.7
relevance
1.2
threat
4.8
urgency
2.9
incentive
0.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.