CVE-2017-5638

CRITICAL KEV RANSOMWARE NUCLEI

Apache Struts < 2.3.32 - Improper Exception Handling

Title source: rule

Description

The Jakarta Multipart parser in Apache Struts 2 2.3.x before 2.3.32 and 2.5.x before 2.5.10.1 has incorrect exception handling and error-message generation during file-upload attempts, which allows remote attackers to execute arbitrary commands via a crafted Content-Type, Content-Disposition, or Content-Length HTTP header, as exploited in the wild in March 2017 with a Content-Type header containing a #cmd= string.

Exploits (97)

github WORKING POC 3,480 stars
by qazbnm456 · poc
https://github.com/qazbnm456/awesome-cve-poc/tree/master/CVE-2017-5638.md
nomisec WORKING POC 440 stars
by mazen160 · remote
https://github.com/mazen160/struts-pwn
nomisec WORKING POC 61 stars
by Flyteas · remote
https://github.com/Flyteas/Struts2-045-Exp
nomisec WORKING POC 35 stars
by immunio · remote
https://github.com/immunio/apache-struts2-CVE-2017-5638
nomisec STUB 24 stars
by PolarisLab · poc
https://github.com/PolarisLab/S2-045
nomisec WORKING POC 24 stars
by jas502n · remote
https://github.com/jas502n/S2-045-EXP-POC-TOOLS
nomisec WORKING POC 21 stars
by jas502n · remote
https://github.com/jas502n/st2-046-poc
nomisec WORKING POC 19 stars
by xsscx · remote
https://github.com/xsscx/cve-2017-5638
nomisec WORKING POC 16 stars
by ret2jazzy · remote
https://github.com/ret2jazzy/Struts-Apache-ExploitPack
nomisec WORKING POC 16 stars
by win3zz · remote
https://github.com/win3zz/CVE-2017-5638
nomisec WORKING POC 14 stars
by jrrdev · poc
https://github.com/jrrdev/cve-2017-5638
github WORKING POC 14 stars
by xbl3 · poc
https://github.com/xbl3/awesome-cve-poc_qazbnm456/tree/master/CVE-2017-5638.md
nomisec WORKING POC 13 stars
by sUbc0ol · remote
https://github.com/sUbc0ol/Apache-Struts2-RCE-Exploit-v2-CVE-2017-5638
nomisec WORKING POC 11 stars
by Iletee · remote
https://github.com/Iletee/struts2-rce
nomisec WORKING POC 10 stars
by tahmed11 · remote
https://github.com/tahmed11/strutsy
nomisec WRITEUP 8 stars
by initconf · poc
https://github.com/initconf/CVE-2017-5638_struts
nomisec WORKING POC 7 stars
by payatu · remote
https://github.com/payatu/CVE-2017-5638
nomisec WORKING POC 6 stars
by 0x00-0x00 · remote
https://github.com/0x00-0x00/CVE-2017-5638
nomisec WORKING POC 3 stars
by iampetru · remote
https://github.com/iampetru/PoC-CVE-2017-5638
nomisec WORKING POC 3 stars
by falcon-lnhg · remote
https://github.com/falcon-lnhg/StrutsShell
nomisec WORKING POC 3 stars
by Nithylesh · remote
https://github.com/Nithylesh/web-application-firewall-
nomisec WORKING POC 3 stars
by R4v3nBl4ck · remote
https://github.com/R4v3nBl4ck/Apache-Struts-2-CVE-2017-5638-Exploit-
nomisec SCANNER 2 stars
by andypitcher · poc
https://github.com/andypitcher/check_struts
nomisec WORKING POC 2 stars
by lolwaleet · poc
https://github.com/lolwaleet/ExpStruts
nomisec STUB 2 stars
by opt9 · poc
https://github.com/opt9/Strutscli
nomisec STUB 2 stars
by opt9 · remote
https://github.com/opt9/Strutshock
nomisec WORKING POC 2 stars
by Greynad · remote
https://github.com/Greynad/struts2-jakarta-inject
nomisec WORKING POC 2 stars
by aljazceru · remote
https://github.com/aljazceru/CVE-2017-5638-Apache-Struts2
nomisec WORKING POC 1 stars
by haxerr9 · remote
https://github.com/haxerr9/CVE-2017-5638
nomisec WORKING POC 1 stars
by ggolawski · remote
https://github.com/ggolawski/struts-rce
nomisec WORKING POC 1 stars
by kloutkake · poc
https://github.com/kloutkake/CVE-2017-5638-PoC
nomisec WORKING POC 1 stars
by un4ckn0wl3z · remote
https://github.com/un4ckn0wl3z/CVE-2017-5638
nomisec WORKING POC 1 stars
by ACharaf06 · remote
https://github.com/ACharaf06/CVE-2017-5638-Attack-and-Defense
nomisec WORKING POC 1 stars
by sighup1 · poc
https://github.com/sighup1/cybersecurity-struts2
nomisec WORKING POC 1 stars
by ludy-dev · remote
https://github.com/ludy-dev/XworkStruts-RCE
nomisec WORKING POC 1 stars
by KarzsGHR · poc
https://github.com/KarzsGHR/S2-046_S2-045_POC
nomisec WORKING POC 1 stars
by jpacora · remote
https://github.com/jpacora/Struts2Shell
nomisec WORKING POC 1 stars
by oktavianto · poc
https://github.com/oktavianto/CVE-2017-5638-Apache-Struts2
nomisec WORKING POC 1 stars
by Masahiro-Yamada · poc
https://github.com/Masahiro-Yamada/OgnlContentTypeRejectorValve
nomisec WORKING POC 1 stars
by m3ssap0 · remote
https://github.com/m3ssap0/struts2_cve-2017-5638
nomisec WORKING POC 1 stars
by riyazwalikar · remote
https://github.com/riyazwalikar/struts-rce-cve-2017-5638
nomisec WORKING POC 1 stars
by jongmartinez · remote
https://github.com/jongmartinez/CVE-2017-5638
nomisec WORKING POC 1 stars
by jptr218 · remote
https://github.com/jptr218/struts_hack
nomisec WORKING POC
by Xernary · poc
https://github.com/Xernary/CVE-2017-5638-POC
nomisec WORKING POC
by sonatype-workshops · remote
https://github.com/sonatype-workshops/struts2-rce
nomisec WORKING POC
by testpilot031 · remote
https://github.com/testpilot031/vulnerability_struts-2.3.31
nomisec WORKING POC
by readloud · remote
https://github.com/readloud/CVE-2017-5638
nomisec WRITEUP
by Tankirat · remote
https://github.com/Tankirat/CVE-2017-5638
nomisec WORKING POC
by mritunjay-k · remote
https://github.com/mritunjay-k/CVE-2017-5638
gitlab WORKING POC
by luispereira2024 · remote
https://gitlab.com/luispereira2024/struts2-rce
nomisec WORKING POC
by QHxDr-dz · remote
https://github.com/QHxDr-dz/CVE-2017-5638
nomisec STUB
by toothbrushsoapflannelbiscuits · poc
https://github.com/toothbrushsoapflannelbiscuits/cve-2017-5638
nomisec WORKING POC
by joidiego · poc
https://github.com/joidiego/Detection-struts-cve-2017-5638-detector
nomisec SCANNER
by jrrombaldo · remote
https://github.com/jrrombaldo/CVE-2017-5638
nomisec WRITEUP
by donaldashdown · poc
https://github.com/donaldashdown/Common-Vulnerability-and-Exploit
nomisec WORKING POC
by FredBrave · remote
https://github.com/FredBrave/CVE-2017-5638-ApacheStruts2.3.5
nomisec WORKING POC
by Badbird3 · remote
https://github.com/Badbird3/CVE-2017-5638
nomisec WORKING POC
by gsfish · poc
https://github.com/gsfish/S2-Reaper
nomisec WORKING POC
by btamburi · poc
https://github.com/btamburi/strutszeiro
nomisec STUB
by homjxi0e · poc
https://github.com/homjxi0e/CVE-2017-5638
nomisec SCANNER
by invisiblethreat · poc
https://github.com/invisiblethreat/strutser
nomisec WORKING POC
by sjitech · remote
https://github.com/sjitech/test_struts2_vulnerability_CVE-2017-5638
nomisec WORKING POC
by SpiderMate · remote
https://github.com/SpiderMate/Stutsfi
nomisec WORKING POC
by random-robbie · remote
https://github.com/random-robbie/CVE-2017-5638
nomisec WORKING POC
by mcassano · remote
https://github.com/mcassano/cve-2017-5638
nomisec WORKING POC
by cafnet · remote
https://github.com/cafnet/apache-struts-v2-CVE-2017-5638
nomisec WORKING POC
by leandrocamposcardoso · remote
https://github.com/leandrocamposcardoso/CVE-2017-5638-Mass-Exploit
gitlab WORKING POC
by iletee2 · poc
https://gitlab.com/iletee2/cve-2017-5638
gitlab WORKING POC
by HokieGeek · poc
https://gitlab.com/HokieGeek/struts2-rce
gitlab WORKING POC
by philaruff · poc
https://gitlab.com/philaruff/struts2-rce
nomisec WORKING POC
by timothyjxhn · poc
https://github.com/timothyjxhn/DeliberatelyVulnerableWebApp
nomisec WORKING POC
by smancke · poc
https://github.com/smancke/CVE-2017-5638
nomisec WORKING POC
by bongbongco · remote
https://github.com/bongbongco/cve-2017-5638
nomisec WORKING POC
by soufiane-benchahyd · poc
https://github.com/soufiane-benchahyd/vulhub-struts2
nomisec WORKING POC
by c002 · poc
https://github.com/c002/Apache-Struts
nomisec WRITEUP
by eeehit · poc
https://github.com/eeehit/CVE-2017-5638
nomisec WORKING POC
by mfdev-solution · poc
https://github.com/mfdev-solution/Exploit-CVE-2017-5638
nomisec WORKING POC
by bhagdave · remote
https://github.com/bhagdave/CVE-2017-5638
nomisec WORKING POC
by Aasron · remote
https://github.com/Aasron/Struts2-045-Exp
nomisec WORKING POC
by sUbc0ol · remote
https://github.com/sUbc0ol/Apache-Struts-CVE-2017-5638-RCE-Mass-Scanner
nomisec WRITEUP
by MuhammadAbdullah192 · poc
https://github.com/MuhammadAbdullah192/CVE-2017-5638-Remote-Code-Execution-Apache-Struts2-EXPLOITATION
nomisec WORKING POC
by kaylertee · poc
https://github.com/kaylertee/Computer-Security-Equifax-2017
gitlab WORKING POC
by sabley · poc
https://gitlab.com/sabley/struts2-rce
gitlab WORKING POC
by bryanwhyte · poc
https://gitlab.com/bryanwhyte/struts2-rce
gitlab WORKING POC
by sabley1 · poc
https://gitlab.com/sabley1/struts2-rce
nomisec WORKING POC
by colorblindpentester · remote
https://github.com/colorblindpentester/CVE-2017-5638
nomisec WORKING POC
by injcristianrojas · remote
https://github.com/injcristianrojas/cve-2017-5638
nomisec WORKING POC
by Xhendos · poc
https://github.com/Xhendos/CVE-2017-5638
exploitdb WORKING POC VERIFIED
by Vex Woo · pythonwebappslinux
https://www.exploit-db.com/exploits/41570
metasploit WORKING POC EXCELLENT
by Nike.Zheng, Nixawk, Chorder, egypt, Jeffrey Martin · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/struts2_content_type_ognl.rb
exploitdb WORKING POC VERIFIED
by Metasploit · rubyremotemultiple
https://www.exploit-db.com/exploits/41614

Nuclei Templates (1)

Apache Struts 2 - Remote Command Execution
CRITICALVERIFIEDby Random_Robbie
Shodan: html:"Apache Struts" || http.title:"struts2 showcase" || http.html:"struts problem report" || http.html:"apache struts"
FOFA: body="struts problem report" || title="struts2 showcase" || body="apache struts"

References (34)

... and 14 more

Scores

CVSS v3 9.8
EPSS 0.9427
EPSS Percentile 99.9%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation Intel

CISA KEV 2021-11-03
VulnCheck KEV 2017-03-11
InTheWild.io 2021-02-24
ENISA EUVD EUVD-2018-0625
Ransomware Use Confirmed

Classification

CWE
CWE-755
Status draft

Affected Products (21)

apache/struts < 2.3.32
ibm/storwize_v3500_firmware
ibm/storwize_v3500_firmware
ibm/storwize_v5000_firmware
ibm/storwize_v5000_firmware
ibm/storwize_v7000_firmware
ibm/storwize_v7000_firmware
lenovo/storage_v5030_firmware
lenovo/storage_v5030_firmware
hp/server_automation
hp/server_automation
hp/server_automation
hp/server_automation
hp/server_automation
oracle/weblogic_server
... and 6 more

Timeline

Published Mar 11, 2017
KEV Added Nov 03, 2021
Tracked Since Feb 18, 2026