Every CVE Search/ Get API key

CVE-2017-9142

In ImageMagick 7.0.5-7 Q16, a crafted file could trigger an assertion failure in the WriteBlob...

6.5 MediumFix available

CVE-2017-9142 is a medium vulnerability (CVSS 6.5) in Imagemagick, published May 22, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.17%, the 82nd percentile. Fixed in imagemagick 8:6.9.7.4+dfsg-9.

In ImageMagick 7.0.5-7 Q16, a crafted file could trigger an assertion failure in the WriteBlob function in MagickCore/blob.c because of missing checks in the ReadOneJNGImage function in coders/png.c.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

2.17%Up 1.1 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 6.5

In ImageMagick 7.0.5-7 Q16, a crafted file could trigger an assertion failure in the WriteBlob function in MagickCore/blob.c because of missing checks in the ReadOneJNGImage function in coders/png.c.

Record
CVE-2017-9142
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-20, CWE-617
Updated
2026-11-02
CVE List No score

In ImageMagick 7.0.5-7 Q16, a crafted file could trigger an assertion failure in the WriteBlob function in MagickCore/blob.c because of missing checks in the ReadOneJNGImage function in coders/png.c.

Record
CVE-2017-9142
Updated
2026-11-02
EUVDEUVD-2017-18080 No score

In ImageMagick 7.0.5-7 Q16, a crafted file could trigger an assertion failure in the WriteBlob function in MagickCore/blob.c because of missing checks in the ReadOneJNGImage function in coders/png.c.

Record
EUVD-2017-18080
Updated
2026-11-03
GitHub AdvisoriesGHSA-6p6w-fgp7-qj6r 6.5

In ImageMagick 7.0.5-7 Q16, a crafted file could trigger an assertion failure in the WriteBlob...

In ImageMagick 7.0.5-7 Q16, a crafted file could trigger an assertion failure in the WriteBlob function in MagickCore/blob.c because of missing checks in the ReadOneJNGImage function in coders/png.c.

Record
GHSA-6p6w-fgp7-qj6r
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-20
Updated
2026-11-02
OSV 6.5

In ImageMagick 7.0.5-7 Q16, a crafted file could trigger an assertion failure in the WriteBlob function in MagickCore/blob.c because of missing checks in the ReadOneJNGImage function in coders/png.c.

Record
CVE-2017-9142
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2017-9142 6.5

In ImageMagick 7.0.5-7 Q16, a crafted file could trigger an assertion failure in the WriteBlob function in MagickCore/blob.c because of missing checks in the ReadOneJNGImage function in coders/png.c.

Record
DEBIAN-CVE-2017-9142
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 6 moreShow less
OSVUBUNTU-CVE-2017-9142 6.5

In ImageMagick 7.0.5-7 Q16, a crafted file could trigger an assertion failure in the WriteBlob function in MagickCore/blob.c because of missing checks in the ReadOneJNGImage function in coders/png.c.

Record
UBUNTU-CVE-2017-9142
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2018-0229 No score

Updated imagemagick packages fix security vulnerabilities

The imagemagick package has been updated to version 6.9.9.41 which fixes several unspecified security vulnerabilities. This update fixes several vulnerabilities in imagemagick, including: Various memory handling problems and cases of missing or incomplete input sanitising may result in denial of service, memory disclosure or the execution of arbitrary code if malformed GIF, TTF, SVG, TIFF, PCX, JPG or SFW files are processed.

Several packages have been rebuilt for the updated ImageMagick.

Record
MGASA-2018-0229
Updated
2026-11-02
OSVSUSE-SU-2017:1489-1 No score

Security update for ImageMagick

This update for ImageMagick fixes the following issues:

Security issues fixed:

  • CVE-2017-6502: Possible file-descriptor leak in libmagickcore that could be triggered via a specially crafted webp file (bsc#1028075).
  • CVE-2017-7943: The ReadSVGImage function in svg.c allowed remote attackers to consume an amount of available memory via a crafted file (bsc#1034870). Note that this only impacts the built-in SVG implementation. As we use the librsgv implementation, we are not affected.
  • CVE-2017-7942: The ReadAVSImage function in avs.c allowed remote attackers to consume an amount of available memory via a crafted file (bsc#1034872).
  • CVE-2017-7941: The ReadSGIImage function in sgi.c allowed remote attackers to consume an amount of available memory via a crafted file (bsc#1034876).
  • CVE-2017-8351: ImageMagick, GraphicsMagick: denial of service (memory leak) via a crafted file (ReadPCDImage func in pcd.c) (bsc#1036986).
  • CVE-2017-8352: denial of service (memory leak) via a crafted file (ReadXWDImage func in xwd.c) (bsc#1036987)
  • CVE-2017-8349: denial of service (memory leak) via a crafted file (ReadSFWImage func in sfw.c) (bsc#1036984)
  • CVE-2017-8350: denial of service (memory leak) via a crafted file (ReadJNGImage function in png.c) (bsc#1036985)
  • CVE-2017-8347: denial of service (memory leak) via a crafted file (ReadEXRImage func in exr.c) (bsc#1036982)
  • CVE-2017-8348: denial of service (memory leak) via a crafted file (ReadMATImage func in mat.c) (bsc#1036983)
  • CVE-2017-8345: denial of service (memory leak) via a crafted file (ReadMNGImage func in png.c) (bsc#1036980)
  • CVE-2017-8346: denial of service (memory leak) via a crafted file (ReadDCMImage func in dcm.c) (bsc#1036981)
  • CVE-2017-8353: denial of service (memory leak) via a crafted file (ReadPICTImage func in pict.c) (bsc#1036988)
  • CVE-2017-8354: denial of service (memory leak) via a crafted file (ReadBMPImage func in bmp.c) (bsc#1036989)
  • CVE-2017-8830: denial of service (memory leak) via a crafted file (ReadBMPImage func in bmp.c:1379) (bsc#1038000)
  • CVE-2017-7606: denial of service (application crash) or possibly have unspecified other impact via a crafted image (bsc#1033091)
  • CVE-2017-8765: memory leak vulnerability via a crafted ICON file (ReadICONImage in coders\icon.c) (bsc#1037527)
  • CVE-2017-8356: denial of service (memory leak) via a crafted file (ReadSUNImage function in sun.c) (bsc#1036991)
  • CVE-2017-8355: denial of service (memory leak) via a crafted file (ReadMTVImage func in mtv.c) (bsc#1036990)
  • CVE-2017-8344: denial of service (memory leak) via a crafted file (ReadPCXImage func in pcx.c) (bsc#1036978)
  • CVE-2017-8343: denial of service (memory leak) via a crafted file (ReadAAIImage func in aai.c) (bsc#1036977)
  • CVE-2017-8357: denial of service (memory leak) via a crafted file (ReadEPTImage func in ept.c) (bsc#1036976)
  • CVE-2017-9098: uninitialized memory usage in the ReadRLEImage RLE decoder function coders/rle.c (bsc#1040025)
  • CVE-2017-9141: Missing checks in the ReadDDSImage function in coders/dds.c could lead to a denial of service (assertion) (bsc#1040303)
  • CVE-2017-9142: Missing checks in theReadOneJNGImage function in coders/png.c could lead to denial of service (assertion) (bsc#1040304)
  • CVE-2017-9143: A possible denial of service attack via crafted .art file in ReadARTImage function in coders/art.c (bsc#1040306)
  • CVE-2017-9144: A crafted RLE image can trigger a crash in coders/rle.c could lead to a denial of service (crash) (bsc#1040332)
Record
SUSE-SU-2017:1489-1
Updated
2026-11-02
OSVSUSE-SU-2017:1599-1 No score

Security update for ImageMagick

This update for ImageMagick fixes the following issues:

This security issue was fixed:

  • CVE-2017-7941: The ReadSGIImage function in sgi.c allowed remote attackers to consume an amount of available memory via a crafted file (bsc#1034876).
  • CVE-2017-8351: ImageMagick, GraphicsMagick: denial of service (memory leak) via a crafted file (ReadPCDImage func in pcd.c) (bsc#1036986).
  • CVE-2017-8352: denial of service (memory leak) via a crafted file (ReadXWDImage func in xwd.c) (bsc#1036987)
  • CVE-2017-8349: denial of service (memory leak) via a crafted file (ReadSFWImage func in sfw.c) (bsc#1036984)
  • CVE-2017-8350: denial of service (memory leak) via a crafted file (ReadJNGImage function in png.c) (bsc#1036985)
  • CVE-2017-8345: denial of service (memory leak) via a crafted file (ReadMNGImage func in png.c) (bsc#1036980)
  • CVE-2017-8346: denial of service (memory leak) via a crafted file (ReadDCMImage func in dcm.c) (bsc#1036981)
  • CVE-2017-8353: denial of service (memory leak) via a crafted file (ReadPICTImage func in pict.c) (bsc#1036988)
  • CVE-2017-8830: denial of service (memory leak) via a crafted file (ReadBMPImage func in bmp.c:1379) (bsc#1038000)
  • CVE-2017-7606: denial of service (application crash) or possibly have unspecified other impact via a crafted image (bsc#1033091)
  • CVE-2017-8765: memory leak vulnerability via a crafted ICON file (ReadICONImage in coders\icon.c) (bsc#1037527)
  • CVE-2017-8355: denial of service (memory leak) via a crafted file (ReadMTVImage func in mtv.c) (bsc#1036990)
  • CVE-2017-8344: denial of service (memory leak) via a crafted file (ReadPCXImage func in pcx.c) (bsc#1036978)
  • CVE-2017-9098: uninitialized memory usage in the ReadRLEImage RLE decoder function coders/rle.c (bsc#1040025)
  • CVE-2017-9141: Missing checks in the ReadDDSImage function in coders/dds.c could lead to a denial of service (assertion) (bsc#1040303)
  • CVE-2017-9142: Missing checks in theReadOneJNGImage function in coders/png.c could lead to denial of service (assertion) (bsc#1040304)
  • CVE-2017-9143: A possible denial of service attack via crafted .art file in ReadARTImage function in coders/art.c (bsc#1040306)
  • CVE-2017-9144: A crafted RLE image can trigger a crash in coders/rle.c could lead to a denial of service (crash) (bsc#1040332)
Record
SUSE-SU-2017:1599-1
Updated
2026-11-02
OSVSUSE-SU-2017:1600-1 No score

Security update for GraphicsMagick

This update for GraphicsMagick fixes the following issues:

This security issue was fixed:

  • CVE-2017-7941: The ReadSGIImage function in sgi.c allowed remote attackers to consume an amount of available memory via a crafted file (bsc#1034876).
  • CVE-2017-8351: ImageMagick, GraphicsMagick: denial of service (memory leak) via a crafted file (ReadPCDImage func in pcd.c) (bsc#1036986).
  • CVE-2017-8352: denial of service (memory leak) via a crafted file (ReadXWDImage func in xwd.c) (bsc#1036987)
  • CVE-2017-8349: denial of service (memory leak) via a crafted file (ReadSFWImage func in sfw.c) (bsc#1036984)
  • CVE-2017-8350: denial of service (memory leak) via a crafted file (ReadJNGImage function in png.c) (bsc#1036985). The previous fix for CVE-2014-9847 (bsc#984144) was incorrect and incomplete and has been refreshed.
  • CVE-2017-8345: denial of service (memory leak) via a crafted file (ReadMNGImage func in png.c) (bsc#1036980)
  • CVE-2017-8346: denial of service (memory leak) via a crafted file (ReadDCMImage func in dcm.c) (bsc#1036981)
  • CVE-2017-8353: denial of service (memory leak) via a crafted file (ReadPICTImage func in pict.c) (bsc#1036988)
  • CVE-2017-8830: denial of service (memory leak) via a crafted file (ReadBMPImage func in bmp.c:1379) (bsc#1038000)
  • CVE-2017-7606: denial of service (application crash) or possibly have unspecified other impact via a crafted image (bsc#1033091)
  • CVE-2017-8765: memory leak vulnerability via a crafted ICON file (ReadICONImage in coders\icon.c) (bsc#1037527)
  • CVE-2017-8355: denial of service (memory leak) via a crafted file (ReadMTVImage func in mtv.c) (bsc#1036990)
  • CVE-2017-8344: denial of service (memory leak) via a crafted file (ReadPCXImage func in pcx.c) (bsc#1036978)
  • CVE-2017-9098: uninitialized memory usage in the ReadRLEImage RLE decoder function coders/rle.c (bsc#1040025)
  • CVE-2017-9142: Missing checks in theReadOneJNGImage function in coders/png.c could lead to denial of service (assertion) (bsc#1040304)
  • CVE-2017-9144: A crafted RLE image can trigger a crash in coders/rle.c could lead to a denial of service (crash) (bsc#1040332)
Record
SUSE-SU-2017:1600-1
Updated
2026-11-02
OSVUSN-3302-1 No score

imagemagick vulnerabilities

It was discovered that ImageMagick incorrectly handled certain malformed image files. If a user or automated system using ImageMagick were tricked into opening a specially crafted image, an attacker could exploit this to cause a denial of service or possibly execute code with the privileges of the user invoking the program.

Record
USN-3302-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
imagemagick
Debian:12
before 8:6.9.7.4+dfsg-9
8:6.9.7.4+dfsg-9
imagemagick
Debian:13
before 8:6.9.7.4+dfsg-9
8:6.9.7.4+dfsg-9
imagemagick
Debian:14
before 8:6.9.7.4+dfsg-9
8:6.9.7.4+dfsg-9
imagemagick
Debian:7
before 8:6.7.7.10-5+deb7u13, plus listed versions
8:6.7.7.10-58:6.7.7.10-5+deb7u108:6.7.7.10-5+deb7u118:6.7.7.10-5+deb7u128:6.7.7.10-5+deb7u2
Show 7 moreShow less
8:6.7.7.10-5+deb7u38:6.7.7.10-5+deb7u48:6.7.7.10-5+deb7u58:6.7.7.10-5+deb7u68:6.7.7.10-5+deb7u78:6.7.7.10-5+deb7u88:6.7.7.10-5+deb7u9
8:6.7.7.10-5+deb7u13
imagemagick
Debian:8
before 8:6.8.9.9-5+deb8u9, plus listed versions
8:6.8.9.9-58:6.8.9.9-5+deb8u18:6.8.9.9-5+deb8u28:6.8.9.9-5+deb8u38:6.8.9.9-5+deb8u4
Show 4 moreShow less
8:6.8.9.9-5+deb8u58:6.8.9.9-5+deb8u68:6.8.9.9-5+deb8u78:6.8.9.9-5+deb8u8
8:6.8.9.9-5+deb8u9
converseen
Mageia:6
before 0.9.6.2-1.3.mga6
0.9.6.2-1.3.mga6
cuneiform-linux
Mageia:6
before 1.1.0-9.2.mga6
1.1.0-9.2.mga6
dvdauthor
Mageia:6
before 0.7.2-2.2.mga6
0.7.2-2.2.mga6
emacs
Mageia:6
before 24.5-8.3.mga6
24.5-8.3.mga6
imagemagick
Mageia:6
before 6.9.9.41-1.mga6
6.9.9.41-1.mga6
Show 28 moreShow less
Affected packages
PackageAffectedFixed
inkscape
Mageia:6
before 0.92.1-2.2.mga6
0.92.1-2.2.mga6
k3d
Mageia:6
before 0.8.0.5-5.2.mga6
0.8.0.5-5.2.mga6
kxstitch
Mageia:6
before 2.0.0-2.2.mga6
2.0.0-2.2.mga6
libopenshot
Mageia:6
before 0.1.8-1.2.mga6
0.1.8-1.2.mga6
ocaml-glmlite
Mageia:6
before 0.03.51-17.2.mga6
0.03.51-17.2.mga6
perl-Image-SubImageFind
Mageia:6
before 0.30.0-6.2.mga6
0.30.0-6.2.mga6
pfstools
Mageia:6
before 2.0.6-3.2.mga6
2.0.6-3.2.mga6
php-imagick
Mageia:6
before 3.4.1-6.2.mga6
3.4.1-6.2.mga6
php-magickwand
Mageia:6
before 1.0.9.2-10.2.mga6
1.0.9.2-10.2.mga6
psiconv
Mageia:6
before 0.9.8-26.2.mga6
0.9.8-26.2.mga6
pythonmagick
Mageia:6
before 0.9.12-7.2.mga6
0.9.12-7.2.mga6
ruby-rmagick
Mageia:6
before 2.15.4-12.2.mga6
2.15.4-12.2.mga6
synfig
Mageia:6
before 1.2.1-2.2.mga6
1.2.1-2.2.mga6
vdr-plugin-skinelchi
Mageia:6
before 0.2.8-8.2.mga6
0.2.8-8.2.mga6
vdr-plugin-skinenigmang
Mageia:6
before 0.1.2-10.2.mga6
0.1.2-10.2.mga6
ImageMagick
SUSE:Linux Enterprise Desktop 12 SP2
before 6.8.8.1-70.1
6.8.8.1-70.1
ImageMagick
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 6.8.8.1-70.1
6.8.8.1-70.1
ImageMagick
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 6.8.8.1-70.1
6.8.8.1-70.1
ImageMagick
SUSE:Linux Enterprise Server 12 SP2
before 6.8.8.1-70.1
6.8.8.1-70.1
ImageMagick
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 6.8.8.1-70.1
6.8.8.1-70.1
ImageMagick
SUSE:Linux Enterprise Workstation Extension 12 SP2
before 6.8.8.1-70.1
6.8.8.1-70.1
ImageMagick
SUSE:Linux Enterprise Software Development Kit 11 SP4
before 6.4.3.6-7.77.1
6.4.3.6-7.77.1
ImageMagick
SUSE:Linux Enterprise Server 11 SP4
before 6.4.3.6-7.77.1
6.4.3.6-7.77.1
ImageMagick
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
before 6.4.3.6-7.77.1
6.4.3.6-7.77.1
GraphicsMagick
SUSE:Linux Enterprise Software Development Kit 11 SP4
before 1.2.5-4.77.1
1.2.5-4.77.1
GraphicsMagick
SUSE:Studio Onsite 1.3
before 1.2.5-4.77.1
1.2.5-4.77.1
imagemagick
Ubuntu:14.04:LTS
before 8:6.7.7.10-6ubuntu3.7, plus listed versions
8:6.7.7.10-5ubuntu38:6.7.7.10-5ubuntu48:6.7.7.10-6ubuntu18:6.7.7.10-6ubuntu28:6.7.7.10-6ubuntu3
Show 6 moreShow less
8:6.7.7.10-6ubuntu3.18:6.7.7.10-6ubuntu3.28:6.7.7.10-6ubuntu3.38:6.7.7.10-6ubuntu3.48:6.7.7.10-6ubuntu3.58:6.7.7.10-6ubuntu3.6
8:6.7.7.10-6ubuntu3.7
imagemagick
Ubuntu:16.04:LTS
before 8:6.8.9.9-7ubuntu5.7, plus listed versions
8:6.8.9.9-5ubuntu28:6.8.9.9-68:6.8.9.9-6build18:6.8.9.9-78:6.8.9.9-7ubuntu1
Show 10 moreShow less
8:6.8.9.9-7ubuntu28:6.8.9.9-7ubuntu38:6.8.9.9-7ubuntu48:6.8.9.9-7ubuntu58:6.8.9.9-7ubuntu5.18:6.8.9.9-7ubuntu5.28:6.8.9.9-7ubuntu5.38:6.8.9.9-7ubuntu5.48:6.8.9.9-7ubuntu5.58:6.8.9.9-7ubuntu5.6
8:6.8.9.9-7ubuntu5.7

History

History
WhenChangedSources
2026-11-03aliasesEUVD
2026-11-02createdCVE List, GitHub Advisories, NVD, OSV

References

Show 94 moreShow less
MoveEnter Open