cbcvebase.
CVE-2016-3715
published 2016-05-05

CVE-2016-3715: The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to delete arbitrary files via a crafted image.

PriorityP187medium5.5CVSS 3.1
AVLACLPRNUIRSUCNIHAN
KEVITWEXPLOIT
CISA Known Exploited Vulnerabilitydue 2022-05-03
Exploited in the wild
EPSS
75.38%
99.5th percentile
The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to delete arbitrary files 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

commandephemeral:/tmp/delete.txt
filenamedelete_file.mvg
snort
alert http $EXTERNAL_NET any -> $HTTP_SERVERS any (msg:"ET WEB_SERVER ImageMagick CVE-2016-3715 File Deletion Inbound (ephermeral:+ mvg)"; flow:established,to_server; http.request_body; content:"viewbox|20|"; nocase; fast_pattern; content:"ephemeral"; nocase; pcre:"/^\s*\x3a\s*[./]/Ri"; classtype:web-application-attack; sid:2022792; rev:5; metadata:created_at 2016_05_04, cve CVE_2016_3715, signature_severity Major, tag CISA_KEV, updated_at 2020_10_06;)
  • Malicious MVG/SVG image files exploiting CVE-2016-3715 use the 'ephemeral:' pseudo-protocol in an 'image over' directive combined with a 'viewbox' directive. Detect HTTP request bodies containing both 'viewbox' and 'ephemeral' followed by a colon and a path character (e.g., '/' or '.').
  • ImageMagick guesses file type by content, not extension. A crafted exploit file may be renamed to .jpg or .png to bypass file-type checks — inspect file content for MVG/SVG markers regardless of extension.
  • The 'identify' tool is also vulnerable and can be invoked via lesspipe.sh (e.g., 'less exploit.jpg'), creating additional attack vectors beyond direct 'convert' usage.
  • ·On RHEL 5 (where policy.xml is not available), the workaround is to rename the vulnerable coder shared libraries (mvg.so, msl.so, label.so) to disable them.
  • ·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.

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
nvdv2.05.8MEDIUMAV:N/AC:M/Au:N/C:N/I:P/A:P
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.