CyberSecBulletin
CVE-2016-3718Exploited in the wildNVD status: Analyzed

ImageMagick Server-Side Request Forgery (SSRF)

CVE-2016-3718 is a medium-severity server-side request forgery vulnerability in Enterprise Linux Desktop from Red Hat, with a CVSS 3.1 base score of 5.5 out of 10. It can be exploited with local access to the system by an unauthenticated attacker, but only if a user takes part, for example by opening a link or file. Affected Enterprise Linux Desktop versions: 6.0; 7.0. The record does not name a fixed version, so check the vendor advisory. CISA added it to the Known Exploited Vulnerabilities catalogue on November 3, 2021, which means attacks have been observed in the wild.

Patch now

Attackers are already exploiting this vulnerability, according to CISA.

What to do

  1. Update Imagemagick to 6.9.3-10 or a later version.
  2. CISA's required action: Apply updates per vendor instructions.
  3. Read the advisory on git.imagemagick.org for workarounds and exact fixed builds.
  4. Because the attack needs a user to take part, warn users about unexpected links and files related to this product until it is patched.

Affected products and versions

VendorProductAffected versionsFixed in
Red HatEnterprise Linux Desktop6.0; 7.0Not stated
Red HatEnterprise Linux EUS6.7; 7.2; 7.3; 7.4; 7.5; 7.6; 7.7Not stated
Red HatEnterprise Linux For IBM Z Systems6.0_s390x; 7.0_s390xNot stated
Red HatEnterprise Linux For IBM Z Systems EUS6.7_s390x; 7.2_s390x; 7.3_s390x; 7.4_s390x; 7.5_s390x; 7.6_s390x; 7.7_s390xNot stated
Red HatEnterprise Linux For Power Big Endian6.0_ppc64; 7.0_ppc64Not stated
Red HatEnterprise Linux For Power Big Endian EUS6.7_ppc64; 7.2_ppc64; 7.3_ppc64; 7.4_ppc64; 7.5_ppc64; 7.6_ppc64; 7.7_ppc64Not stated
Red HatEnterprise Linux For Power Little Endian7.0_ppc64leNot stated
Red HatEnterprise Linux For Power Little Endian EUS7.2_ppc64le; 7.3_ppc64le; 7.4_ppc64le; 7.5_ppc64le; 7.6_ppc64le; 7.7_ppc64leNot stated
Red HatEnterprise Linux Hpc Node6.0; 7.0Not stated
Red HatEnterprise Linux Hpc Node EUS7.2Not stated
Red HatEnterprise Linux Server6.0; 7.0Not stated
Red HatEnterprise Linux Server AUS7.2; 7.3; 7.4; 7.6; 7.7Not stated
Red HatEnterprise Linux Server From Rhui6.0; 7.0Not stated
Red HatEnterprise Linux Server Supplementary EUS6.7zNot stated
Red HatEnterprise Linux Server TUS7.2; 7.3; 7.6; 7.7Not stated
Red HatEnterprise Linux Workstation6.0; 7.0Not stated
ImageMagickImagemagickbefore 6.9.3-10; 7.0.0-0; 7.0.1-06.9.3-10
CanonicalUbuntu Linux12.04; 14.04; 15.10; 16.04Not stated
OracleLinux6; 7Not stated
OracleSolaris10; 11.3Not stated
SUSELinux Enterprise Debuginfo11Not stated
SUSEManager2.1Not stated
SUSEManager Proxy2.1Not stated
SUSEOpenstack Cloud5Not stated
openSUSELeap42.1Not stated

Version data comes from NVD's product matching; 5 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
LocalThe attacker needs local access or must trick a user into running something.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
RequiredA user must take an action such as opening a file or link.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
NoneNo data is disclosed.
Integrity
HighData or code can be modified at will.
Availability
NoneAvailability is not affected.

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.15.5MediumNVD
CVSS 3.15.5MediumCISA (ADP)
CVSS 2.04.3MediumNVD

Official description

The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to conduct server-side request forgery (SSRF) attacks via a crafted image.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Server-Side Request Forgery

The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.

How developers prevent this class of flaw

  • If there is a known list of applications, IP, hostname, and/or domains to which the product is allowed to communicate, then use allowlists to ensure that outgoing requests are restricted to these known entities. The allowlists could be in the application code or possibly enforced by firewalls or network segmentation.
  • If the product is expected to be able to connect to arbitrary IP addresses or domains, consider using a denylist that includes private network addresses, internal domain names, etc. The denylist could be in the application code or possibly enforced by firewalls or network segmentation.

More Server-Side Request Forgery vulnerabilities (CWE-918)

Timeline

  1. CVE record published.
  2. Added to CISA's Known Exploited Vulnerabilities catalogue.
  3. Deadline for US federal agencies to remediate, set by CISA.
  4. CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: partial).
  5. Record last changed materially (score, affected products, status or references).

References

Patches and release notes

Third-party and government advisories

Other vulnerabilities in Enterprise Linux Desktop

All Enterprise Linux Desktop vulnerabilities

Spotted an error? Tell us.