GraphicsMagick Heap-Based Buffer Overflow Vulnerability

graphicsmagick Updated 02 Oct 2025

Summary

03/11/2017
N/A
Yes i
Unrated
Not published

DLA-1159-1: graphicsmagick - security update. Affects graphicsmagick versions < 1.3.16-1.1+deb7u13. Fixed in 1.3.16-1.1+deb7u13. 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 an open-source collection of image processing tools. It provides a versatile set of functionalities for creating, editing, and converting images. However, a vulnerability has been discovered in GraphicsMagick that allows for a heap-based buffer overflow.

Vulnerability Detail

The vulnerability, identified as CVE-2017-16352, exists in the Display visual image directory feature of the DescribeImage() function in the magick/describe.c file. By running the identify command on a specially crafted MIFF format file with the verbose flag, an attacker can trigger a heap-based buffer overflow. This can potentially lead to arbitrary code execution or a denial of service attack. Another vulnerability, CVE-2017-16353, involves a memory information disclosure in the DescribeImage function of the magick/describe.c file. This vulnerability allows an attacker to obtain sensitive information from the image's IPTC Profile by exploiting a heap-based buffer over-read.

How To Fix

Minimum fixed version

1.3.16-1.1+deb7u13

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

There are no known workarounds for these vulnerabilities. It is essential to apply the provided fix by upgrading the GraphicsMagick package.

Conclusion

GraphicsMagick is susceptible to a heap-based buffer overflow and a memory information disclosure vulnerability. To mitigate these risks, it is crucial to upgrade the GraphicsMagick package to the recommended version. For further assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for graphicsmagick →

Share this vulnerability

FAQ

GraphicsMagick is an open-source collection of image processing tools that allows for creating, editing, and converting images.

A heap-based buffer overflow occurs when a program writes more data to a buffer in the heap than it can hold, leading to memory corruption and potential security vulnerabilities.

An attacker can exploit these vulnerabilities by crafting a specially designed MIFF format file and running the identify command with the verbose flag.

The heap-based buffer overflow vulnerability can result in arbitrary code execution or denial of service attacks. The memory information disclosure vulnerability allows an attacker to obtain sensitive information from the image's IPTC Profile.

Yes, upgrading the GraphicsMagick package to version 1.3.16-1.1+deb7u13 or later will address these vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for graphicsmagick.

How To Fix

Minimum fixed version

1.3.16-1.1+deb7u13

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