CVE-2025-27796 Memory corruption in GraphicsMagick
Attackers can trigger out-of-bounds heap memory access via crafted WPG images, potentially leading to code execution or crashes.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-27796?
CVE-2025-27796 is a medium-severity memory corruption vulnerability in Graphicsmagick Graphicsmagick, published on 7 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
ReadWPGImage in WPG in GraphicsMagick before 1.3.46 mishandles palette buffer allocation, resulting in out-of-bounds access to heap memory in ReadBlob.
Weakness: CWE-908
Which versions are affected by CVE-2025-27796?
It affects 1 product.
Products include Graphicsmagick Graphicsmagick.
How do I fix CVE-2025-27796?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-27796 being exploited?
There is no known exploitation of CVE-2025-27796 in the wild and no public exploit code.
Other vulnerabilities in Graphicsmagick Graphicsmagick
Sources
Also known as DEBIAN-CVE-2025-27796, GHSA-v5xf-gj23-85jx, JLSEC-2026-494, ROOT-OS-ALPINE-322-CVE-2025-27796.