Cloudanix VulnDB

CVE-2025-27796

None

CVSS

—

EPSS

0.4%

Published

Mar 7, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in image handling software can let attackers crash programs or potentially take control of systems by supplying a specially crafted image file.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Moderate
Impact
Data Exposure
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Out-of-bounds heap memory access caused by incorrect palette buffer allocation during WPG image parsing in ReadWPGImage.

Why it matters to the business

Applications processing untrusted images may crash or allow arbitrary code execution, increasing risk of service outages or system compromise; the issue affects widely used compiler toolchains on RHEL 8 with moderate downstream prevalence.

How an attack unfolds

An attacker crafts a malicious WPG image file that triggers improper buffer sizing in palette handling, causing ReadBlob to read or write beyond allocated heap memory when the image is opened by any application using the vulnerable GraphicsMagick library.

How to fix it

Update affected RHEL 8 packages to the listed fixed versions including clang 0:12.0.1-4.module+el8.5.0+13246+cefb5d4c and related compiler-rt/libomp/lld packages at their respective fixed builds; rebuild or recompile any dependent applications after upgrade.

How to confirm the fix worked

Verify package versions match or exceed the stated fixed builds using rpm or dnf; test image parsing with known-good and boundary WPG samples to confirm no crashes or abnormal memory behavior.

Typical attack path

  1. Attacker prepares a specially malformed WPG image file
  2. Victim application or service opens or processes the image using affected GraphicsMagick code
  3. ReadWPGImage mishandles palette buffer allocation leading to out-of-bounds access
  4. Memory corruption occurs enabling potential crash or code execution

How to detect it

Review application logs and crash reports for segmentation faults or heap errors when processing WPG files; monitor for unexpected process terminations involving image conversion or viewing tools.

What your security team should do

  • Prioritize patching all listed RHEL 8 clang and related packages within standard change windows given the 582-day publication age and stable low EPSS
  • Scan container and build images for the vulnerable package versions
  • Add WPG image handling to allowed file type policies where feasible until patches are applied

The record

ReadWPGImage in WPG in GraphicsMagick before 1.3.46 mishandles palette buffer allocation, resulting in out-of-bounds access to heap memory in ReadBlob.

Affected packages

Ecosystem Package Introduced Fixed
Chainguard graphicsmagick 0 1.3.46-r0
Chainguard graphicsmagick-compat 0 1.3.46-r0
Chainguard graphicsmagick-cpp 0 1.3.46-r0
Chainguard graphicsmagick-dev 0 1.3.46-r0
Chainguard graphicsmagick-doc 0 1.3.46-r0
Debian:11 graphicsmagick 0 No fix
Debian:12 graphicsmagick 0 No fix
Debian:13 graphicsmagick 0 No fix
Ubuntu:24.10 graphicsmagick 0 1.4+really1.3.45-1ubuntu0.1
Wolfi graphicsmagick 0 1.3.46-r0
Wolfi graphicsmagick-compat 0 1.3.46-r0
Wolfi graphicsmagick-cpp 0 1.3.46-r0
Wolfi graphicsmagick-dev 0 1.3.46-r0
Wolfi graphicsmagick-doc 0 1.3.46-r0
openSUSE:Tumbleweed GraphicsMagick 0 1.3.45-2.1

Related vulnerabilities