CVE-2017-12671
In ImageMagick 7.0.6-3, a missing NULL assignment was found in coders/png.c, leading to an...
In ImageMagick 7.0.6-3, a missing NULL assignment was found in coders/png.c, leading to an invalid free in the function RelinquishMagickMemory in MagickCore/memory.c, which allows attackers to cause a denial of service.
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
What each source reports
NVD Score used
6.5
In ImageMagick 7.0.6-3, a missing NULL assignment was found in coders/png.c, leading to an invalid free in the function RelinquishMagickMemory in MagickCore/memory.c, which allows attackers to cause a denial of service.
- Record
CVE-2017-12671- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-416
- Updated
- 2026-11-02
CVE List No score
In ImageMagick 7.0.6-3, a missing NULL assignment was found in coders/png.c, leading to an invalid free in the function RelinquishMagickMemory in MagickCore/memory.c, which allows attackers to cause a denial of service.
- Record
CVE-2017-12671- Updated
- 2026-11-02
EUVDEUVD-2017-4210 No score
In ImageMagick 7.0.6-3, a missing NULL assignment was found in coders/png.c, leading to an invalid free in the function RelinquishMagickMemory in MagickCore/memory.c, which allows attackers to cause a denial of service.
- Record
EUVD-2017-4210- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-3g35-2jhp-9xcc
6.5
In ImageMagick 7.0.6-3, a missing NULL assignment was found in coders/png.c, leading to an...
In ImageMagick 7.0.6-3, a missing NULL assignment was found in coders/png.c, leading to an invalid free in the function RelinquishMagickMemory in MagickCore/memory.c, which allows attackers to cause a denial of service.
- Record
GHSA-3g35-2jhp-9xcc- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-416
- Updated
- 2026-11-02
OSV
6.5
In ImageMagick 7.0.6-3, a missing NULL assignment was found in coders/png.c, leading to an invalid free in the function RelinquishMagickMemory in MagickCore/memory.c, which allows attackers to cause a denial of service.
- Record
CVE-2017-12671- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2017-12671
6.5
In ImageMagick 7.0.6-3, a missing NULL assignment was found in coders/png.c, leading to an invalid free in the function RelinquishMagickMemory in MagickCore/memory.c, which allows attackers to cause a denial of service.
- Record
DEBIAN-CVE-2017-12671- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVUBUNTU-CVE-2017-12671
6.5
In ImageMagick 7.0.6-3, a missing NULL assignment was found in coders/png.c, leading to an invalid free in the function RelinquishMagickMemory in MagickCore/memory.c, which allows attackers to cause a denial of service.
- Record
UBUNTU-CVE-2017-12671- CVSS 3.0
- 6.5 Medium
CVSS: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-2018:0349-1 No score
Security update for ImageMagick
This update for ImageMagick fixes several issues.
These security issues were fixed:
- CVE-2017-18027: Prevent memory leak vulnerability in the function ReadMATImage which allowed remote attackers to cause a denial of service via a crafted file (bsc#1076051)
- CVE-2017-18029: Prevent memory leak in the function ReadMATImage which allowed remote attackers to cause a denial of service via a crafted file (bsc#1076021)
- CVE-2017-17681: Prevent infinite loop in the function ReadPSDChannelZip in coders/psd.c, which allowed attackers to cause a denial of service (CPU exhaustion) via a crafted psd image file (bsc#1072901).
- CVE-2017-18008: Prevent memory Leak in ReadPWPImage which allowed attackers to cause a denial of service via a PWP file (bsc#1074309).
- CVE-2018-5685: Prevent infinite loop and application hang in the ReadBMPImage function. Remote attackers could leverage this vulnerability to cause a denial of service via an image file with a crafted bit-field mask value (bsc#1075939)
- CVE-2017-11639: Prevent heap-based buffer over-read in the WriteCIPImage() function, related to the GetPixelLuma function in MagickCore/pixel-accessor.h (bsc#1050635)
- CVE-2017-11525: Prevent memory consumption in the ReadCINImage function that allowed remote attackers to cause a denial of service (bsc#1050098)
- CVE-2017-9262: The ReadJNGImage function in coders/png.c allowed attackers to cause a denial of service (memory leak) via a crafted file (bsc#1043353).
- CVE-2017-9261: The ReadMNGImage function in coders/png.c allowed attackers to cause a denial of service (memory leak) via a crafted file (bsc#1043354).
- CVE-2017-10995: The mng_get_long function in coders/png.c allowed remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted MNG image (bsc#1047908).
- CVE-2017-11539: Prevent memory leak in the ReadOnePNGImage() function in coders/png.c (bsc#1050037).
- CVE-2017-11505: The ReadOneJNGImage function in coders/png.c allowed remote attackers to cause a denial of service (large loop and CPU consumption) via a crafted file (bsc#1050072).
- CVE-2017-11526: The ReadOneMNGImage function in coders/png.c allowed remote attackers to cause a denial of service (large loop and CPU consumption) via a crafted file (bsc#1050100).
- CVE-2017-11750: The ReadOneJNGImage function in coders/png.c allowed remote attackers to cause a denial of service (NULL pointer dereference) via a crafted file (bsc#1051442).
- CVE-2017-12565: Prevent memory leak in the function ReadOneJNGImage in coders/png.c, which allowed attackers to cause a denial of service (bsc#1052470).
- CVE-2017-12676: Prevent memory leak in the function ReadOneJNGImage in coders/png.c, which allowed attackers to cause a denial of service (bsc#1052708).
- CVE-2017-12673: Prevent memory leak in the function ReadOneMNGImage in coders/png.c, which allowed attackers to cause a denial of service (bsc#1052717).
- CVE-2017-12671: Added NULL assignment in coders/png.c to prevent an invalid free in the function RelinquishMagickMemory in MagickCore/memory.c, which allowed attackers to cause a denial of service (bsc#1052721).
- CVE-2017-12643: Prevent a memory exhaustion vulnerability in ReadOneJNGImage in coders\png.c (bsc#1052768).
- CVE-2017-12641: Prevent a memory leak vulnerability in ReadOneJNGImage in coders\png.c (bsc#1052777).
- CVE-2017-12640: Prevent an out-of-bounds read vulnerability in ReadOneMNGImage in coders/png.c (bsc#1052781).
- CVE-2017-12935: The ReadMNGImage function in coders/png.c mishandled large MNG images, leading to an invalid memory read in the SetImageColorCallBack function in magick/image.c (bsc#1054600).
- CVE-2017-13059: Prevent memory leak in the function WriteOneJNGImage in coders/png.c, which allowed attackers to cause a denial of service (WriteJNGImage memory consumption) via a crafted file (bsc#1055068).
- CVE-2017-13147: Prevent allocation…
- Record
SUSE-SU-2018:0349-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:0350-1 No score
Security update for ImageMagick
This update for ImageMagick fixes several issues.
These security issues were fixed:
- CVE-2018-5685: Prevent infinite loop and application hang in the ReadBMPImage function. Remote attackers could leverage this vulnerability to cause a denial of service via an image file with a crafted bit-field mask value (bsc#1075939)
- CVE-2017-11639: Prevent heap-based buffer over-read in the WriteCIPImage() function, related to the GetPixelLuma function in MagickCore/pixel-accessor.h (bsc#1050635).
- CVE-2017-11525: Prevent memory consumption in the ReadCINImage function that allowed remote attackers to cause a denial of service (bsc#1050098).
- CVE-2017-9262: The ReadJNGImage function in coders/png.c allowed attackers to cause a denial of service (memory leak) via a crafted file (bsc#1043353)
- CVE-2017-9261: The ReadMNGImage function in coders/png.c allowed attackers to cause a denial of service (memory leak) via a crafted file (bsc#1043354)
- CVE-2017-10995: The mng_get_long function in coders/png.c allowed remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted MNG image (bsc#1047908)
- CVE-2017-11539: Prevent memory leak in the ReadOnePNGImage() function in coders/png.c (bsc#1050037)
- CVE-2017-11505: The ReadOneJNGImage function in coders/png.c allowed remote attackers to cause a denial of service (large loop and CPU consumption) via a crafted file (bsc#1050072)
- CVE-2017-11526: The ReadOneMNGImage function in coders/png.c allowed remote attackers to cause a denial of service (large loop and CPU consumption) via a crafted file (bsc#1050100)
- CVE-2017-11750: The ReadOneJNGImage function in coders/png.c allowed remote attackers to cause a denial of service (NULL pointer dereference) via a crafted file (bsc#1051442)
- CVE-2017-12565: Prevent memory leak in the function ReadOneJNGImage in coders/png.c, which allowed attackers to cause a denial of service (bsc#1052470)
- CVE-2017-12676: Prevent memory leak in the function ReadOneJNGImage in coders/png.c, which allowed attackers to cause a denial of service (bsc#1052708)
- CVE-2017-12673: Prevent memory leak in the function ReadOneMNGImage in coders/png.c, which allowed attackers to cause a denial of service (bsc#1052717)
- CVE-2017-12671: Added NULL assignment in coders/png.c to prevent an invalid free in the function RelinquishMagickMemory in MagickCore/memory.c, which allowed attackers to cause a denial of service (bsc#1052721)
- CVE-2017-12643: Prevent a memory exhaustion vulnerability in ReadOneJNGImage in coders\png.c (bsc#1052768)
- CVE-2017-12641: Prevent a memory leak vulnerability in ReadOneJNGImage in coders\png.c (bsc#1052777)
- CVE-2017-12640: Prevent an out-of-bounds read vulnerability in ReadOneMNGImage in coders/png.c (bsc#1052781)
- CVE-2017-12935: The ReadMNGImage function in coders/png.c mishandled large MNG images, leading to an invalid memory read in the SetImageColorCallBack function in magick/image.c (bsc#1054600)
- CVE-2017-13147: Prevent allocation failure in the function ReadMNGImage in coders/png.c when a small MNG file has a MEND chunk with a large length value (bsc#1055374)
- CVE-2017-13142: Added additional checks for short files to prevent a crafted PNG file from triggering a crash (bsc#1055455)
- CVE-2017-13141: Prevent memory leak in ReadOnePNGImage in coders/png.c (bsc#1055456)
- CVE-2017-14103: The ReadJNGImage and ReadOneJNGImage functions in coders/png.c did not properly manage image pointers after certain error conditions, which allowed remote attackers to conduct use-after-free attacks via a crafted file, related to a ReadMNGImage out-of-order CloseBlob call (bsc#1057000)
- CVE-2017-14649: ReadOneJNGImage in coders/png.c did not properly validate JNG data, leading to a denial of service (assertion failure in magick/pixel_cache.c, and application crash) (bsc#1060162)
- CVE-2017-15218: Prevent memory leak in…
- Record
SUSE-SU-2018:0350-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
imagemagickDebian:12 |
before 8:6.9.7.4+dfsg-15 | 8:6.9.7.4+dfsg-15 |
imagemagickDebian:13 |
before 8:6.9.7.4+dfsg-15 | 8:6.9.7.4+dfsg-15 |
imagemagickDebian:14 |
before 8:6.9.7.4+dfsg-15 | 8:6.9.7.4+dfsg-15 |
imagemagickDebian:9 From an advisory covering 22 CVEs |
before 8:6.9.7.4+dfsg-11+deb9u2, plus listed versions 8:6.9.7.4+dfsg-118:6.9.7.4+dfsg-11+deb9u1 |
8:6.9.7.4+dfsg-11+deb9u2 |
converseenMageia:6 From an advisory covering 104 CVEs |
before 0.9.6.2-1.3.mga6 | 0.9.6.2-1.3.mga6 |
cuneiform-linuxMageia:6 From an advisory covering 104 CVEs |
before 1.1.0-9.2.mga6 | 1.1.0-9.2.mga6 |
dvdauthorMageia:6 From an advisory covering 104 CVEs |
before 0.7.2-2.2.mga6 | 0.7.2-2.2.mga6 |
emacsMageia:6 From an advisory covering 104 CVEs |
before 24.5-8.3.mga6 | 24.5-8.3.mga6 |
imagemagickMageia:6 From an advisory covering 104 CVEs |
before 6.9.9.41-1.mga6 | 6.9.9.41-1.mga6 |
inkscapeMageia:6 From an advisory covering 104 CVEs |
before 0.92.1-2.2.mga6 | 0.92.1-2.2.mga6 |
Show 28 moreShow less
| Package | Affected | Fixed |
|---|---|---|
k3dMageia:6 From an advisory covering 104 CVEs |
before 0.8.0.5-5.2.mga6 | 0.8.0.5-5.2.mga6 |
kxstitchMageia:6 From an advisory covering 104 CVEs |
before 2.0.0-2.2.mga6 | 2.0.0-2.2.mga6 |
libopenshotMageia:6 From an advisory covering 104 CVEs |
before 0.1.8-1.2.mga6 | 0.1.8-1.2.mga6 |
ocaml-glmliteMageia:6 From an advisory covering 104 CVEs |
before 0.03.51-17.2.mga6 | 0.03.51-17.2.mga6 |
perl-Image-SubImageFindMageia:6 From an advisory covering 104 CVEs |
before 0.30.0-6.2.mga6 | 0.30.0-6.2.mga6 |
pfstoolsMageia:6 From an advisory covering 104 CVEs |
before 2.0.6-3.2.mga6 | 2.0.6-3.2.mga6 |
php-imagickMageia:6 From an advisory covering 104 CVEs |
before 3.4.1-6.2.mga6 | 3.4.1-6.2.mga6 |
php-magickwandMageia:6 From an advisory covering 104 CVEs |
before 1.0.9.2-10.2.mga6 | 1.0.9.2-10.2.mga6 |
psiconvMageia:6 From an advisory covering 104 CVEs |
before 0.9.8-26.2.mga6 | 0.9.8-26.2.mga6 |
pythonmagickMageia:6 From an advisory covering 104 CVEs |
before 0.9.12-7.2.mga6 | 0.9.12-7.2.mga6 |
ruby-rmagickMageia:6 From an advisory covering 104 CVEs |
before 2.15.4-12.2.mga6 | 2.15.4-12.2.mga6 |
synfigMageia:6 From an advisory covering 104 CVEs |
before 1.2.1-2.2.mga6 | 1.2.1-2.2.mga6 |
vdr-plugin-skinelchiMageia:6 From an advisory covering 104 CVEs |
before 0.2.8-8.2.mga6 | 0.2.8-8.2.mga6 |
vdr-plugin-skinenigmangMageia:6 From an advisory covering 104 CVEs |
before 0.1.2-10.2.mga6 | 0.1.2-10.2.mga6 |
ImageMagickSUSE:Linux Enterprise Desktop 12 SP2 From an advisory covering 34 CVEs |
before 6.8.8.1-71.33.1 | 6.8.8.1-71.33.1 |
ImageMagickSUSE:Linux Enterprise Desktop 12 SP3 From an advisory covering 34 CVEs |
before 6.8.8.1-71.33.1 | 6.8.8.1-71.33.1 |
ImageMagickSUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 From an advisory covering 34 CVEs |
before 6.8.8.1-71.33.1 | 6.8.8.1-71.33.1 |
ImageMagickSUSE:Linux Enterprise Software Development Kit 12 SP2 From an advisory covering 34 CVEs |
before 6.8.8.1-71.33.1 | 6.8.8.1-71.33.1 |
ImageMagickSUSE:Linux Enterprise Software Development Kit 12 SP3 From an advisory covering 34 CVEs |
before 6.8.8.1-71.33.1 | 6.8.8.1-71.33.1 |
ImageMagickSUSE:Linux Enterprise Server 12 SP2 From an advisory covering 34 CVEs |
before 6.8.8.1-71.33.1 | 6.8.8.1-71.33.1 |
ImageMagickSUSE:Linux Enterprise Server for SAP Applications 12 SP2 From an advisory covering 34 CVEs |
before 6.8.8.1-71.33.1 | 6.8.8.1-71.33.1 |
ImageMagickSUSE:Linux Enterprise Server 12 SP3 From an advisory covering 34 CVEs |
before 6.8.8.1-71.33.1 | 6.8.8.1-71.33.1 |
ImageMagickSUSE:Linux Enterprise Server for SAP Applications 12 SP3 From an advisory covering 34 CVEs |
before 6.8.8.1-71.33.1 | 6.8.8.1-71.33.1 |
ImageMagickSUSE:Linux Enterprise Workstation Extension 12 SP2 From an advisory covering 34 CVEs |
before 6.8.8.1-71.33.1 | 6.8.8.1-71.33.1 |
ImageMagickSUSE:Linux Enterprise Workstation Extension 12 SP3 From an advisory covering 34 CVEs |
before 6.8.8.1-71.33.1 | 6.8.8.1-71.33.1 |
ImageMagickSUSE:Linux Enterprise Software Development Kit 11 SP4 From an advisory covering 30 CVEs |
before 6.4.3.6-7.78.29.2 | 6.4.3.6-7.78.29.2 |
ImageMagickSUSE:Linux Enterprise Server 11 SP4 From an advisory covering 30 CVEs |
before 6.4.3.6-7.78.29.2 | 6.4.3.6-7.78.29.2 |
ImageMagickSUSE:Linux Enterprise Server for SAP Applications 11 SP4 From an advisory covering 30 CVEs |
before 6.4.3.6-7.78.29.2 | 6.4.3.6-7.78.29.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2017-12671 is a medium vulnerability (CVSS 6.5) in Imagemagick, published August 7, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.11%, the 65th percentile. Fixed in imagemagick 8:6.9.7.4+dfsg-15.
References
github.com/ImageMagick/ImageMagick/issues/621
debian.org/security/2017/dsa-4019
nvd.nist.gov/vuln/detail/CVE-2017-12671
github.com/advisories/GHSA-3g35-2jhp-9xcc
security-tracker.debian.org/tracker/CVE-2017-12671
advisories.mageia.org/MGASA-2018-0229.html
Show 73 moreShow less
bugs.mageia.org/show_bug.cgi?id=19078
git.imagemagick.org/repos/ImageMagick/blob/ImageMagick-6/ChangeLog
suse.com/support/update/announcement/2018/suse-su-20180349-1
bugzilla.suse.com/1043353
bugzilla.suse.com/1043354
bugzilla.suse.com/1047908
bugzilla.suse.com/1050037
bugzilla.suse.com/1050072
bugzilla.suse.com/1050098
bugzilla.suse.com/1050100
bugzilla.suse.com/1050635
bugzilla.suse.com/1051442
bugzilla.suse.com/1052470
bugzilla.suse.com/1052708
bugzilla.suse.com/1052717
bugzilla.suse.com/1052721
bugzilla.suse.com/1052768
bugzilla.suse.com/1052777
bugzilla.suse.com/1052781
bugzilla.suse.com/1054600
bugzilla.suse.com/1055068
bugzilla.suse.com/1055374
bugzilla.suse.com/1055455
bugzilla.suse.com/1055456
bugzilla.suse.com/1057000
bugzilla.suse.com/1060162
bugzilla.suse.com/1062752
bugzilla.suse.com/1072362
bugzilla.suse.com/1072901
bugzilla.suse.com/1074120
bugzilla.suse.com/1074125
bugzilla.suse.com/1074185
bugzilla.suse.com/1074309
bugzilla.suse.com/1075939
bugzilla.suse.com/1076021
bugzilla.suse.com/1076051
suse.com/security/cve/CVE-2017-10995
suse.com/security/cve/CVE-2017-11505
suse.com/security/cve/CVE-2017-11525
suse.com/security/cve/CVE-2017-11526
suse.com/security/cve/CVE-2017-11539
suse.com/security/cve/CVE-2017-11639
suse.com/security/cve/CVE-2017-11750
suse.com/security/cve/CVE-2017-12565
suse.com/security/cve/CVE-2017-12640
suse.com/security/cve/CVE-2017-12641
suse.com/security/cve/CVE-2017-12643
suse.com/security/cve/CVE-2017-12671
suse.com/security/cve/CVE-2017-12673
suse.com/security/cve/CVE-2017-12676
suse.com/security/cve/CVE-2017-12935
suse.com/security/cve/CVE-2017-13059
suse.com/security/cve/CVE-2017-13141
suse.com/security/cve/CVE-2017-13142
suse.com/security/cve/CVE-2017-13147
suse.com/security/cve/CVE-2017-14103
suse.com/security/cve/CVE-2017-14649
suse.com/security/cve/CVE-2017-15218
suse.com/security/cve/CVE-2017-17504
suse.com/security/cve/CVE-2017-17681
suse.com/security/cve/CVE-2017-17879
suse.com/security/cve/CVE-2017-17884
suse.com/security/cve/CVE-2017-17914
suse.com/security/cve/CVE-2017-18008
suse.com/security/cve/CVE-2017-18027
suse.com/security/cve/CVE-2017-18029
suse.com/security/cve/CVE-2017-9261
suse.com/security/cve/CVE-2017-9262
suse.com/security/cve/CVE-2018-5246
suse.com/security/cve/CVE-2018-5685
suse.com/support/update/announcement/2018/suse-su-20180350-1
ubuntu.com/security/CVE-2017-12671
cve.org/CVERecord?id=CVE-2017-12671
Left out here: the rest of 2 source descriptions. The JSON record has them.