A heap-based buffer overflow vulnerability exists in Krita's HEIC file parsing due to a vulnerable version of libde265. This flaw allows remote attackers to execute arbitrary code if a user opens a crafted malicious file or visits a malicious page. Exploitation requires user interaction. The vulnerability is tracked as CVE-2026-134040 and has a high severity score.