Quantum Secular Labs / Blog / Advisories

CVE-2016-5118: Graphicsmagick: Remote code execution

CVE-2016-5118 is rated critical with a CVSS v3.1 base score of 9.8 and affects Graphicsmagick, along with 12 other products in NVD’s configuration data. Per its scoring, it can be exploited over the network, without authentication, without any user interaction. The scored impact on confidentiality, integrity and availability is the highest available.

Vulnerability description

The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbitrary code via a | (pipe) character at the start of a filename.

Severity breakdown

CVSS v3.1 9.8: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

  • Attack vector: Network. Exploitable remotely over the network, with no need for local or physical access.
  • Attack complexity: Low. No special conditions; the attack can be repeated reliably.
  • Privileges required: None. No account or prior access is needed.
  • User interaction: None. No action from any user is needed.
  • Scope: Unchanged. Impact stays within the vulnerable component.
  • Confidentiality impact: High. Total loss of confidentiality; sensitive data can be fully disclosed.
  • Integrity impact: High. Total loss of integrity; data or system state can be fully modified.
  • Availability impact: High. Total loss of availability; the component can be shut down.

Affected products

  • Graphicsmagick: up to and including 1.3.23
  • Imagemagick: before 7.0.1-7
  • Suse Linux Enterprise Debuginfo: 11 sp4
  • Suse Studio Onsite: 1.3
  • Suse Linux Enterprise Software Development Kit: 11 sp4; 12; 12.0 sp1
  • Oracle Solaris: 10; 11.3
  • Oracle Linux: 6; 7
  • Opensuse Leap: 42.1
  • Opensuse: 13.2
  • Canonical Ubuntu Linux: 12.04; 14.04; 15.10; 16.04
  • Debian Linux: 8.0
  • Suse Linux Enterprise Desktop: 12; 12.0 sp1
  • Suse Linux Enterprise Server: 12; 12.0 sp1
  • Suse Linux Enterprise Workstation Extension: 12; 12 sp1

References