CVE-2025-48797 Gimp: multiple heap buffer overflows in tga parser

High 7.3 Published Updated

Attackers can cause crashes or execute code by tricking users into opening specially crafted TGA image files in GIMP.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-48797?

CVE-2025-48797 is a high-severity memory corruption vulnerability in Red Hat Enterprise Linux 6, published on 27 May 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A flaw was found in GIMP when processing certain TGA image files. If a user opens one of these image files that has been specially crafted by an attacker, GIMP can be tricked into making serious memory errors, potentially leading to crashes and causing a heap buffer overflow.

Weakness: CWE-122

Which versions are affected by CVE-2025-48797?

How do I fix CVE-2025-48797?

Apply the vendor's patch.

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

Is CVE-2025-48797 being exploited?

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

Sources

Also known as CLSA-2025-1758744098, DEBIAN-CVE-2025-48797, GHSA-hrhw-58x6-vqj7.

Is CVE-2025-48797 in your software?

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

Check your SBOMs for free