ImageMagick
ImageMagick Improper Input Validation Vulnerability
The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to execute arbitrary code via shell metacharacters in a crafted image, aka "ImageTragick."
Timeline
Days relative to CVE publicationFirst public PoC 1.8 days before publication; added to CISA KEV 8.3 years after publication. First PoC: ImageMagick 7.0.1-0 / 6.9.3-9 - 'ImageTragick ' Multiple Vulnerabilities (Exploit-DB, 4 May 2016).
PoC repositories
Found on GitHub.10 PoCs · 5 informational
PoCs 10
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| tommiionfire/CVE-2016-3714 | 4 May 2016 −1.3 d | 0 | PoC via PoC Index |
| Hood3dRob1n/CVE-2016-3714 | 7 May 2016 +1.6 d | 70 | PoC |
| Macr0phag3/Exp-or-Poc | 28 Apr 2018 +2.0 y | 6 | PoC |
| snyk-labs/container-breaking-in-goof | 30 Jul 2020 +4.2 y | 8 | PoC |
| MrrRaph/pandagik | 26 Apr 2022 +6.0 y | 1 | PoC via PoC Index |
| PandH4cker/pandagik | 26 Apr 2022 +6.0 y | 1 | PoC via PoC Index |
| SgtMate/container_escape_showcase | 17 Nov 2022 +6.5 y | 1 | PoC |
| mmomtchev/magickwand.js | 4 Jan 2023 +6.7 y | 95 | PoC via PoC Index |
| sardine-web/File-Upload | 24 Jun 2025 +9.1 y | 0 | PoC |
| CyberCTF/vulhub-imagemagick-cve-2016-3714 | 8 Oct 2026 +10.4 y | 0 | PoC |
Informational 5
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| jackdpeterson/imagick_secure_puppet | 4 May 2016 −1.6 d | 0 | Informational · write-up |
| chusiang/CVE-2016-3714.ansible.role | 5 May 2016 −7 h | 1 | Informational · detection
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| jpeanut/ImageTragick-CVE-2016-3714-RShell | 5 May 2016 t = 0 | 18 | Informational · write-up |
| shelld3v/RCE-python-oneliner-payload | 2 Apr 2020 +3.9 y | 32 | Informational · write-up |
| JoshMorrison99/CVE-2016-3714 | 2 Dec 2022 +6.6 y | 1 | Informational · write-up |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | 39767 | unknown | 14 Nov 2026 |
| CVE record (tagged exploit) | 39791 | unknown | 14 Nov 2026 |
| Exploit-DB | ImageMagick 7.0.1-0 / 6.9.3-9 - 'ImageTragick ' Multiple Vulnerabilities | 4 May 2016 | 14 Nov 2026 |
| Exploit-DB | ImageMagick 6.9.3-9 / 7.0.1-0 - 'ImageTragick' Delegate Arbitrary Command Execution (Metasploit) | 9 May 2016 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: ImageMagick Delegate Arbitrary Command Execution (exploit/unix/fileformat/imagemagick_delegate) | unknown | 14 Nov 2026 |
| PoC Index | http://www.rapid7.com/db/modules/exploit/unix/fileformat/imagemagick_delegate | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 10 PoC reposPOST /
- Key headers
Accept: */*Accept-Language: en- Body markers
------WebKitFormBoundarymdcbmdQR1sDse9Et Content-Disposition: form-data; name="file_upload"; filename="1.gif" Content-Tyinmultipart/form-data; boundary=----WebKitFormBoundarymdcbmdQR1sDse9Et- Ports
- 8080
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36- Seen in
- 1 repo: CyberCTF/vulhub-imagemagick-cve-2016-3714
- Evidence
- CyberCTF/vulhub-imagemagick-cve-2016-3714/build/web/app/README.md:30 CyberCTF/vulhub-imagemagick-cve-2016-3714/build/web/app/README.zh-cn.md:28
POST /images/upload/
- Key headers
Content-Disposition: form-data; name="uploaded"; filename="shell.php"- Content-Type
image/jpeg- Seen in
- 1 repo: sardine-web/File-Upload
- Evidence
- sardine-web/File-Upload/README.md:19
GET /Discuz/upload/home.php
- Query
mod=spacecp- Key headers
Cookie: R98R_2132_sid=uIwx30; R98R_2132_saltkey=ZfMPeG8T; R98R_2132_lastvisit=1524725697; R98R_2132_lastact=1524729433%09misc.php%09patch; R98R_2132_sendmail=1; R98R_2132__refer=%252FDiscuz%252Fupload%252Fhome.php%253Fmod%253Dspacecp; R98R_2132_seccode=6.e82c9961ebeb572ac1; R98R_2132_home_readfeed=1524729307; R98R_2132_onlineusernum=2; R98R_2132_ulastactivity=77d8RxCUWyDPKNhcjeQio8LJ3J8l5X1OFJlVnzRJWkaoIwn31iUg; R98R_2132_auth=6feac1%2BRPMBYeq%2F8Rad4pgdy8oVsryQNd50dN2ghe4985fhLIN3Ia23l1%2BvZBEYeKQml%2BBQ%2B6odORlVkQzTQ; R98R_2132_lastcheckfeed=2%7C1524729428; R98R_2132_checkfollow=1; R98R_2132_lip=%3A%3A1%2C1524729433; R98R_2132_nofavfid=1; R98R_2132_checkpm=1- Seen in
- 1 repo: Macr0phag3/Exp-or-Poc
- Evidence
- Macr0phag3/Exp-or-Poc/Discuz-v<=3.4-delete-file/Discuz.py:17
GET /public/%2e%2e/%2e%2e/%2e%2e/foo/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd
- Ports
- 3112
- Seen in
- 1 repo: snyk-labs/container-breaking-in-goof
- Evidence
- snyk-labs/container-breaking-in-goof/README.md:112
POST /Discuz/upload/home.php
- Query
mod=spacecpac=profileop=base- Key headers
Cookie: R98R_2132_sid=uIwx30; R98R_2132_saltkey=ZfMPeG8T; R98R_2132_lastvisit=1524725697; R98R_2132_lastact=1524729433%09misc.php%09patch; R98R_2132_sendmail=1; R98R_2132__refer=%252FDiscuz%252Fupload%252Fhome.php%253Fmod%253Dspacecp; R98R_2132_seccode=6.e82c9961ebeb572ac1; R98R_2132_home_readfeed=1524729307; R98R_2132_onlineusernum=2; R98R_2132_ulastactivity=77d8RxCUWyDPKNhcjeQio8LJ3J8l5X1OFJlVnzRJWkaoIwn31iUg; R98R_2132_auth=6feac1%2BRPMBYeq%2F8Rad4pgdy8oVsryQNd50dN2ghe4985fhLIN3Ia23l1%2BvZBEYeKQml%2BBQ%2B6odORlVkQzTQ; R98R_2132_lastcheckfeed=2%7C1524729428; R98R_2132_checkfollow=1; R98R_2132_lip=%3A%3A1%2C1524729433; R98R_2132_nofavfid=1; R98R_2132_checkpm=1- Body markers
birthprovince=../../../test.txt# bypass isset({var}['birthprovince']) in 100 'profilesubmit'=1# bypass submitcheck('profilesubmit') in 71 'formhash'=inapplication/x-www-form-urlencoded- Seen in
- 1 repo: Macr0phag3/Exp-or-Poc
- Evidence
- Macr0phag3/Exp-or-Poc/Discuz-v<=3.4-delete-file/Discuz.py:29 Macr0phag3/Exp-or-Poc/Discuz-v<=3.4-delete-file/Discuz.py:35
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/(?:[?#].*)?$
(?i)^/images/upload/(?:[?#].*)?$
(?i)^/Discuz/upload/home\.php\?(?:.*&)?mod=spacecp
(?i)^/public/%2e%2e/%2e%2e/%2e%2e/foo/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd(?:[?#].*)?$
(?i)^/Discuz/upload/home\.php\?(?:.*&)?mod=spacecp.*ac=profile.*op=base
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2016-3714 ImageMagick ImageMagick exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.header; content:"Accept: */*"; nocase; http.header; content:"Accept-Language: en"; nocase; http.request_body; content:"------WebKitFormBoundarymdcbmdQR1sDse9Et Content-Disposition: form-data|3b| name=|22|file_upload|22||3b| filename=|22|1.gif|22| Content-Ty"; reference:url,poc.griffinguard.io/cve/CVE-2016-3714; classtype:web-application-attack; sid:9718332; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2016-3714 ImageMagick ImageMagick exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/images/upload/"; http.header; content:"Content-Disposition: form-data|3b| name=|22|uploaded|22||3b| filename=|22|shell.php|22|"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2016-3714; classtype:web-application-attack; sid:9759387; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2016-3714 ImageMagick ImageMagick exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/Discuz/upload/home.php"; http.uri; content:"mod=spacecp"; http.header; content:"Cookie: R98R_2132_sid=uIwx30|3b| R98R_2132_saltkey=ZfMPeG8T|3b| R98R_2132_lastvisit=1524725697|3b| R98R_2132_lastact=1524729433%09misc.php%09patch|3b| R98R_2132_sendmail=1|3b| R98R_2132__refer=%252FDiscuz%252Fupload%252Fhome.php%253Fmod%253Dspacecp|3b| R98R_2132_seccode=6.e82c9961ebeb572ac1|3b| R98R_2132_home_readfeed=1524729307|3b| R98R_2132_onlineusernum=2|3b| R98R_2132_ulastactivity=77d8RxCUWyDPKNhcjeQio8LJ3J8l5X1OFJlVnzRJWkaoIwn31iUg|3b| R98R_2132_auth=6feac1%2BRPMBYeq%2F8Rad4pgdy8oVsryQNd50dN2ghe4985fhLIN3Ia23l1%2BvZBEYeKQml%2BBQ%2B6odORlVkQzTQ|3b| R98R_2132_lastcheckfeed=2%7C1524729428|3b| R98R_2132_checkfollow=1|3b| R98R_2132_lip=%3A%3A1%2C1524729433|3b| R98R_2132_nofavfid=1|3b| R98R_2132_checkpm=1"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2016-3714; classtype:web-application-attack; sid:9540882; rev:1;)
alert http any any -> $HOME_NET [3112] (msg:"GG PoC-Monitor CVE-2016-3714 ImageMagick ImageMagick exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/public/%2e%2e/%2e%2e/%2e%2e/foo/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd"; reference:url,poc.griffinguard.io/cve/CVE-2016-3714; classtype:web-application-attack; sid:9805053; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2016-3714 ImageMagick ImageMagick exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/Discuz/upload/home.php"; http.uri; content:"mod=spacecp"; http.uri; content:"ac=profile"; http.uri; content:"op=base"; http.header; content:"Cookie: R98R_2132_sid=uIwx30|3b| R98R_2132_saltkey=ZfMPeG8T|3b| R98R_2132_lastvisit=1524725697|3b| R98R_2132_lastact=1524729433%09misc.php%09patch|3b| R98R_2132_sendmail=1|3b| R98R_2132__refer=%252FDiscuz%252Fupload%252Fhome.php%253Fmod%253Dspacecp|3b| R98R_2132_seccode=6.e82c9961ebeb572ac1|3b| R98R_2132_home_readfeed=1524729307|3b| R98R_2132_onlineusernum=2|3b| R98R_2132_ulastactivity=77d8RxCUWyDPKNhcjeQio8LJ3J8l5X1OFJlVnzRJWkaoIwn31iUg|3b| R98R_2132_auth=6feac1%2BRPMBYeq%2F8Rad4pgdy8oVsryQNd50dN2ghe4985fhLIN3Ia23l1%2BvZBEYeKQml%2BBQ%2B6odORlVkQzTQ|3b| R98R_2132_lastcheckfeed=2%7C1524729428|3b| R98R_2132_checkfollow=1|3b| R98R_2132_lip=%3A%3A1%2C1524729433|3b| R98R_2132_nofavfid=1|3b| R98R_2132_checkpm=1"; nocase; http.request_body; content:"birthprovince=../../../test.txt"; http.request_body; content:"# bypass isset("; http.request_body; content:"# bypass submitcheck('profilesubmit') in 71
'formhash'="; reference:url,poc.griffinguard.io/cve/CVE-2016-3714; classtype:web-application-attack; sid:9653610; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: ImageMagick ImageMagick exploit attempt (CVE-2016-3714)
id: gg-pocmon-cve-2016-3714-9718332
status: experimental
description: Request pattern taken from public PoCs for CVE-2016-3714. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2016-3714
logsource:
category: webserver
detection:
selection:
cs-method: POST
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2016.3714
title: ImageMagick ImageMagick exploit attempt (CVE-2016-3714)
id: gg-pocmon-cve-2016-3714-9759387
status: experimental
description: Request pattern taken from public PoCs for CVE-2016-3714. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2016-3714
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/images/upload/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2016.3714
title: ImageMagick ImageMagick exploit attempt (CVE-2016-3714)
id: gg-pocmon-cve-2016-3714-9540882
status: experimental
description: Request pattern taken from public PoCs for CVE-2016-3714. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2016-3714
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/Discuz/upload/home.php'
cs-uri-query|contains|all:
- 'mod=spacecp'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2016.3714
title: ImageMagick ImageMagick exploit attempt (CVE-2016-3714)
id: gg-pocmon-cve-2016-3714-9805053
status: experimental
description: Request pattern taken from public PoCs for CVE-2016-3714. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2016-3714
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/public/%2e%2e/%2e%2e/%2e%2e/foo/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2016.3714
title: ImageMagick ImageMagick exploit attempt (CVE-2016-3714)
id: gg-pocmon-cve-2016-3714-9653610
status: experimental
description: Request pattern taken from public PoCs for CVE-2016-3714. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2016-3714
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/Discuz/upload/home.php'
cs-uri-query|contains|all:
- 'mod=spacecp'
- 'ac=profile'
- 'op=base'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2016.3714