Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2017-5638: Apache Struts 2 Jakarta Multipart Parser Remote Code Execution

Published Mar 11, 2017 · Updated 29 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS100.0%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendors
Aruba NetworksNetAppOracle CorporationHewlett Packard EnterpriseLenovoInternational Business MachinesApache Software Foundation
IdentifiersCVE-2017-5638CWE-917
Also known ass2_045

CVE-2017-5638 is an unauthenticated remote code execution vulnerability in the Jakarta Multipart parser used by Apache Struts 2. It affects Struts 2.3.x before 2.3.32 and 2.5.x before 2.5.10.1. Incorrect exception handling and error-message generation during multipart file-upload processing allow attacker-controlled HTTP header values to be evaluated as OGNL expressions. Crafted Content-Type, Content-Disposition, or Content-Length headers can consequently trigger arbitrary operating-system command execution. Exploitation was observed in the wild in March 2017.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises the affected application's confidentiality, integrity, and availability through arbitrary command execution with the permissions of the application-server process. Attackers can access or modify accessible data, install malware, and disrupt services. Observed exploitation has supported backdoor installation, DDoS bot enrollment, cryptocurrency mining, ransomware deployment, and initial access for subsequent intrusions. The vulnerability was exploited in the Equifax breach.

Mitigation

If you can’t patch tonight, do this now.

Where immediate upgrading is infeasible, use intrusion-prevention coverage for exploitation attempts, including Snort signatures 41818 and 41819, and apply the applicable workaround documented in Apache advisories S2-045 and S2-046. Restrict network access to affected applications or temporarily remove them from exposure where operationally feasible. Detection and filtering are temporary controls, not substitutes for upgrading.

Remediation

Patch, then assume compromise.

Upgrade affected Apache Struts deployments to a supported, patched release. The historical minimum fixed versions are 2.3.32 for the 2.3.x branch and 2.5.10.1 for the 2.5.x branch. Inventory applications and third-party products embedding Struts, update their affected dependencies, and verify the deployed versions. Patching does not remove an existing compromise; investigate systems that were exposed while vulnerable.

Public exploits

Exploits

28 exploits validated by Mallory's analysis. Hidden: 12 rejected by Mallory's analysis as not a working exploit; 3 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.

View more in app →
struts2_content_type_ognl.rbThis repository contains a single Metasploit module: 'struts2_content_type_ognl.rb', which exploits the Apache Struts 2 Content-Type OGNL injection vulnerability (CVE-2017-5638). The exploit targets Struts 2 versions 2.3.5 through 2.3.31 and 2.5 through 2.5.10, allowing remote code execution via a specially crafted Content-Type HTTP header. The module is highly weaponized, supporting both command execution and dropping native payloads (executables) to the server. The attacker can specify the HTTP method and the target URI, with the default endpoint set to '/struts2-showcase/'. The exploit is part of the Metasploit framework and leverages its payload system, making it flexible and powerful for post-exploitation. The code is well-structured, with clear separation of checking, exploitation, and payload delivery logic. No hardcoded IPs or domains are present; the main fingerprintable endpoint is the configurable TARGETURI. The module is suitable for both Unix and Windows targets.Disclosed Mar 7, 2017 · Framework: metasploit · ruby · networkWeaponizedStruts2-045-ExpThis repository is an exploit toolkit for Apache Struts2 S2-045 (CVE-2017-5638), a critical remote code execution vulnerability. The project is structured as a Visual Studio C++ solution, likely providing a GUI tool to exploit the vulnerability. The main payload is a JSP webshell ('default.jsp') that supports a wide range of post-exploitation features, including command execution, file upload/download, file management, and database access. The webshell is compatible with the Chopper webshell client and uses the password 's2045@exp'. The README confirms support for both HTTP and HTTPS targets and arbitrary ports. The exploit is operational and provides persistent access to compromised servers. The repository is intended for educational and research purposes, as stated in the README.Flyteas · Disclosed Mar 7, 2017 · cpp · jsp · networkOperationalS2-045-EXP-POC-TOOLSThis repository provides operational exploit code for CVE-2017-5638 (Apache Struts 2 S2-045 remote code execution vulnerability). The exploit leverages OGNL injection via a crafted Content-Type header in HTTP requests to execute arbitrary system commands on vulnerable Struts 2 servers. The main exploit scripts are written in Python (cmd.py and poc_test.py), allowing interactive command execution on the target. Additional payloads for Windows are included: a VBScript (download.vbs) and a batch command (一条cmd远程下载.txt) to download and execute files (e.g., lcx.exe, ngrok.sh) from a remote server (121.42.56.8). The repository also contains lists of potential target URLs and action keywords for identifying vulnerable endpoints. Overall, the repository is structured to facilitate both exploitation and post-exploitation payload delivery, with a focus on Windows post-exploitation utilities.jas502n · Disclosed Mar 9, 2017 · python · vbscript · networkOperationalcve-2017-5638This repository provides multiple proof-of-concept (PoC) scripts for exploiting CVE-2017-5638, a critical remote code execution vulnerability in Apache Struts 2. The main exploit script (cve-2017-5638.py) is a Python program that sends a specially crafted HTTP request to a target URL, injecting a malicious OGNL expression via the Content-Type header. This payload enables arbitrary command execution on the vulnerable server, as demonstrated by the ability to list directories and files on the target system. The repository also includes a one-line Python PoC (one-line-poc.py) and a curl command example (curl-poc-for-cve-2017-5638.txt), both of which use the same OGNL payload. The sample-output.txt file shows successful exploitation, including directory listings from a Windows server. The exploit is operational, allowing the user to specify arbitrary commands to execute on the target. The repository targets Apache Struts 2 installations vulnerable to CVE-2017-5638 and is intended for security testing and demonstration purposes.xsscx · Disclosed Mar 10, 2017 · python · bash · networkOperationalapache-struts2-CVE-2017-5638This repository contains four Python exploit scripts (exploit.py, exploit2.py, exploit3.py, exploit4.py) targeting Apache Struts2 CVE-2017-5638, a critical remote code execution vulnerability. Each script crafts a malicious OGNL payload and injects it via the Content-Type HTTP header to a demo Struts2 application endpoint (http://127.0.0.1:8080/struts2-showcase-2.3.12/showcase.action). The payloads enable arbitrary command execution on the server. The scripts differ slightly in their OGNL payload construction and execution method. 'exploit3.py' is the most advanced, handling both Windows and Linux command execution and streaming output back to the attacker. 'exploit4.py' demonstrates header injection by adding a custom 'PWNED' header. The repository is a demonstration of the exploit and does not include detection or mitigation scripts. The README provides references to the vulnerable application and related exploit discussions.immunio · Disclosed Mar 10, 2017 · python · networkOperationalstruts-pwnThis repository contains an operational exploit for Apache Struts2 CVE-2017-5638, a critical remote code execution vulnerability. The main exploit script, 'struts-pwn.py', is a Python tool that allows users to test single or multiple URLs for the vulnerability and, if vulnerable, execute arbitrary system commands on the target server. The exploit works by sending a specially crafted OGNL payload in the 'Content-Type' HTTP header, which is interpreted by the vulnerable Struts2 server, leading to command execution. The script supports both detection (checking for vulnerability) and exploitation (executing commands), and can process a list of targets from a file. The repository is structured with a main Python script, a requirements file listing dependencies (argparse, requests), a README with usage instructions and legal disclaimer, and a license file. The exploit is not part of a larger framework and is self-contained. The primary attack vector is network-based, targeting web servers running vulnerable Struts2 endpoints.mazen160 · Disclosed Mar 12, 2017 · python · networkOperationalStruts-Apache-ExploitPackThis repository provides a Bash-based exploit and mass scanner for the Apache Struts 2 vulnerability CVE-2017-5638. The structure includes two main directories: 'Exploiter' and 'MassScanner'. - 'Exploiter/Exploit.sh' is an interactive exploit script that takes a target URL (e.g., http://site.com/log.action) and allows the user to execute arbitrary shell commands on the vulnerable server by sending a specially crafted HTTP request exploiting OGNL injection in the Content-Type header. The output of the command is returned to the user. - 'MassScanner/Scan.sh' is a mass scanning script that takes a file containing a list of URLs and checks each for vulnerability to CVE-2017-5638 by sending a test payload and looking for a specific response. It reports which URLs are vulnerable. - README files provide usage instructions for both scripts, and the root README clarifies the purpose: to detect and exploit the Apache Struts 2 vulnerability. No hardcoded IP addresses or domains are present, but the scripts require the user to supply target URLs. The exploit is operational, providing real command execution on vulnerable targets, and is not part of a larger exploitation framework.ret2jazzy · Disclosed Mar 12, 2017 · bash · networkOperationalcve-2017-5638This repository provides a complete environment for demonstrating and exploiting CVE-2017-5638, a critical remote code execution vulnerability in Apache Struts2 (S2-045). The structure includes a Dockerfile and supporting scripts to build and run a vulnerable Struts2 web application (Java, Spring Boot, Struts2 2.5) on port 8080. The main exploit is implemented in 'exploit/exploit.py', a Python script that sends a specially crafted HTTP request to a target endpoint (e.g., /hello) with a malicious Content-Type header containing an OGNL expression. This expression triggers arbitrary command execution on the server. The repository also includes configuration files (pom.xml, web.xml, struts.xml) and a sample vulnerable JSP page. The exploit is operational: it allows the attacker to specify any system command to execute and returns the output. The README provides clear instructions for setting up the vulnerable environment and running the exploit. No detection-only scripts are present; the exploit is functional and demonstrates real-world impact.jrrdev · Disclosed Mar 15, 2017 · python · java · networkOperationalApache-Struts-CVE-2017-5638-RCE-Mass-ScannerThis repository contains a Python exploit script (CVE-2017-5638.py) targeting the Apache Struts2 remote code execution vulnerability (CVE-2017-5638). The script reads a list of target URLs from a file provided as a command-line argument. For each target, it provides an interactive shell-like prompt, allowing the user to send arbitrary system commands to the vulnerable server. The exploit works by sending a specially crafted HTTP request with a malicious OGNL expression in the Content-Type header, triggering command execution on the server. The script is operational and provides real command execution capabilities, returning the output to the user. The README is minimal and only states the repository's purpose as a mass scanner for the vulnerability.sUbc0ol · Disclosed Jun 30, 2017 · python · networkOperationalApache-Struts2-RCE-Exploit-v2-CVE-2017-5638This repository contains a Python script (CVE-2017-5638.py) that exploits the Apache Struts2 CVE-2017-5638 remote code execution vulnerability. The script reads a list of target URLs from a file provided as a command-line argument and attempts to exploit each by sending a specially crafted HTTP request with a malicious Content-Type header. The payload leverages OGNL injection to execute arbitrary system commands on the target server. The script is multithreaded, launching a new thread for each target. The README is minimal and provides only the exploit's name. The repository is focused and operational, providing a working exploit for remote code execution against vulnerable Apache Struts2 installations.sUbc0ol · Disclosed Jun 30, 2017 · python · networkOperationalCVE-2017-5638This repository contains a Bash script exploit for CVE-2017-5638, a critical remote code execution vulnerability in Apache Struts2 (versions 2.3.5 < 2.3.32 and 2.5 < 2.5.10.1). The exploit works by sending a specially crafted HTTP POST request to a Struts2 file upload endpoint, injecting a malicious OGNL expression in the Content-Type header to execute arbitrary system commands on the server. The script takes two arguments: the target URL and the command to execute. It then constructs and sends the exploit payload, displaying the output of the executed command. The repository is simple, containing only a README and the exploit script, and is operational with a customizable payload. The main attack vector is network-based, targeting HTTP endpoints exposed by vulnerable Struts2 applications.win3zz · Disclosed May 13, 2018 · bash · networkOperationalstruts2-rceThis repository is a complete exploit demonstration for CVE-2017-5638, a critical remote code execution vulnerability in Apache Struts2 (S2-045). The structure includes a vulnerable Struts2 REST showcase web application (Java, Maven, JSP, XML), Dockerfile for containerized deployment, and a Python exploit script (exploit.py). The exploit works by sending a specially crafted HTTP request with a malicious Content-Type header containing an OGNL payload, which is interpreted by the vulnerable Struts2 server, resulting in arbitrary command execution. The README provides clear instructions for building and running the vulnerable app in Docker, and for using the exploit script to execute arbitrary commands on the server. The repository also contains test cases for the web application, but the main exploit capability is in exploit.py, which targets the /orders/<id> endpoint of the running Struts2 app. The exploit is operational, providing real RCE, and is not just a detection script. The endpoints and file paths in the repo are typical for Struts2 Java webapps and Dockerized deployments. This repository is a practical demonstration environment for security testing and research on Struts2 RCE vulnerabilities.Iletee · Disclosed Jun 26, 2018 · python · java · networkOperationalCVE-2017-5638This repository contains a Python script (strustxp.py) that exploits the Apache Struts 2 vulnerability CVE-2017-5638, which allows for remote code execution via crafted Content-Type headers in HTTP requests. The script provides a shell-like interface, prompting the user for commands, which are then injected into the target server using a malicious OGNL payload. The exploit targets web applications running vulnerable versions of Apache Struts 2, specifically those exposing endpoints that accept multipart/form-data (commonly .action URLs). The script supports the use of an HTTP proxy for traffic routing. The README is minimal and only references the CVE and a Google dork for finding potential targets. The main exploit logic is contained in strustxp.py, which is the only code file in the repository.un4ckn0wl3z · Disclosed Nov 22, 2018 · python · networkOperationalweb-application-firewall-This repository contains a demonstration of a Web Application Firewall (WAF) and an exploit script for Apache Struts 2 CVE-2017-5638. The main files are: - server.py: Implements a simple Flask web server with a WAF middleware that blocks requests containing certain suspicious patterns. This is for demonstration and does not represent a real-world WAF. - vulnerable.py: A Python script that checks if a given URL is vulnerable to CVE-2017-5638 and, if so, can execute arbitrary commands on the target server by exploiting the OGNL injection vulnerability in the Content-Type header. The script allows the user to check for vulnerability or execute a specified command remotely. The exploit is operational: it provides a working payload for remote command execution and can be used to test or exploit vulnerable Apache Struts 2 instances. The only hardcoded endpoint is the Flask demo server (http://127.0.0.1:5000/), but the exploit script is designed to target arbitrary URLs provided by the user. The repository is structured for educational and demonstration purposes, showing both a basic WAF concept and a real-world exploit.Nithylesh · Disclosed Jul 11, 2024 · python · networkOperationalCVE-2017-5638This repository contains a Python exploit script (CVE-2017-5638.py) targeting the Apache Struts 2 vulnerability CVE-2017-5638, which allows for remote code execution via OGNL injection in the Content-Type header of HTTP requests. The script requires the user to specify a target URL ending in '.action' (typical for Struts 2 endpoints) and a command to execute. It crafts a malicious Content-Type header containing OGNL expressions that, when processed by a vulnerable Struts 2 server, result in arbitrary command execution. The output of the command is returned in the HTTP response. The repository also includes a README.md with usage instructions and warnings. No hardcoded endpoints are present; the user supplies the target at runtime. The exploit is operational, providing real command execution if the target is vulnerable.haxerr9 · Disclosed Jun 7, 2025 · python · networkOperationalCVE-2017-5638-Remote-Code-Execution-Apache-Struts2-EXPLOITATIONThis repository contains a proof-of-concept exploit for CVE-2017-5638, a remote code execution vulnerability in Apache Struts2. The main file, 'exploit.py.txt', is a Python script that sends a specially crafted HTTP POST request to a Struts2 file upload endpoint. The exploit leverages an OGNL injection in the 'Content-Type' header to execute arbitrary system commands on the target server. The default payload executes 'ls /' (or the Windows equivalent) and returns the output. The script is operational and demonstrates successful exploitation if the target is vulnerable. The only hardcoded endpoint is 'http://localhost:8081/struts2-showcase/fileupload/multipleUploadUsingList.action', which can be modified to target other hosts. The repository is minimal, containing only a README and the exploit script.MuhammadAbdullah192 · Disclosed Sep 6, 2025 · python · networkOperationalCVE-2017-5638-Attack-and-DefenseThis repository is a comprehensive security lab for demonstrating and exploiting the Apache Struts2 S2-045 (CVE-2017-5638) vulnerability. The structure includes both a vulnerable application (Struts 2.3.31) and a patched application (Struts 6.3.x), each with their own Dockerfiles and source code. The vulnerable app exposes a file upload endpoint (/upload) that is susceptible to OGNL injection via a malicious Content-Type header, allowing remote code execution. The exploit is demonstrated via both a Bash script (demo_exploit.sh) and a Python script (exploit.py), which craft multipart/form-data POST requests with OGNL payloads in the Content-Type header to execute arbitrary system commands on the server. The repository also includes detailed documentation, a defense lab with WAF rules (nginx), and a simulator for testing detection patterns. The main exploit capability is remote code execution on the vulnerable Struts2 instance via network-accessible HTTP endpoints. The repository is well-structured for both offensive and defensive security training, with clear separation between vulnerable and patched components.ACharaf06 · Disclosed Dec 15, 2025 · java · xml · networkOperationalCVE-2017-5638-assignementThis repository provides a complete proof-of-concept (POC) environment and exploit for CVE-2017-5638, a critical remote code execution vulnerability in Apache Struts2. The repository contains a Dockerfile that builds a vulnerable environment using Ubuntu, Tomcat 9, and Apache Struts2 version 2.3.30, deploying the struts2-showcase application. The exploit itself is implemented in Python (exploit/CVE-2017-5638.py), which sends a specially crafted HTTP request to a target Struts2 endpoint, injecting an OGNL payload via the Content-Type header. This payload bypasses security restrictions and executes arbitrary OS commands on the server, returning the output in the HTTP response. The run.sh script automates the process of building the Docker image, running the vulnerable container, and executing the exploit against the local instance. Documentation is provided in README.md and a detailed technical explanation in docs/TECHNICAL_EXPLANATION.md. The exploit is operational, requiring a vulnerable Struts2 instance accessible over HTTP, and demonstrates real command execution on the target.louislafosse · Disclosed Jan 4, 2026 · python · bash · networkOperationalSC3010-Computer-SecurityThis repository is a complete educational recreation of CVE-2017-5638, the Apache Struts 2 OGNL injection vulnerability that leads to unauthenticated remote code execution. It is not just documentation: it contains a working PowerShell exploit, a vulnerable Java/Maven Struts2 backend pinned to Struts 2.3.28, and trimmed reference source files from Struts/XWork/OGNL that explain the exploit chain. Primary exploit capability: the PowerShell script in simulation/attack-script/exploit_cve_2017_5638.ps1 sends an HTTP POST to a Struts upload endpoint and places an OGNL payload in the Content-Type header. The payload abuses the multipart parser error path to reach LocalizedTextUtil.findText(), clears OgnlUtil blacklist sets, switches to OgnlContext.DEFAULT_MEMBER_ACCESS, and executes arbitrary OS commands via Runtime.getRuntime().exec(). The script supports a safe demo mode, full command execution, custom commands, and diagnostic stages. It also includes logic to capture command output and write it back into the HTTP response body, making the exploit immediately useful for verification and post-exploitation. Target surface: the simulated backend exposes /upload.action and /upload.jsp on localhost:8080. The vulnerable configuration is explicit in simulation/backend/src/main/resources/struts.xml, which sets struts.multipart.parser to jakarta, and in WEB-INF/web.xml, which maps the Struts filter to all paths. UploadAction.java is the nominal upload handler, but the exploit occurs before execute() is reached because multipart parsing happens during request wrapping. Repository structure: - simulation/attack-script/: operational exploit tooling in PowerShell, including an interactive launcher (run.ps1). - simulation/backend/: deployable vulnerable Struts2 webapp with Maven/Tomcat configuration, upload UI, action class, and a demo credential store in users.yaml. - struts-src-code/: curated excerpts of Dispatcher, MultiPartRequestWrapper, JakartaMultiPartRequest, PrepareOperations, StrutsPrepareAndExecuteFilter, ActionContext, OgnlUtil, and OgnlContext showing the exact vulnerable call chain and sandbox bypass primitives. - diagrams/ and markdown notes: explanatory material, attack-chain diagrams, and OGNL background. Notable post-exploitation objective: the repo models credential theft by storing fake usernames/passwords in data/users.yaml and providing a menu option that runs the command type data\users.yaml after RCE. Overall, this is an operational proof-of-concept exploit plus a lab environment for demonstrating and studying CVE-2017-5638 end to end.AIPEACS · Disclosed Apr 5, 2026 · powershell · java · web · networkOperationalSC3010-Computer-SecurityRepository is a self-contained educational recreation of CVE-2017-5638 (Apache Struts2 OGNL injection/RCE). It contains two main components: (1) a vulnerable Java/Maven Struts2 backend under simulation/backend and (2) a PowerShell exploit under simulation/attack-script. The backend intentionally pins Struts2 to 2.3.28 in pom.xml, enables the vulnerable Jakarta multipart parser in struts.xml, maps the Struts filter across all URLs in web.xml, and exposes /upload.action via UploadAction.java. The exploit does not rely on authentication or a valid file upload; it sends a crafted POST request whose Content-Type header contains OGNL. The payload clears OGNL exclusion lists, sets DEFAULT_MEMBER_ACCESS, executes an attacker-controlled OS command, captures output, and writes it back in the HTTP response. Demo mode uses arithmetic/string output to prove evaluation without OS command execution. The run.ps1 wrapper offers menu-driven execution including whoami, diagnostics, and a credential-exfiltration example using type data\users.yaml. Supporting files include upload.jsp and success.jsp for normal app behavior, UserService.java plus users.yaml as a mock sensitive data source, and markdown notes explaining OGNL injection and the Equifax context. Overall, this is a real exploit repository with an operational PoC and a matching vulnerable lab target, focused on unauthenticated web-based RCE and simple post-exploitation data theft.AIPEAC · Disclosed Apr 5, 2026 · powershell · java · web · networkOperationalattacker-lab-cve-2017-5638-cve-2021-41773-paperThis repository is a self-contained Docker attack-emulation lab rather than a single standalone exploit. It implements an operational multi-stage kill chain centered on two real vulnerabilities: CVE-2017-5638 against Apache Struts 2.3.28 for initial foothold, and CVE-2021-41773 against Apache HTTP Server 2.4.49 for path traversal and RCE on the final target. The repository structure is organized into: (1) attacker/exploits/, containing Bash scripts for recon, direct exploitation, foothold establishment, pivoting, and full-chain orchestration; (2) docker-compose.yml, which defines the lab topology with attacker, vulnerable targets, supporting infrastructure, and two Suricata IDS sidecars; (3) scripts/, which provide setup, attack dispatch, alert tailing, and teardown; and (4) Dockerfiles for the attacker, vulnerable web server, Struts host, and Suricata sensors. Main exploit capabilities: recon.sh performs ICMP sweep, TCP connect scans, service fingerprinting, HTTP HEAD banner grabs, and SSH probing across the 172.28.0.0/24 lab subnet. foothold_struts.sh delivers an OGNL injection in the Content-Type header to exploit Struts S2-045 and execute arbitrary shell commands via /bin/bash -c. exploit_cve_2021_41773.sh directly attacks Apache httpd 2.4.49 by first reading /etc/passwd through encoded traversal and then POSTing commands to /bin/sh through the vulnerable cgi-bin path, checking for uid=0 to indicate root compromise. pivot_struts_to_web.sh is the most notable lateral movement component: it uses the Struts RCE to run a base64-decoded Bash script on the compromised web-struts host, which then opens a raw TCP socket with /dev/tcp to web-vuln:80 and sends the CVE-2021-41773 exploit request from an internal source. Optional legacy scripts foothold_ssh.sh and pivot_attack.sh simulate credential abuse and SSH-based pivoting using sshpass. The exploit is real and functional within the intended lab. It is not merely a detector, although the repository also includes Suricata rules to observe the attack. The payloads are basic but operational Bash command-execution payloads, with hardcoded defaults and user-supplied command support. The web-vuln Dockerfile explicitly enables mod_cgi in Apache so the CVE-2021-41773 RCE path works. Overall, the repository’s purpose is to emulate attacker behavior and defender telemetry across a realistic multi-host environment, especially to demonstrate how initial access on one host can be chained into internal lateral movement and final compromise on another host.Kouf320 · Disclosed Apr 11, 2026 · bash · yaml · network · webOperationaledu-reconedu-recon is a Python 3.10+ reconnaissance, vulnerability-triage, and active assessment orchestrator aimed at education-sector engagements. It has 38 files, primarily Python modules, with `recon.py` as the CLI entry point and `run.sh` as a one-command launcher. Its stdlib web UI (`edurecon/webui.py`) exposes scan submission, live logs, findings, report/reproduction generation, and dump functions; it defaults to localhost but can be bound to all interfaces without authentication. The engine expands CIDRs through nmap ping sweeps and domains through subdomain enumeration, then concurrently runs Shodan enrichment, nmap service/version scanning, dirsearch web discovery, exposure checks, secret/API-key scanning, Moodle auditing, reflected-XSS and SQLi checks, Hydra credential attacks, and WordPress wp2shell processing. Full intensity actively invokes sqlmap and Hydra; recon mode lists those candidates instead. It uses external repositories installed by `setup` for PHP-CGI, React2Shell, WordPress, and directory-scanning capabilities. Built-in CVE probes target PHPUnit eval-stdin RCE (CVE-2017-9841), Apache traversal/LFI (CVE-2021-41773), Struts S2-045 (CVE-2017-5638), Confluence OGNL RCE (CVE-2022-26134), Drupalgeddon2 (CVE-2018-7600), Next.js middleware bypass (CVE-2025-29927), PHP-CGI (CVE-2024-4577/CVE-2024-8926), and React Server Components RCE (CVE-2025-55182). Several internal checks use benign confirmation markers/arithmetic oracles, but the overall repository is an active exploitation platform: full mode can perform credential guessing and injection, external wp2shell can pursue SQLi-to-shell, and React2Shell can be configured away from safe-check mode to run a command. Notable collection functionality includes downloading exposed files and backups, scanning their contents for cloud/VCS/payment/API credentials, and `gitdump.py`, which mirrors an exposed `.git` directory, retrieves reachable loose Git objects, and reconstructs source files. Artifacts, reports, findings, and potentially sensitive material are stored under `runs/<run-id>/`; report code serializes evidence and can therefore retain sensitive values. ScopeGuard supports target/CIDR and subdomain allowlisting, but supplied documentation/configuration describe scope enforcement as disabled by default, materially increasing operator-supplied target risk.yeee3642 · Disclosed Aug 26, 2026 · python · bash · network · webOperationalstruts2-toolThis is a standalone, pure-Java Maven CLI tool named s2tool, not a Metasploit/Nuclei module. Its main entry point is com.s2tool.Launcher, which exposes scan, batch, exec, shell, upload, download, getpath, sysinfo, revshell, and webshell subcommands. It targets Apache Struts2 S2-045 and S2-046 implementations of CVE-2017-5638 through Jakarta multipart parser exception handling and OGNL evaluation. The tool supports optional cookies, Basic authentication, custom User-Agent values, custom headers, HTTP proxies, configurable timeouts, and HTTPS connections with certificate and hostname verification disabled. The core layer contains target parsing, Apache HTTP transport, response handling, result parsing, and payload construction. PayloadBuilder contains the OGNL sandbox-bypass and primitives for validation, command execution, servlet web-root extraction, OS discovery, and Base64 file writes. Detection is plugin-based: S2_045 tests malformed Content-Type injection using arithmetic output, UUID response markers, and a 6-second timing fallback; S2_046 tests a multipart filename containing an embedded NUL byte, followed by a Content-Type fallback. Fingerprinter performs a malformed-request probe and, when required, requests several known Struts static-resource paths. Post-exploitation modules are substantive rather than detection-only. Executor runs arbitrary OS commands and returns merged stdout/stderr. InfoGather obtains the servlet deployment root and system information. FileManager can write arbitrary files via OGNL or shell-assisted Base64 reconstruction and download arbitrary target files. Shell provides a serial HTTP-backed interactive shell with retained working-directory state. Advanced can send Bash or PowerShell reverse-shell commands and generate/upload a plaintext JSP webshell that runs commands supplied through CMD. Reporting components produce console, JSON, and static HTML scan reports. The repository includes Java unit tests, a payload reference YAML, Maven shade packaging, and Windows/Linux build scripts.GU-007 · Disclosed Sep 3, 2026 · java · bash · web · networkOperationalCVE-2017-5638This repository contains a Python script ('rogueApache.py') that exploits the Apache Struts 2 CVE-2017-5638 remote code execution vulnerability. The exploit works by sending a specially crafted Content-Type header containing an OGNL payload to each URL listed in a local 'urls.txt' file. The script attempts to execute OS commands on the target server to determine if it is running Linux or Windows, and checks for vulnerability by analyzing the command output. The repository also includes a README.md with background information and usage instructions, and a GPLv3 license file. The exploit is a proof-of-concept and requires the attacker to supply a list of target URLs. No hardcoded network endpoints are present; targets are read from 'urls.txt'. The main attack vector is network-based, leveraging HTTP requests to vulnerable web servers.payatu · Disclosed May 5, 2017 · python · networkPoCCVE-2017-5638-PoCThis repository provides a proof-of-concept (PoC) exploit for CVE-2017-5638, a critical remote code execution vulnerability in Apache Struts 2. The main exploit is implemented in 'PoC/exploit.py', a Python script that allows the user to check if a target URL is vulnerable and, if so, execute arbitrary system commands on the server by exploiting a flaw in the handling of the 'Content-Type' HTTP header. The script constructs a malicious OGNL payload and injects it via the 'Content-Type' header in an HTTP request to the target. The repository also includes setup instructions for creating a vulnerable environment using Apache Tomcat and a vulnerable version of Struts 2, as well as documentation and a requirements file. The exploit is a standalone PoC, not part of a larger framework, and is intended for educational and testing purposes only.kloutkake · Disclosed Sep 4, 2024 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Apache Software FoundationStrutsapplication
Aruba NetworksClearpass Policy Managerapplication
Hewlett Packard EnterpriseServer Automationapplication
International Business MachinesStorwize V3500 Firmwareoperating_system
International Business MachinesStorwize V5000 Firmwareoperating_system
International Business MachinesStorwize V7000 Firmwareoperating_system
LenovoStorage V5030 Firmwareoperating_system
NetAppOncommand Balanceapplication
Oracle CorporationOracle Weblogic Serverapplication
FAQ

Frequently asked questions

Is CVE-2017-5638 exploited in the wild?
Yes. As of Oct 19, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2017-5638?
Yes. Mallory tracks 28 public exploits or proofs of concept for CVE-2017-5638, the earliest disclosed Mar 7, 2017.
Is there a patch for CVE-2017-5638?
Upgrade affected Apache Struts deployments to a supported, patched release. The historical minimum fixed versions are 2.3.32 for the 2.3.x branch and 2.5.10.1 for the 2.5.x branch.
What products are affected by CVE-2017-5638?
Apache Software Foundation Struts, Aruba Networks Clearpass Policy Manager, NetApp Oncommand Balance, Oracle Corporation Oracle Weblogic Server, Hewlett Packard Enterprise Server Automation, and 4 more.
How severe is CVE-2017-5638?
CVE-2017-5638 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Oct 19, 2026.
Activity feed

Recent activity

50 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+36 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence8Every report linking this CVE to a named adversary.
Associated malware27Malware families linked to this CVE, with evidence and IOCs.
Detection signatures4YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.