CVE-2025-48796 Gimp: stack-based buffer overflows in file-ico

High 7.3 Published Updated

A stack-based buffer overflow in GIMP's ANI file loader allows attackers to execute arbitrary code via malicious files.

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-48796?

CVE-2025-48796 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. The GIMP ani_load_image() function is vulnerable to a stack-based overflow. If a user opens.ANI files, GIMP may be used to store more information than the capacity allows. This flaw allows a malicious ANI file to trigger arbitrary code execution.

Weakness: CWE-121

Which versions are affected by CVE-2025-48796?

How do I fix CVE-2025-48796?

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-48796 being exploited?

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

Sources

Also known as DEBIAN-CVE-2025-48796, GHSA-c444-p25j-g43x.

Is CVE-2025-48796 in your software?

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

Check your SBOMs for free