SB2017121912 - Multiple vulnerabilities in ImageMagick
Published: December 19, 2017 Updated: May 29, 2018
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 10 vulnerabilities.
1) Resource exhaustion (CVE-ID: CVE-2017-1000476)
CWE-ID: CWE-400 - Resource exhaustion
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows a remote attacker to cause DoS condition on the target system.
The weakness exists in the function ReadDDSInfo in coders/dds.c due to CPU exhaustion. A remote attacker can cause the service to crash.
2) Heap-based buffer over-read (CVE-ID: CVE-2017-10928)
CWE-ID: CWE-126 - Buffer over-read
CVSSv4: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows a remote attacker to obtain potentially sensitive information on the target system.
The weakness exists in the GetNextToken function in token.c due to heap-based buffer over-read. A remote attacker can trick the victim into opening a specially crafted SVG document and gain access to potentially sensitive information.
3) Improper input validation (CVE-ID: CVE-2017-11450)
CWE-ID: CWE-20 - Improper input validation
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows a remote attacker to cause DoS condition on the target system.
The weakness exists due to improper input validation. A remote attacker can cause the service to crash via JPEG data that is too short.
4) Memory corruption (CVE-ID: CVE-2017-14325)
CWE-ID: CWE-119 - Memory corruption
CVSSv4: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows a remote attacker to cause DoS condition on the target system.
The weakness exists in the function PersistPixelCache in magick/cache.c due to memory leak. A remote attacker can trick the victim into opening a specially crafted file, trigger memory consumption and cause the service to crash.
5) Memory leak (CVE-ID: CVE-2017-17887)
CWE-ID: CWE-401 - Missing release of memory after effective lifetime
CVSSv4: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows a remote attacker to cause DoS condition on the target system.
The weakness exists in the function GetImagePixelCache in magick/cache.c due to memory leak. A remote attacker can trick the victim into opening a specially crafted MNG image file that is processed by ReadOneMNGImage and cause the service to crash.
6) NULL pointer dereference (CVE-ID: CVE-2017-18250)
CWE-ID: CWE-476 - NULL Pointer Dereference
CVSSv4: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows a remote attacker to cause DoS condition on the target system.
The weakness exists in the function LogOpenCLBuildFailure in MagickCore/opencl.c due to NULL pointer dereference. A remote attacker can trick the victim into opening a specially crafted file and cause the service to crash.
7) Memory leak (CVE-ID: CVE-2017-18251)
CWE-ID: CWE-401 - Missing release of memory after effective lifetime
CVSSv4: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows a remote attacker to cause DoS condition on the target system.
The weakness exists in the function ReadPCDImage in coders/pcd.c due to memory leak. A remote attacker can trick the victim into opening a specially crafted file and cause the service to crash.
8) Improper input validation (CVE-ID: CVE-2017-18252)
CWE-ID: CWE-20 - Improper input validation
CVSSv4: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows a remote attacker to cause DoS condition on the target system.
The weakness exists in the MogrifyImageList function in MagickWand/mogrify.c due to assertion failure. A remote attacker can trick the victim into opening a specially crafted file and cause the service to crash.
9) Memory leak (CVE-ID: CVE-2017-18254)
CWE-ID: CWE-401 - Missing release of memory after effective lifetime
CVSSv4: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows a remote attacker to cause DoS condition on the target system.
The weakness exists in the function WriteGIFImage in coders/gif.c due to memory leak. A remote attacker can trick the victim into opening a specially crafted file and cause the service to crash.
10) Infinite loop (CVE-ID: CVE-2017-18271)
CWE-ID: CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows a remote attacker to cause DoS condition on the target system.
The vulnerability exists due to infinite loop in the function ReadMIFFImage in coders/miff.c. A remote attacker can submit a specially crafted MIFF image file, trigger CPU exhaustion and cause the service to crash.
Remediation
Install update from vendor's website.
References
- https://github.com/ImageMagick/ImageMagick/issues/867
- https://github.com/ImageMagick/ImageMagick/issues/539
- https://github.com/ImageMagick/ImageMagick/issues/556
- https://github.com/ImageMagick/ImageMagick/issues/741
- https://github.com/ImageMagick/ImageMagick/issues/903
- https://github.com/ImageMagick/ImageMagick/issues/793
- https://github.com/ImageMagick/ImageMagick/issues/809
- https://github.com/ImageMagick/ImageMagick/issues/802
- https://github.com/ImageMagick/ImageMagick/issues/808
- https://github.com/ImageMagick/ImageMagick/issues/911