Vulnerability Name:

CVE-2017-12877 (CCN-131220)

Assigned:2017-08-10
Published:2017-08-10
Updated:2021-04-28
Summary:Use-after-free vulnerability in the DestroyImage function in image.c in ImageMagick before 7.0.6-6 allows remote attackers to cause a denial of service via a crafted file.
CVSS v3 Severity:6.5 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H)
5.7 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): High
5.5 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H)
4.8 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): High
CVSS v2 Severity:4.3 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:N/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Partial
4.6 Medium (CCN CVSS v2 Vector: AV:L/AC:L/Au:S/C:N/I:N/A:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Complete
Vulnerability Type:CWE-416
Vulnerability Consequences:Denial of Service
References:Source: MITRE
Type: CNA
CVE-2017-12877

Source: MLIST
Type: Mailing List, Patch, Third Party Advisory
[oss-security] 20170816 imagemagick: use-after-free in DestroyImage (image.c)

Source: CCN
Type: agostino's blog, August 10, 2017
imagemagick: use-after-free in DestroyImage (image.c)

Source: MISC
Type: Patch, Third Party Advisory, VDB Entry
https://blogs.gentoo.org/ago/2017/08/10/imagemagick-use-after-free-in-destroyimage-image-c/

Source: XF
Type: UNKNOWN
imagemagick-cve201712877-dos(131220)

Source: CCN
Type: ImageMagick GIT Repository
#662

Source: CONFIRM
Type: Issue Tracking, Patch, Third Party Advisory
https://github.com/ImageMagick/ImageMagick/commit/04178de2247e353fc095846784b9a10fefdbf890

Source: GENTOO
Type: Third Party Advisory
GLSA-201711-07

Source: UBUNTU
Type: Third Party Advisory
USN-3681-1

Source: DEBIAN
Type: Third Party Advisory
DSA-4040

Source: DEBIAN
Type: Third Party Advisory
DSA-4074

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2017-12877

Vulnerable Configuration:Configuration 1:
  • cpe:/a:imagemagick:imagemagick:*:*:*:*:*:*:*:* (Version < 6.9.9-6)
  • OR cpe:/a:imagemagick:imagemagick:*:*:*:*:*:*:*:* (Version >= 7.0.0-0 and < 7.0.6-6)

  • Configuration 2:
  • cpe:/o:debian:debian_linux:8.0:*:*:*:*:*:*:*
  • OR cpe:/o:debian:debian_linux:9.0:*:*:*:*:*:*:*

  • Configuration 3:
  • cpe:/o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*

  • Configuration CCN 1:
  • cpe:/a:imagemagick:imagemagick:7.0.6-6:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.ubuntu.artful:def:201712877000
    V
    CVE-2017-12877 on Ubuntu 17.10 (artful) - medium.
    2017-08-28
    oval:com.ubuntu.bionic:def:2017128770000000
    V
    CVE-2017-12877 on Ubuntu 18.04 LTS (bionic) - medium.
    2017-08-28
    oval:com.ubuntu.bionic:def:201712877000
    V
    CVE-2017-12877 on Ubuntu 18.04 LTS (bionic) - medium.
    2017-08-28
    oval:com.ubuntu.xenial:def:2017128770000000
    V
    CVE-2017-12877 on Ubuntu 16.04 LTS (xenial) - medium.
    2017-08-28
    oval:com.ubuntu.trusty:def:201712877000
    V
    CVE-2017-12877 on Ubuntu 14.04 LTS (trusty) - medium.
    2017-08-28
    oval:com.ubuntu.xenial:def:201712877000
    V
    CVE-2017-12877 on Ubuntu 16.04 LTS (xenial) - medium.
    2017-08-28
    BACK
    imagemagick imagemagick *
    imagemagick imagemagick *
    debian debian linux 8.0
    debian debian linux 9.0
    canonical ubuntu linux 14.04
    canonical ubuntu linux 16.04
    canonical ubuntu linux 17.10
    canonical ubuntu linux 18.04
    imagemagick imagemagick 7.0.6-6