cbcvebase.
CVE-2016-3718
published 2016-05-05

CVE-2016-3718: 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)…

PriorityP279medium5.5CVSS 3.1
AVLACLPRNUIRSUCNIHAN
KEVITWEXPLOIT
CISA Known Exploited Vulnerabilitydue 2022-05-03
Exploited in the wild
EPSS
76.90%
99.5th percentile
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.

Affected

88 ranges· showing 25
VendorProductVersion rangeFixed in
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
debiangraphicsmagick< graphicsmagick 1.3.24-1 (bookworm)graphicsmagick 1.3.24-1 (bookworm)
debianimagemagick< graphicsmagick 1.3.24-1 (bookworm)graphicsmagick 1.3.24-1 (bookworm)
graphicsmagickgraphicsmagick>= 0 < 1.3.24-11.3.24-1
graphicsmagickgraphicsmagick>= 0 < 1.3.24-11.3.24-1
graphicsmagickgraphicsmagick>= 0 < 1.3.24-11.3.24-1
graphicsmagickgraphicsmagick>= 0 < 1.3.24-11.3.24-1
imagemagickimagemagick< 6.9.3-106.9.3-10
imagemagickimagemagick
imagemagickimagemagick
imagemagickimagemagick>= 0 < 8:6.9.6.2+dfsg-28:6.9.6.2+dfsg-2
imagemagickimagemagick>= 0 < 8:6.9.6.2+dfsg-28:6.9.6.2+dfsg-2
imagemagickimagemagick>= 0 < 8:6.9.6.2+dfsg-28:6.9.6.2+dfsg-2
imagemagickimagemagick>= 0 < 8:6.9.6.2+dfsg-28:6.9.6.2+dfsg-2
imagemagickimagemagick>= 0 < 8:6.7.7.10-6ubuntu3.18:6.7.7.10-6ubuntu3.1
imagemagickimagemagick>= 0 < 8:6.8.9.9-7ubuntu5.18:6.8.9.9-7ubuntu5.1
opensuseleap
opensuseopensuse
oraclelinux
oraclelinux
oraclesolaris
oraclesolaris

Detection & IOCsextracted from sources · hover to see the quote

filenamessrf.mvg
commandpush graphic-context viewbox 0 0 640 480 fill 'url(http://example.com/)' pop graphic-context
path/etc/ImageMagick/policy.xml
snort
alert http $EXTERNAL_NET any -> $HTTP_SERVERS any (msg:"ET WEB_SERVER ImageMagick CVE-2016-3718 SSRF Inbound (mvg + fill + url)"; flow:established,to_server; http.request_body; content:"viewbox|20|"; nocase; fast_pattern; content:"fill"; content:"url("; distance:0; nocase; pcre:"/^\s*https?\x3a\/\//Ri"; classtype:web-application-attack; sid:2022791; rev:5; metadata:created_at 2016_05_04, cve CVE_2016_3718, signature_severity Major, tag CISA_KEV, updated_at 2020_10_06;)
  • Detect SSRF exploit payloads in MVG files: look for the combination of 'viewbox', 'fill', and 'url(' with an HTTP/FTP scheme in HTTP request bodies uploaded to image-processing endpoints.
  • ImageMagick attempts to guess file type by content, not extension — an MVG SSRF payload can be renamed to .jpg or .png to bypass file-type checks.
  • The 'identify' utility is also vulnerable and can be invoked indirectly via lesspipe.sh, creating additional attack vectors (e.g., via 'less exploit.jpg').
  • SVG and MVG file formats are the primary vectors for SSRF exploitation; monitor for processing of these formats in image conversion pipelines.
  • ·The fix released in ImageMagick 6.9.3-9 (2016-04-30) was incomplete; the fully patched versions are 6.9.3-10 and 7.0.1-1.
  • ·On RHEL 5 (will-not-fix), the workaround is to rename the coder shared objects (mvg.so, msl.so, label.so) to disable them, as no patch will be issued.

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:P/A:N
osv8.4HIGH
vulncheck5.5MEDIUM
cisa5.5MEDIUM
vendor_ubuntu8.4HIGH
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.