Every CVE Search/ Get API key

CVE-2016-7996

Heap-based buffer overflow in the WPG format reader in GraphicsMagick 1.3.25 and earlier allows...

9.8 CriticalFix available

Heap-based buffer overflow in the WPG format reader in GraphicsMagick 1.3.25 and earlier allows remote attackers to have unspecified impact via a colormap with a large number of entries.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

3.91%Up 2.7 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 9.8

Heap-based buffer overflow in the WPG format reader in GraphicsMagick 1.3.25 and earlier allows remote attackers to have unspecified impact via a colormap with a large number of entries.

Record
CVE-2016-7996
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-119
Updated
2026-11-02
CVE List No score

Heap-based buffer overflow in the WPG format reader in GraphicsMagick 1.3.25 and earlier allows remote attackers to have unspecified impact via a colormap with a large number of entries.

Record
CVE-2016-7996
Updated
2026-11-02
EUVDEUVD-2016-8844 No score

Heap-based buffer overflow in the WPG format reader in GraphicsMagick 1.3.25 and earlier allows remote attackers to have unspecified impact via a colormap with a large number of entries.

Record
EUVD-2016-8844
Updated
2026-11-03
GitHub AdvisoriesGHSA-vphw-m7v9-5929 9.8

Heap-based buffer overflow in the WPG format reader in GraphicsMagick 1.3.25 and earlier allows...

Heap-based buffer overflow in the WPG format reader in GraphicsMagick 1.3.25 and earlier allows remote attackers to have unspecified impact via a colormap with a large number of entries.

Record
GHSA-vphw-m7v9-5929
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-119
Updated
2026-11-02
OSV 9.8

Heap-based buffer overflow in the WPG format reader in GraphicsMagick 1.3.25 and earlier allows remote attackers to have unspecified impact via a colormap with a large number of entries.

Record
CVE-2016-7996
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2016-7996 9.8

Heap-based buffer overflow in the WPG format reader in GraphicsMagick 1.3.25 and earlier allows remote attackers to have unspecified impact via a colormap with a large number of entries.

Record
DEBIAN-CVE-2016-7996
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 8 moreShow less
OSVUBUNTU-CVE-2016-7996 9.8

Heap-based buffer overflow in the WPG format reader in GraphicsMagick 1.3.25 and earlier allows remote attackers to have unspecified impact via a colormap with a large number of entries.

Record
UBUNTU-CVE-2016-7996
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2016-0337 No score

The updated packages fix a security vulnerability

Unsigned underflow leading to heap overflow when parsing 8BIM chunk (CVE-2016-7800). Two issues in the WPG reader (CVE-2016-7996, CVE-2016-7997).

Record
MGASA-2016-0337
Updated
2026-11-02
OSVMGASA-2017-0229 No score

Updated graphicsmagick packages fix security vulnerabilities

New stable upstream release including security fixes for CVE-2016-7800, CVE-2016-7996, CVE-2016-7997, CVE-2016-8682, CVE-2016-8683, CVE-2016-8684, CVE-2016-9830, CVE-2017-6335, CVE-2017-8350, CVE-2017-10794, CVE-2017-10799, CVE-2017-10800, CVE-2017-11403 and possibly several other security issues with and without associated CVE number.

Record
MGASA-2017-0229
Updated
2026-11-02
OSVopenSUSE-SU-2024:10596-1 No score

GraphicsMagick-1.3.36-1.7 on GA media

These are all security issues fixed in the GraphicsMagick-1.3.36-1.7 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10596-1
Updated
2026-11-02
OSVSUSE-SU-2016:2667-1 No score

Security update for ImageMagick

This update for ImageMagick fixes the following issues:

These vulnerabilities could be triggered by processing specially crafted image files, which could lead to a process crash or resource consumtion, or potentially have unspecified futher impact.

  • CVE-2016-8684: Mismatch between real filesize and header values (bsc#1005123)
  • CVE-2016-8683: Check that filesize is reasonable compared to the header value (bsc#1005127)
  • CVE-2016-8682: Stack-buffer read overflow while reading SCT header (bsc#1005125)
  • CVE-2016-8677: Memory allocation failure in AcquireQuantumPixels (bsc#1005328)
  • CVE-2016-7996, CVE-2016-7997: WPG Reader Issues (bsc#1003629)
  • CVE-2016-7800: 8BIM/8BIMW unsigned underflow leads to heap overflow (bsc#1002422)
  • CVE-2016-7799: mogrify global buffer overflow (bsc#1002421)
  • CVE-2016-7540: writing to RGF format aborts (bsc#1000394)
  • CVE-2016-7539: Potential DOS by not releasing memory (bsc#1000715)
  • CVE-2016-7538: SIGABRT for corrupted pdb file (bsc#1000712)
  • CVE-2016-7537: Out of bound access for corrupted pdb file (bsc#1000711)
  • CVE-2016-7535: Out of bound access for corrupted psd file (bsc#1000709)
  • CVE-2016-7534: Out of bound access in generic decoder (bsc#1000708)
  • CVE-2016-7533: Wpg file out of bound for corrupted file (bsc#1000707)
  • CVE-2016-7532: fix handling of corrupted psd file (bsc#1000706)
  • CVE-2016-7531: Pbd file out of bound access (bsc#1000704)
  • CVE-2016-7530: Out of bound in quantum handling (bsc#1000703)
  • CVE-2016-7529: Out-of-bound in quantum handling (bsc#1000399)
  • CVE-2016-7528: Out-of-bound access in xcf file coder (bsc#1000434)
  • CVE-2016-7527: Out-of-bound access in wpg file coder: (bsc#1000436)
  • CVE-2016-7526: out-of-bounds write in ./MagickCore/pixel-accessor.h (bsc#1000702)
  • CVE-2016-7525: Heap buffer overflow in psd file coder (bsc#1000701)
  • CVE-2016-7524: AddressSanitizer:heap-buffer-overflow READ of size 1 in meta.c:465 (bsc#1000700)
  • CVE-2016-7523: AddressSanitizer:heap-buffer-overflow READ of size 1 meta.c:496 (bsc#1000699)
  • CVE-2016-7522: Out of bound access for malformed psd file (bsc#1000698)
  • CVE-2016-7521: Heap buffer overflow in psd file handling (bsc#1000697)
  • CVE-2016-7520: Heap overflow in hdr file handling (bsc#1000696)
  • CVE-2016-7519: Out-of-bounds read in coders/rle.c (bsc#1000695)
  • CVE-2016-7518: Out-of-bounds read in coders/sun.c (bsc#1000694)
  • CVE-2016-7517: Out-of-bounds read in coders/pict.c (bsc#1000693)
  • CVE-2016-7516: Out-of-bounds problem in rle, pict, viff and sun files (bsc#1000692)
  • CVE-2016-7515: Rle file handling for corrupted file (bsc#1000689)
  • CVE-2016-7514: Out-of-bounds read in coders/psd.c (bsc#1000688)
  • CVE-2016-7513: Off-by-one error leading to segfault (bsc#1000686)
  • CVE-2016-7101: raphicsMagick: SGI Coder Out-Of-Bounds Read Vulnerability (bsc#1001221)
  • CVE-2016-6823: raphicsMagick: BMP Coder Out-Of-Bounds Write Vulnerability (bsc#1001066)
  • CVE-2015-8959: dOS due to corrupted DDS files (bsc#1000713)
  • CVE-2015-8958: Potential DOS in sun file handling due to malformed files (bsc#1000691)
  • CVE-2015-8957: Buffer overflow in sun file handling (bsc#1000690)
  • CVE-2014-9907: DOS due to corrupted DDS files (bsc#1000714)
  • Buffer overflows in SIXEL, PDB, MAP, and TIFF coders (bsc#1002209)
  • Divide by zero in WriteTIFFImage (bsc#1002206)
Record
SUSE-SU-2016:2667-1
Updated
2026-11-02
OSVSUSE-SU-2016:2724-1 No score

Security update for GraphicsMagick

This update for GraphicsMagick fixes the following issues:

These vulnerabilities could be triggered by processing specially crafted image files, which could lead to a process crash or resource consumtion, or potentially have unspecified futher impact.

  • CVE-2016-8684: Mismatch between real filesize and header values (bsc#1005123)
  • CVE-2016-8683: Check that filesize is reasonable compared to the header value (bsc#1005127)
  • CVE-2016-8682: Stack-buffer read overflow while reading SCT header (bsc#1005125)
  • CVE-2016-7996, CVE-2016-7997: WPG Reader Issues (bsc#1003629)
  • CVE-2016-7800: 8BIM/8BIMW unsigned underflow leads to heap overflow (bsc#1002422)
  • CVE-2016-7537: Out of bound access for corrupted pdb file (bsc#1000711)
  • CVE-2016-7533: Wpg file out of bound for corrupted file (bsc#1000707)
  • CVE-2016-7531: Pbd file out of bound access (bsc#1000704)
  • CVE-2016-7529: Out-of-bound in quantum handling (bsc#1000399)
  • CVE-2016-7528: Out-of-bound access in xcf file coder (bsc#1000434)
  • CVE-2016-7527: Out-of-bound access in wpg file coder: (bsc#1000436)
  • CVE-2016-7524: AddressSanitizer:heap-buffer-overflow READ of size 1 in meta.c:465 (bsc#1000700)
  • CVE-2016-7522: Out of bound access for malformed psd file (bsc#1000698)
  • CVE-2016-7519: Out-of-bounds read in coders/rle.c (bsc#1000695)
  • CVE-2016-7517: Out-of-bounds read in coders/pict.c (bsc#1000693)
  • CVE-2016-7516: Out-of-bounds problem in rle, pict, viff and sun files (bsc#1000692)
  • CVE-2016-7515: Rle file handling for corrupted file (bsc#1000689)
  • CVE-2016-7446 CVE-2016-7447 CVE-2016-7448 CVE-2016-7449: various issues fixed in 1.3.25 (bsc#999673)
  • CVE-2016-7101: SGI Coder Out-Of-Bounds Read Vulnerability (bsc#1001221)
  • CVE-2016-6823: BMP Coder Out-Of-Bounds Write Vulnerability (bsc#1001066)
  • CVE-2015-8958: Potential DOS in sun file handling due to malformed files (bsc#1000691)
  • CVE-2015-8957: Buffer overflow in sun file handling (bsc#1000690)
  • Divide by zero in WriteTIFFImage (bsc#1002206)
  • Buffer overflows in SIXEL, PDB, MAP, and TIFF coders (bsc#1002209)
Record
SUSE-SU-2016:2724-1
Updated
2026-11-02
OSVSUSE-SU-2016:2964-1 No score

Security update for ImageMagick

This update for ImageMagick fixes the following issues:

These vulnerabilities could be triggered by processing specially crafted image files, which could lead to a process crash or resource consumtion, or potentially have unspecified futher impact.

  • CVE-2016-8862: Memory allocation failure in AcquireMagickMemory (bsc#1007245)
  • CVE-2014-9907: DOS due to corrupted DDS files (bsc#1000714)
  • CVE-2015-8959: DOS due to corrupted DDS files (bsc#1000713)
  • CVE-2016-7537: Out of bound access for corrupted pdb file (bsc#1000711)
  • CVE-2016-6823: BMP Coder Out-Of-Bounds Write Vulnerability (bsc#1001066)
  • CVE-2016-7514: Out-of-bounds read in coders/psd.c (bsc#1000688)
  • CVE-2016-7515: Rle file handling for corrupted file (bsc#1000689)
  • CVE-2016-7529: out of bound in quantum handling (bsc#1000399)
  • CVE-2016-7101: SGI Coder Out-Of-Bounds Read Vulnerability (bsc#1001221)
  • CVE-2016-7527: out of bound access in wpg file coder: (bsc#1000436)
  • CVE-2016-7996, CVE-2016-7997: WPG Reader Issues (bsc#1003629)
  • CVE-2016-7528: out of bound access in xcf file coder (bsc#1000434)
  • CVE-2016-8683: Check that filesize is reasonable compared to the header value (bsc#1005127)
  • CVE-2016-8682: Stack-buffer read overflow while reading SCT header (bsc#1005125)
  • CVE-2016-8684: Mismatch between real filesize and header values (bsc#1005123)
  • Buffer overflows in SIXEL, PDB, MAP, and TIFF coders (bsc#1002209)
  • CVE-2016-7525: Heap buffer overflow in psd file coder (bsc#1000701)
  • CVE-2016-7524: AddressSanitizer:heap-buffer-overflow READ of size 1 in meta.c:465 (bsc#1000700)
  • CVE-2016-7530: Out of bound in quantum handling (bsc#1000703)
  • CVE-2016-7531: Pbd file out of bound access (bsc#1000704)
  • CVE-2016-7533: Wpg file out of bound for corrupted file (bsc#1000707)
  • CVE-2016-7535: Out of bound access for corrupted psd file (bsc#1000709)
  • CVE-2016-7522: Out of bound access for malformed psd file (bsc#1000698)
  • CVE-2016-7517: out-of-bounds read in coders/pict.c (bsc#1000693)
  • CVE-2016-7516: Out of bounds problem in rle, pict, viff and sun files (bsc#1000692)
  • CVE-2015-8958: Potential DOS in sun file handling due to malformed files (bsc#1000691)
  • CVE-2015-8957: Buffer overflow in sun file handling (bsc#1000690)
  • CVE-2016-7519: out-of-bounds read in coders/rle.c (bsc#1000695)
  • CVE-2016-7518: out-of-bounds read in coders/sun.c (bsc#1000694)
  • CVE-2016-7800: 8BIM/8BIMW unsigned underflow leads to heap overflow (bsc#1002422)
  • CVE-2016-7523: AddressSanitizer:heap-buffer-overflow READ of size 1 meta.c:496 (bsc#1000699)
  • CVE-2016-7799: mogrify global buffer overflow (bsc#1002421)
Record
SUSE-SU-2016:2964-1
Updated
2026-11-02
OSVSUSE-SU-2017:3435-1 No score

Security update for GraphicsMagick

This update for GraphicsMagick fixes the following issues:

  • CVE-2017-11640: NULL pointer deref in WritePTIFImage() in coders/tiff.c could lead to denial of service [bsc#1050632]
  • CVE-2017-14342: Memory exhaustion in ReadWPGImage in coders/wpg.c could lead to denial of service [bsc#1058485]
  • CVE-2017-14341: Infinite loop in the ReadWPGImage function could lead to denial of service [bsc#1058637]
  • CVE-2017-16546: Issue in ReadWPGImage function in coders/wpg.c could lead to denial of service [bsc#1067181]
  • CVE-2017-16545: The ReadWPGImage function in coders/wpg.c in validation problems could lead to denial of service [bsc#1067184]
  • CVE-2017-16669: coders/wpg.c allows remote attackers to cause a denial of service via crafted file [bsc#1067409]
  • CVE-2017-13776: denial of service issue in ReadXBMImage() in a coders/xbm.c [bsc#1056429]
  • CVE-2017-13777: denial of service issue in ReadXBMImage() in a coders/xbm.c [bsc#1056426]
  • CVE-2017-13134: heap-based buffer over-read in the function SFWScan in coders/sfw.c could lead to denial of service via a crafted file [bsc#1055214]
  • CVE-2017-15930: Null Pointer dereference while transfering JPEG scanlines could lead to denial of service [bsc#1066003]
  • CVE-2017-12983: Heap-based buffer overflow in the ReadSFWImage function in coders/sfw.c allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted file. [bsc#1054757]
  • CVE-2017-14165: The ReadSUNImage function in coders/sun.c has an issue where memory allocation is excessive because it depends only on a length field in a header. This may lead to remote denial of service in the MagickMalloc function in magick/memory.c. [bsc#1057508]
  • CVE-2017-12587: Large loop vulnerability in the ReadPWPImage function in coders\pwp.c. [bsc#1052450]
Record
SUSE-SU-2017:3435-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
graphicsmagick
Debian:12
before 1.3.21-2
1.3.21-2
graphicsmagick
Debian:13
before 1.3.21-2
1.3.21-2
graphicsmagick
Debian:14
before 1.3.21-2
1.3.21-2
graphicsmagick
Debian:7
before 1.3.16-1.1+deb7u5, plus listed versions
1.3.16-1.11.3.16-1.1+deb7u11.3.16-1.1+deb7u21.3.16-1.1+deb7u31.3.16-1.1+deb7u4
1.3.16-1.1+deb7u5
graphicsmagick
Debian:8
before 1.3.20-3+deb8u2, plus listed versions
1.3.20-3+deb8u1
1.3.20-3+deb8u2
graphicsmagick
Mageia:5
before 1.3.25-1.2.mga5
1.3.25-1.2.mga5
graphicsmagick
Mageia:5
before 1.3.26-1.1.mga5
1.3.26-1.1.mga5
graphicsmagick
Mageia:6
before 1.3.26-1.1.mga6
1.3.26-1.1.mga6
ImageMagick
SUSE:Linux Enterprise Desktop 12 SP1
before 6.8.8.1-40.1
6.8.8.1-40.1
ImageMagick
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 6.8.8.1-40.1
6.8.8.1-40.1
Show 13 moreShow less
Affected packages
PackageAffectedFixed
ImageMagick
SUSE:Linux Enterprise Server 12 SP1
before 6.8.8.1-40.1
6.8.8.1-40.1
ImageMagick
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 6.8.8.1-40.1
6.8.8.1-40.1
ImageMagick
SUSE:Linux Enterprise Workstation Extension 12 SP1
before 6.8.8.1-40.1
6.8.8.1-40.1
GraphicsMagick
SUSE:Linux Enterprise Software Development Kit 11 SP4
before 1.2.5-4.46.1
1.2.5-4.46.1
GraphicsMagick
SUSE:Studio Onsite 1.3
before 1.2.5-4.46.1
1.2.5-4.46.1
ImageMagick
SUSE:Linux Enterprise Software Development Kit 11 SP4
before 6.4.3.6-7.54.1
6.4.3.6-7.54.1
ImageMagick
SUSE:Linux Enterprise Server 11 SP4
before 6.4.3.6-7.54.1
6.4.3.6-7.54.1
ImageMagick
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
before 6.4.3.6-7.54.1
6.4.3.6-7.54.1
GraphicsMagick
SUSE:Linux Enterprise Software Development Kit 11 SP4
before 1.2.5-4.78.19.1
1.2.5-4.78.19.1
GraphicsMagick
SUSE:Studio Onsite 1.3
before 1.2.5-4.78.19.1
1.2.5-4.78.19.1
graphicsmagick
Ubuntu:14.04:LTS
before 1.3.18-1ubuntu3.1, plus listed versions
1.3.16-1.1ubuntu21.3.16-1.1ubuntu31.3.18-1ubuntu3
1.3.18-1ubuntu3.1
graphicsmagick
Ubuntu:16.04:LTS
before 1.3.23-1ubuntu0.1, plus listed versions
1.3.21-31.3.23-11.3.23-1build1
1.3.23-1ubuntu0.1
GraphicsMagick
openSUSE:Tumbleweed
before 1.3.36-1.7
1.3.36-1.7

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2016-7996 is a critical vulnerability (CVSS 9.8) in Graphicsmagick, published October 8, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.91%, the 90th percentile. Fixed in graphicsmagick 1.3.21-2.

References

Show 145 moreShow less
MoveEnter Open