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.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Update Imagemagick to 6.9.3-10 or a later version.
- CISA's required action: Apply updates per vendor instructions.
- Read the advisory on git.imagemagick.org for workarounds and exact fixed builds.
- 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
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 system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 5.5 | Medium | NVD |
| CVSS 3.1 | 5.5 | Medium | CISA (ADP) |
| CVSS 2.0 | 4.3 | Medium | NVD |
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.
Timeline
- CVE record published.
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- Deadline for US federal agencies to remediate, set by CISA.
- CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
Patches and release notes
- imagemagick.org/script/changelog.phpRelease Notes
Third-party and government advisories
- lists.opensuse.org/opensuse-security-announce/2016-05/msg00024.htmlThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2016-05/msg00025.htmlThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2016-05/msg00028.htmlThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2016-05/msg00032.htmlThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2016-05/msg00051.htmlThird Party Advisory
- rhn.redhat.com/errata/RHSA-2016-0726.htmlThird Party Advisory
- debian.org/security/2016/dsa-3580Mailing List, Third Party Advisory
- openwall.com/lists/oss-security/2016/05/03/18Mailing List, Third Party Advisory
- oracle.com/technetwork/topics/security/bulletinjul2016-3090568.htmlThird Party Advisory
- oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.htmlThird Party Advisory
- slackware.com/security/viewer.php?l=slackware-security&y=2016&m=slackware-security.440568Third Party Advisory
- ubuntu.com/usn/USN-2990-1Third Party Advisory
- lists.debian.org/debian-lts-announce/2018/06/msg00009.htmlMailing List, Third Party Advisory
- security.gentoo.org/glsa/201611-21Third Party Advisory
- exploit-db.com/exploits/39767/Third Party Advisory, VDB Entry
Other vulnerabilities in Enterprise Linux Desktop
- 7.8 High severity
Linux Kernel Use-After-Free Exploited
- 7.8 High severity
- 9.8 Critical severity
- 8.8 High severity
- 7.8 High severity
- 7.8 High severity
Spotted an error? Tell us.