CVE-2025-48798 Gimp: multiple use after free in xcf parser
Attackers can cause crashes or potentially execute code by tricking users into opening specially crafted XCF 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-48798?
CVE-2025-48798 is a high-severity use after free 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 XCF 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 use-after-free issues.
Weakness: CWE-416
Which versions are affected by CVE-2025-48798?
How do I fix CVE-2025-48798?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2025-48798 being exploited?
There is no known exploitation of CVE-2025-48798 in the wild and no public exploit code.
Sources
Also known as CLSA-2025-1758825546, DEBIAN-CVE-2025-48798, GHSA-7p2h-v67m-x5qx.