Heap-Based Buffer Over-Read Vulnerability in GraphicsMagick

graphicsmagick Updated 02 Oct 2025

Summary

09/04/2025
N/A
Yes i
Unrated
Not published

CVE-2025-32460: GraphicsMagick before 8e56520 has a heap-based buffer over-read in ReadJXLImage in coders/jxl.c, related to an ImportViewPixelArea call. Affects graphicsmagick versions < 1.4+really1.3.40-4+deb12u1. Fixed in 1.4+really1.3.40-4+deb12u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

GraphicsMagick is a robust open-source software suite for image processing, widely used for its efficiency and versatility in handling various image formats. It provides tools for reading, writing, and manipulating images, making it a popular choice among developers and graphic designers. However, like many software packages, it is not immune to vulnerabilities that can compromise its functionality and security.

Vulnerability Detail

The vulnerability identified as CVE-2025-32460 is a heap-based buffer over-read occurring in the ReadJXLImage function within the coders/jxl.c file of GraphicsMagick. This issue arises from an improper handling of memory during an ImportViewPixelArea call, which can lead to potential information leakage or application crashes. Attackers exploiting this vulnerability could manipulate image files to trigger the over-read, potentially exposing sensitive data or causing instability in applications relying on GraphicsMagick.

How To Fix

Minimum fixed version

1.4+really1.3.40-4+deb12u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade graphicsmagick

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can avoid processing untrusted or potentially malicious image files until the package is updated. Additionally, consider implementing strict input validation and sanitization to minimize the risk of exploitation.

Conclusion

The CVE-2025-32460 vulnerability in GraphicsMagick poses significant risks due to its potential for heap-based buffer over-reads. Users are strongly advised to update to the latest version of the software to protect against exploitation. For those unable to update immediately, implementing workarounds can help mitigate risks until a patch is applied.

See every vulnerability recorded for graphicsmagick →

Share this vulnerability

FAQ

CVE-2025-32460 is a vulnerability in GraphicsMagick that allows for a heap-based buffer over-read, potentially leading to information leakage or application crashes.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The risks include potential exposure of sensitive data and application instability, which could lead to denial of service or other security breaches.

Yes, a patched version of GraphicsMagick is available. Users should update to the latest version to mitigate the vulnerability.

If immediate updating is not possible, avoid processing untrusted image files and implement strict input validation to reduce the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for graphicsmagick.

How To Fix

Minimum fixed version

1.4+really1.3.40-4+deb12u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade graphicsmagick

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback