Improper Validation of Specified Quantity in Input Affecting KDE/krita package, versions [,5.2.13)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-KDEKRITA-14123107
  • published26 Nov 2025
  • disclosed26 Nov 2025
  • creditTrend Micro

Introduced: 26 Nov 2025

NewCVE-2025-59820  (opens in a new tab)
CWE-1284  (opens in a new tab)

How to fix?

Upgrade KDE/krita to version 5.2.13 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input via the loadTGA function of KisTgaImport. An attacker can cause unintended program behavior by supplying a specially crafted TGA file that causes a negative pixel count, leading to a heap-based buffer overflow during image import.

Workaround

Avoid opening TGA files from unknown sources in Krita until the fix is applied.

CVSS Base Scores

version 4.0
version 3.1