CVE-2025-59820 Memory corruption in Krita

Medium 6.7 Published Updated

Loading a manipulated TGA file in KDE Krita causes a heap-based buffer overflow, potentially allowing code execution or denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-59820?

CVE-2025-59820 is a medium-severity memory corruption vulnerability in KDE Krita, published on 26 Nov 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In KDE Krita before 5.2.13, loading a manipulated TGA file could result in a heap-based buffer overflow in plugins/impex/tga/kis_tga_import.cpp (aka KisTgaImport). Control flow proceeds even when a number of pixels becomes negative.

Weakness: CWE-1284

Which versions are affected by CVE-2025-59820?

Linux distribution packages (1)
krita openSUSE:TumbleweedAll versions5.2.13-1.1

How do I fix CVE-2025-59820?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-59820 being exploited?

There is no known exploitation of CVE-2025-59820 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2025-59820, DLA-4395-1, DSA-6065-1, GHSA-r8j3-whr2-75m5, UBUNTU-CVE-2025-59820, openSUSE-SU-2025:15577-1.

Is CVE-2025-59820 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free