CVE-2017-5638
100Vexday Risk Score
Patch now. It under exploitation confirmed by CISA and has a working public exploit.
ssvc Actcvss 9.8epss 100%
from disclosure to weapon0 days
Published on NVDMar 11
1st PoCMar 7
metasploitMar 7
CISA KEV+1698d
exploitation probability
100%top 1% of all CVEs
observed exploitation
yesCISA + VulnCheck
145 public exploit(s)
Action required by CISAfederal deadline: 2022-05-03
Apply updates per vendor instructions.
Versions
Affected
maven/org.apache.struts:struts2-core >= 2.3.0, <= 2.3.31; maven/org.apache.struts:struts2-core >= 2.5.0, <= 2.5.10
Fixed in
maven/org.apache.struts:struts2-core 2.3.32; maven/org.apache.struts:struts2-core 2.5.10.1
Researched and written with AI from the vendor advisory and public analysis, with the sources above. Always confirm the fixed version in the official advisory before acting.
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
Apache Software Foundation · Apache Strutspublic PoCs found — 145✓ VexDay Proof
exploitdb✓ VexDay Proofwww.exploit-db.com/exploits/41614exploitdb✓ VexDay Proofwww.exploit-db.com/exploits/41570githubgithub.com/mazen160/struts-pwn★ 442githubgithub.com/Flyteas/Struts2-045-Exp★ 61githubgithub.com/immunio/apache-struts2-CVE-2017-5638★ 35githubgithub.com/jas502n/S2-045-EXP-POC-TOOLS★ 25githubgithub.com/PolarisLab/S2-045★ 23githubgithub.com/xsscx/cve-2017-5638★ 21githubgithub.com/jas502n/st2-046-poc★ 21githubgithub.com/ret2jazzy/Struts-Apache-ExploitPack★ 16githubgithub.com/win3zz/CVE-2017-5638★ 16githubgithub.com/jrrdev/cve-2017-5638★ 14githubgithub.com/sUbc0ol/Apache-Struts2-RCE-Exploit-v2-CVE-2017-5638★ 13githubgithub.com/Iletee/struts2-rce★ 11githubgithub.com/tahmed11/strutsy★ 10githubgithub.com/payatu/CVE-2017-5638★ 8githubgithub.com/initconf/CVE-2017-5638_struts★ 8githubgithub.com/0x00-0x00/CVE-2017-5638★ 6githubgithub.com/R4v3nBl4ck/Apache-Struts-2-CVE-2017-5638-Exploit-★ 3githubgithub.com/falcon-lnhg/StrutsShell★ 3githubgithub.com/Nithylesh/web-application-firewall-★ 3githubgithub.com/iampetru/PoC-CVE-2017-5638★ 3githubgithub.com/andypitcher/check_struts★ 2githubgithub.com/Greynad/struts2-jakarta-inject★ 2githubgithub.com/opt9/Strutshock★ 2githubgithub.com/opt9/Strutscli★ 2githubgithub.com/Kouf320/docker-lab-cve-2017-5638-cve-2021-41773★ 2githubgithub.com/aljazceru/CVE-2017-5638-Apache-Struts2★ 2githubgithub.com/lolwaleet/ExpStruts★ 2githubgithub.com/sighup1/cybersecurity-struts2★ 1githubgithub.com/ludy-dev/XworkStruts-RCE★ 1githubgithub.com/jongmartinez/CVE-2017-5638★ 1githubgithub.com/jptr218/struts_hack★ 1githubgithub.com/oktavianto/CVE-2017-5638-Apache-Struts2★ 1githubgithub.com/KarzsGHR/S2-046_S2-045_POC★ 1githubgithub.com/un4ckn0wl3z/CVE-2017-5638★ 1githubgithub.com/kloutkake/CVE-2017-5638-PoC★ 1githubgithub.com/jpacora/Struts2Shell★ 1githubgithub.com/riyazwalikar/struts-rce-cve-2017-5638★ 1githubgithub.com/haxerr9/CVE-2017-5638★ 1githubgithub.com/ggolawski/struts-rce★ 1githubgithub.com/ACharaf06/CVE-2017-5638-Attack-and-Defense★ 1githubgithub.com/m3ssap0/struts2_cve-2017-5638★ 1githubgithub.com/Masahiro-Yamada/OgnlContentTypeRejectorValve★ 1githubgithub.com/colorblindpentester/CVE-2017-5638★ 0githubgithub.com/bongbongco/cve-2017-5638★ 0githubgithub.com/btamburi/strutszeiro★ 0githubgithub.com/sjitech/test_struts2_vulnerability_CVE-2017-5638★ 0githubgithub.com/jrrombaldo/CVE-2017-5638★ 0githubgithub.com/gsfish/S2-Reaper★ 0githubgithub.com/mcassano/cve-2017-5638★ 0githubgithub.com/Aasron/Struts2-045-Exp★ 0githubgithub.com/SpiderMate/Stutsfi★ 0githubgithub.com/smancke/CVE-2017-5638★ 0githubgithub.com/homjxi0e/CVE-2017-5638★ 0githubgithub.com/eeehit/CVE-2017-5638★ 0githubgithub.com/sUbc0ol/Apache-Struts-CVE-2017-5638-RCE-Mass-Scanner★ 0githubgithub.com/Xhendos/CVE-2017-5638★ 0githubgithub.com/TamiiLambrado/Apache-Struts-CVE-2017-5638-RCE-Mass-Scanner★ 0githubgithub.com/invisiblethreat/strutser★ 0githubgithub.com/c002/Apache-Struts★ 0githubgithub.com/donaldashdown/Common-Vulnerability-and-Exploit★ 0githubgithub.com/cafnet/apache-struts-v2-CVE-2017-5638★ 0githubgithub.com/leandrocamposcardoso/CVE-2017-5638-Mass-Exploit★ 0githubgithub.com/random-robbie/CVE-2017-5638★ 0githubgithub.com/injcristianrojas/cve-2017-5638★ 0githubgithub.com/sonatype-workshops/struts2-rce★ 0githubgithub.com/Badbird3/CVE-2017-5638★ 0githubgithub.com/testpilot031/vulnerability_struts-2.3.31★ 0githubgithub.com/readloud/CVE-2017-5638★ 0githubgithub.com/Tankirat/CVE-2017-5638★ 0githubgithub.com/mfdev-solution/Exploit-CVE-2017-5638★ 0githubgithub.com/mritunjay-k/CVE-2017-5638★ 0githubgithub.com/FredBrave/CVE-2017-5638-ApacheStruts2.3.5★ 0githubgithub.com/Xernary/CVE-2017-5638-POC★ 0githubgithub.com/timothyjxhn/DeliberatelyVulnerableWebApp★ 0githubgithub.com/toothbrushsoapflannelbiscuits/cve-2017-5638★ 0githubgithub.com/QHxDr-dz/CVE-2017-5638★ 0githubgithub.com/joidiego/Detection-struts-cve-2017-5638-detector★ 0githubgithub.com/MuhammadAbdullah192/CVE-2017-5638-Remote-Code-Execution-Apache-Struts2-EXPLOITATION★ 0githubgithub.com/kaylertee/Computer-Security-Equifax-2017★ 0githubgithub.com/FozilCV/Apache-Struts2-CVE-2017-5638★ 0githubgithub.com/soufiane-benchahyd/vulhub-struts2★ 0githubgithub.com/AIPEACS/SC3010-Computer-Security★ 0githubgithub.com/Majaktech/apache-struts-cve-2017-5638-project★ 0githubgithub.com/Dungsocool/CVE-2017-5638★ 0cve_referencewww.exploit-db.com/exploits/41614/unverifiedvulncheckvulncheck.com/xdb/a920eeb5ee6aunverifiedvulncheckvulncheck.com/xdb/30dc525b1c57unverifiedvulncheckvulncheck.com/xdb/5dfed5d68cbcunverifiedvulncheckvulncheck.com/xdb/1b42cf9134f3unverifiedvulncheckvulncheck.com/xdb/df60c287f1cdunverifiedvulncheckvulncheck.com/xdb/b5c1ab2d5bc5unverifiedvulncheckvulncheck.com/xdb/38dd7dd03007unverifiedvulncheckvulncheck.com/xdb/92c9400dcff7unverifiedvulncheckvulncheck.com/xdb/34e73d61d621unverifiedvulncheckvulncheck.com/xdb/5e602d793141unverifiedvulncheckvulncheck.com/xdb/961d20815cd2unverifiedvulncheckvulncheck.com/xdb/b0439ebbc0c0unverifiedvulncheckvulncheck.com/xdb/ab1e48aab793unverifiedvulncheckvulncheck.com/xdb/fecafad12e6cunverifiedvulncheckvulncheck.com/xdb/dcc67ac85fddunverifiedvulncheckvulncheck.com/xdb/2ee648e8c5abunverifiedvulncheckvulncheck.com/xdb/43cd5602564cunverifiedvulncheckvulncheck.com/xdb/337989a2a577unverifiedvulncheckvulncheck.com/xdb/b7fcc6ca47d8unverifiedvulncheckvulncheck.com/xdb/513b57e55c0funverifiedvulncheckvulncheck.com/xdb/3a544bce6facunverifiedvulncheckvulncheck.com/xdb/2372c571d51bunverifiedvulncheckvulncheck.com/xdb/9d0f3b1cdffcunverifiedvulncheckvulncheck.com/xdb/5de84d7d0047unverifiedvulncheckvulncheck.com/xdb/1aeac5628880unverifiedvulncheckvulncheck.com/xdb/5a31e2b88d8bunverifiedvulncheckvulncheck.com/xdb/92284df22d05unverifiedvulncheckvulncheck.com/xdb/bad29a83176eunverifiedvulncheckvulncheck.com/xdb/3c19ff65296aunverifiedvulncheckvulncheck.com/xdb/7609b3e7cb98unverifiedvulncheckvulncheck.com/xdb/af94773df67eunverifiedvulncheckvulncheck.com/xdb/f47a53762ef3unverifiedvulncheckvulncheck.com/xdb/20280d4b350bunverifiedvulncheckvulncheck.com/xdb/fd5f95144a75unverifiedvulncheckvulncheck.com/xdb/5773e4ea569bunverifiedvulncheckvulncheck.com/xdb/c4cfff7455b8unverifiedvulncheckvulncheck.com/xdb/0cd00e5128ddunverifiedvulncheckvulncheck.com/xdb/9d3cbfdc257funverifiedvulncheckvulncheck.com/xdb/dbca6ea08b41unverifiedvulncheckvulncheck.com/xdb/fb291c123615unverifiedvulncheckvulncheck.com/xdb/9c7436629672unverifiedvulncheckvulncheck.com/xdb/bbdb72777ec9unverifiedvulncheckvulncheck.com/xdb/1992a6b42411unverifiedvulncheckvulncheck.com/xdb/9b37ededd8acunverifiedvulncheckvulncheck.com/xdb/fe25757247c8unverifiedvulncheckvulncheck.com/xdb/1e4bb0c90cb0unverifiedvulncheckvulncheck.com/xdb/24ab649cd1daunverifiedvulncheckvulncheck.com/xdb/9eeabd073ffeunverifiedvulncheckvulncheck.com/xdb/f0dd214c0a71unverifiedvulncheckvulncheck.com/xdb/fae964aee837unverifiedvulncheckvulncheck.com/xdb/5bf0668927e9unverifiedvulncheckvulncheck.com/xdb/927ddcc5b795unverifiedvulncheckvulncheck.com/xdb/d0691e1ab72cunverifiedvulncheckvulncheck.com/xdb/7f001c599f37unverifiedvulncheckvulncheck.com/xdb/43a16c730cfdunverifiedcve_referencepacketstormsecurity.com/files/141494/S2-45-poc.py.txtunverifiedcve_referenceexploit-db.com/exploits/41570unverifiedvulncheckvulncheck.com/xdb/cf28f48b8a4bunverified⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.
References
http://blog.talosintelligence.com/2017/03/apache-0-day-exploited.htmlhttp://blog.trendmicro.com/trendlabs-security-intelligence/cve-2017-5638-apache-struts-vulnerability-remote-code-execution/https://arstechnica.com/security/2017/03/critical-vulnerability-under-massive-attack-imperils-high-impact-sites/https://cwiki.apache.org/confluence/display/WW/S2-045https://cwiki.apache.org/confluence/display/WW/S2-046https://exploit-db.com/exploits/41570https://git1-us-west.apache.org/repos/asf?p=struts.git%3Ba=commit%3Bh=352306493971e7d5a756d61780d57a76eb1f519ahttps://git1-us-west.apache.org/repos/asf?p=struts.git%3Ba=commit%3Bh=6b8272ce47160036ed120a48345d9aa884477228https://github.com/mazen160/struts-pwnhttps://github.com/rapid7/metasploit-framework/issues/8064https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03733en_ushttps://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03749en_us