Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2022-29464: Unauthenticated File Upload Leading to RCE in WSO2 Products

Published Apr 18, 2022 · Updated 1 month 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
EPSS90.4%100th percentile
CISA KEVYesAdded Apr 25, 2022
In the wildActivePer CISA KEV
Vendor
Wso2
IdentifiersCVE-2022-29464CWE-434

CVE-2022-29464 is an unrestricted file upload vulnerability affecting multiple WSO2 products. An unauthenticated attacker can submit a crafted upload request containing directory traversal sequences in the Content-Disposition header to place executable files in a web-accessible deployment directory. Uploading and invoking a malicious web application or web shell enables arbitrary code execution with the privileges of the Java application server process. Affected products are WSO2 API Manager 2.2.0–4.0.0, Identity Server 5.2.0–5.11.0, Identity Server Analytics 5.4.0, 5.4.1, 5.5.0, and 5.6.0, Identity Server as Key Manager 5.3.0–5.11.0, Enterprise Integrator 6.2.0–6.6.0, Open Banking AM 1.4.0–2.0.0, and Open Banking KM 1.4.0–2.0.0. Exploitation in the wild was observed in April 2022.

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 confidentiality, integrity, and availability of resources accessible to the WSO2 application process. Attackers can execute operating-system commands, deploy web shells and additional malware, modify application files, and access sensitive application data. Observed post-exploitation activity includes cryptocurrency mining, Cobalt Strike beacon deployment, and network scanning. Compromise of an Identity Server can also expose user data and services governed by that server. Exploitation does not inherently grant privileges beyond those of the Java process owner.

Mitigation

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

If immediate patching is not possible, apply the product-specific temporary workarounds documented in the WSO2 security advisory. As an additional exposure-reduction measure, restrict access to the vulnerable upload interface to trusted networks or block it where operationally feasible. Monitor for unexpected web application deployments and suspicious child processes launched by the Java service.

Remediation

Patch, then assume compromise.

Apply the vendor-provided security fixes for CVE-2022-29464 to affected WSO2 installations or upgrade to an appropriately patched release. Organizations without a WSO2 support subscription or running end-of-life products should consult the publicly available patch pull requests referenced by the vendor advisory. Inspect affected installations for unauthorized files, users, and processes, and remediate any compromise; patching alone does not remove previously deployed web shells or malware.

Public exploits

Exploits

17 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
wso2_file_upload_rce.rbThis repository contains a single Metasploit module (modules/exploits/multi/http/wso2_file_upload_rce.rb) that exploits CVE-2022-29464, an arbitrary file upload vulnerability in multiple WSO2 products. The exploit works by uploading a malicious WAR file to the server via the /fileupload/toolsAny endpoint, using a path traversal to place the file in the webapps directory. Once uploaded, the module triggers the payload by sending a request to the deployed WAR, resulting in remote code execution. The default payload is a Java Meterpreter reverse shell, but any compatible Metasploit Java payload can be used. The module is weaponized, allowing for easy customization and integration into attack workflows. The exploit targets several WSO2 products and versions, as detailed in the module's metadata. The main attack vector is network-based, requiring access to the vulnerable HTTP(S) interface of the target WSO2 server.Disclosed Apr 1, 2022 · Framework: metasploit · ruby · networkWeaponizedCVE-2022-29464This repository contains an exploit for CVE-2022-29464, a critical unauthenticated arbitrary file upload vulnerability in WSO2 products. The exploit consists of a Python script (exploit.py) and a detailed README.md writeup. The exploit works by uploading a malicious JSP web shell to the /fileupload/toolsAny endpoint, exploiting a path traversal to place the shell in the authenticationendpoint web application directory. Once uploaded, the shell can be accessed via the /authenticationendpoint/{file} URL, allowing the attacker to execute arbitrary commands on the server. The repository is well-documented, with the README providing technical background, PoC instructions, and screenshots. The exploit is operational, providing a working web shell payload, and targets WSO2 products vulnerable to CVE-2022-29464.hakivvi · Disclosed Apr 20, 2022 · python · networkOperationalCVE-2022-29464This repository contains a Python exploit for CVE-2022-29464, a remote code execution vulnerability in WSO2 products. The exploit consists of a single main script (exploit.py) and a README.md with usage instructions. The exploit.py script allows the user to target multiple hosts by providing a file with URLs. It attempts to upload a JSP webshell to the vulnerable /fileupload/toolsAny endpoint using a path traversal technique, placing the shell at '../../../../repository/deployment/server/webapps/authenticationendpoint/megas.jsp'. After uploading, it accesses the shell at '/authenticationendpoint/megas.jsp' and executes a test command ('id') to verify successful exploitation. The script supports multithreading for efficiency and can save results to an output file. The main capability is remote code execution via a webshell, and the exploit is operational with a hardcoded payload. No framework is used; the code is standalone.hev0x · Disclosed Apr 22, 2022 · python · networkOperationalWSOBThis standalone Python exploit targets CVE-2022-29464, combining unrestricted file upload and directory traversal to place a JSP webshell in a WSO2 web application. It first requests the supplied base URL, then posts a hardcoded command-execution JSP to /fileupload/toolsAny. The multipart field name contains a traversal path targeting authenticationendpoint/authendpoint.jsp. An HTTP 200 upload response causes the tool to print the webshell URL, but it does not verify deployment or command execution. The affected product versions are documented in the README rather than identified by runtime fingerprinting. The repository contains 10 files, including four Python source files. Root main.py parses the required -u argument; src/wsob/main.py implements connectivity checking and exploitation; src/wsob/helpers/settings.py configures request headers and TLS behavior; and src/interface/ui.py displays the text banner. Other files provide dependency pins, documentation, licensing, and release history. The embedded payload is JSP/Java. Requests disable certificate verification, follow redirects, and have no explicit timeout. There are no hardcoded remote hosts, callback servers, or exfiltration endpoints. The supplied snapshot cannot run unchanged: settings.py reads a missing user-agents.txt file during import. Its connection-error handler also incorrectly attempts to catch the requests.exceptions module rather than an exception class, potentially masking connection failures with a TypeError. Upload errors are not caught. These defects and the HTTP-status-only success check limit reliability, but the code is an actual exploitation attempt rather than a passive detector. The repository URL is inferred from the README; no git reference or archive size was supplied, so those fields use an empty string and zero respectively.dsssssssm · Disclosed Apr 24, 2022 · python · web · networkOperationalWSOBRepository purpose: a small Python3 exploit tool (“WSOB”) targeting CVE-2022-29464 (WSO2 unrestricted file upload leading to RCE). Structure and key files: - main.py: CLI entry point. Requires -u (target base URL). Prints banner then calls start(). - src/interface/ui.py + src/interface/banner.txt: renders an ASCII banner using rich. - src/wsob/helpers/settings.py: builds requests options (props) including random User-Agent (from src/wsob/helpers/user-agents.txt), keep-alive, allow_redirects=True, and verify=False (TLS cert validation disabled). - src/wsob/main.py: core logic. - start(): sends an HTTP GET to the provided base URL to check reachability; proceeds only if response.ok. - exploit(): performs the actual exploit by POSTing to /fileupload/toolsAny with a multipart file whose name includes a directory traversal path to write a JSP into WSO2’s webapps directory. Exploit capability: - Achieves remote code execution by uploading a JSP webshell to: ../../../../repository/deployment/server/webapps/authenticationendpoint/authendpoint.jsp - After upload, it reports the webshell URL: /authenticationendpoint/authendpoint.jsp which executes arbitrary OS commands supplied via the 'cmd' request parameter. Notes: - The tool is operational but basic: it hardcodes the webshell and destination path and only checks success via HTTP status code == 200 on upload.0xdsm · Disclosed Apr 24, 2022 · python · jsp · networkOperationalCVE-2022-29464This repository is a small standalone Python exploit loader for CVE-2022-29464 targeting vulnerable WSO2 servers. It contains only two files: a README with usage instructions and main.py, which implements the exploit logic. The script reads a list of target hosts from a user-supplied file, then spawns a thread per host to attack them concurrently. The exploit workflow is straightforward: for each host, it generates a random JSP filename, builds an embedded JSP web shell, and uploads it to the target using a POST request to /fileupload/toolsAny. The uploaded multipart form field name is crafted as a path traversal string pointing to ../../../../repository/deployment/server/webapps/authenticationendpoint/{filename}, which attempts to write the JSP into a web-accessible directory. After waiting 15 seconds, the script sends a GET request to /authenticationendpoint/{filename} to trigger the shell. The JSP payload provides remote command execution by reading a request parameter named cmd and passing it to Runtime.getRuntime().exec(). It captures stdout and returns the output in the HTTP response. The Python script reports success only by checking for HTTP 200 from the shell URL; it does not robustly validate command output. Notably, the trigger request is coded as ?={params['command']} instead of ?cmd=..., which appears to be a bug and may prevent command execution unless manually corrected or tolerated by the environment. Overall, this is a real exploit rather than a detector. It is operational but basic: it weaponizes the WSO2 arbitrary file upload/path traversal issue into JSP web shell deployment and bulk target execution, with hardcoded behavior and minimal error handling.sh4den · Disclosed May 15, 2022 · python · markdown · web · networkOperationalCVE-2022-29464Repository purpose: a simple multi-target “loader” exploit for CVE-2022-29464 against WSO2 servers. Structure: - README.md: basic usage instructions (install colored; run `python3 main.py <vuln-list> <command>`). - main.py: the exploit implementation. How it works (main.py): - Reads a list of target base URLs/hosts from a user-supplied file (one per line). - Spawns a thread per target and runs Exploit.exploit(). - Generates a random JSP filename and builds a JSP webshell payload that executes `request.getParameter("cmd")` via `Runtime.getRuntime().exec()` and returns stdout. - Sends a POST request to `{host}/fileupload/toolsAny` with a crafted multipart `files` key containing a directory traversal path: `../../../../repository/deployment/server/webapps/authenticationendpoint/<random>.jsp`. This attempts to write the JSP into the WSO2 `authenticationendpoint` webapp directory. - Waits 15 seconds, then requests `{host}/authenticationendpoint/<random>.jsp` to trigger execution (the code appends `?={command}` but the JSP expects `cmd=...`, so as written the trigger parameter appears buggy and may not execute the intended command unless adjusted). Capabilities: - Arbitrary file write (JSP) into a web-accessible directory via vulnerable upload endpoint. - Intended remote command execution through the dropped JSP webshell. - Basic concurrency for scanning/exploitation of multiple hosts. Notable implementation details: - TLS verification is disabled (verify=False) and urllib3 warnings are suppressed. - Success is determined only by HTTP 200 on the JSP request; no parsing of output. - No cleanup/removal of the uploaded JSP.SystemVll · Disclosed May 15, 2022 · python · jsp · networkOperationalCVE-2022-29464-loaderThis repository contains an operational exploit for CVE-2022-29464, a critical vulnerability in WSO2 products that allows unauthenticated file upload and remote code execution. The main file, 'main.py', is a Python script that automates exploitation against a list of vulnerable servers. It reads a file containing target URLs, then for each target, uploads a randomly-named JSP web shell to the '/fileupload/toolsAny' endpoint using a crafted POST request. After a short delay, it accesses the uploaded shell at '/authenticationendpoint/<random>.jsp', passing a command to execute via the HTTP request. The shell executes the command on the server and returns the output. The exploit is multi-threaded, allowing concurrent attacks on multiple targets. The repository also includes a README.md with usage instructions. No hardcoded IPs or domains are present; the targets are supplied by the user. The exploit is not part of a framework and is a standalone operational tool.SystemVll · Disclosed May 15, 2022 · python · networkOperationalCVE-2022-29464This repository contains two Python exploit scripts (exploit.py and exploit-v2.py) targeting the WSO2 Carbon Server vulnerability CVE-2022-29464, which allows unauthenticated remote code execution via a file upload flaw. Both scripts automate the exploitation process by uploading a JSP web shell and a JSP reverse shell to the target server using the /fileupload/toolsAny endpoint. The web shell allows arbitrary command execution via HTTP requests, while the reverse shell attempts to connect back to a hardcoded ngrok address (8.tcp.ngrok.io:12508), granting the attacker an interactive shell. The scripts support both single-target and batch exploitation (via a file of URLs). The repository also includes dork files (shodan-dork.txt, zoomeye-dork.txt) to help identify vulnerable WSO2 Carbon Server instances exposed on the internet. The exploit is operational, with hardcoded payloads and a fixed reverse shell address, and is not part of a larger exploitation framework.Chocapikk · Disclosed May 26, 2022 · python · networkOperationalBetter-CVE-2022-29464This repository provides a working exploit for CVE-2022-29464, an unrestricted file upload vulnerability in multiple WSO2 products. The exploit consists of a Python script (main.py) that uploads a JSP web shell (shell.jsp) to a vulnerable server via the /fileupload/toolsAny endpoint, using a directory traversal payload to place the shell in a web-accessible directory. The shell.jsp file is a web shell that allows arbitrary command execution via the 'cmd' parameter, returning both stdout and stderr. The README.md provides detailed usage instructions, affected product versions, and post-exploitation tips, such as downloading the WSO2 database file. The exploit is operational and provides remote code execution with potentially superuser privileges if the WSO2 service is run as root. The main attack vector is network-based, targeting the /fileupload endpoint. The repository is well-structured, with clear separation between the exploit script, payload, and documentation.jimidk · Disclosed Jun 4, 2022 · python · jsp · networkOperationalWSO2RCEThis repository provides a working exploit for CVE-2022-29464, a critical remote code execution vulnerability affecting several WSO2 products. The exploit is implemented in Python (run.py) and allows an attacker to upload arbitrary files to the target server via the vulnerable /fileupload/toolsAny endpoint. The main payload is a JSP webshell, which is uploaded to the authenticationendpoint directory, enabling the attacker to execute arbitrary system commands via a web interface. The exploit can target a single URL or multiple targets listed in a file. The README.md provides detailed usage instructions and lists all affected WSO2 product versions. The repository is structured with a single exploit script (run.py), a README, and a license file. The exploit is operational and provides a real, interactive shell on the target if successful.Pasch0 · Disclosed Jul 5, 2022 · python · networkOperationalCVE-2022-29464This repository contains a Python exploit script (exploit.py) targeting WSO2 servers vulnerable to CVE-2022-29464, an arbitrary file upload vulnerability. The exploit uploads a JSP webshell to the authenticationendpoint webapp directory via the /fileupload/toolsAny endpoint, allowing remote command execution through a web interface. The repository is minimal, with only four files: a .gitignore, LICENSE, README.md, and the main exploit script. The README provides a usage example, and the exploit.py script is self-contained, requiring only the target URL and desired shell filename as arguments. The payload is a JSP webshell that enables arbitrary command execution on the compromised server. The exploit is operational and demonstrates a real-world attack scenario against vulnerable WSO2 deployments.hupe1980 · Disclosed Sep 22, 2022 · python · networkOperationalCVE-2022-29464This standalone repository exploits CVE-2022-29464 through an unauthenticated upload with directory traversal, rather than merely detecting exposure. Its four files comprise an interactive Python client, a bundled JSP web shell, a README, and a dependency list. wso.py accepts one target or a target-list file and supports concurrent exploitation with an operator-selected worker count, defaulting to 10. It sends Files/shell.jsp to /fileupload/toolsAny using a traversal-bearing multipart field name intended to write into the authenticationendpoint web application. The bundled JSP is configured for unrestricted filesystem operations, uploads, and native commands through /bin/sh -c. Its visible interface includes file manipulation, ZIP downloads, and command launching. The Python client records the expected shell URL when the response is HTTP 200, nonempty, and does not contain the lowercase string 'java'; this is not reliable confirmation of successful deployment. A headers dictionary is defined but never passed to requests.post. Network and file errors are not generally handled, and submitted worker futures are not inspected for exceptions. No fixed victim address, reverse-shell listener, or automatic exfiltration destination appears in the supplied code. The README identifies WSO2 Identity Server and provides a Carbon Server search fingerprint, but does not specify affected versions. The JSP was supplied only in truncated form, limiting full payload verification. The listed file sizes total 79,506 bytes; the archive size and Git reference were not supplied, so size_bytes is recorded as 0 and ref is empty.Ap0dexMe0 · Disclosed Apr 25, 2023 · python · jsp · webOperationalCVE-2022-29464This repository is an operational exploit for CVE-2022-29464, a critical file upload vulnerability in WSO2 Identity Server (and related WSO2 Carbon Servers). The exploit consists of a Python script (wso.py) that automates the process of uploading a malicious JSP web shell (Files/shell.jsp) to a vulnerable server via the /fileupload/toolsAny endpoint. The web shell provides a comprehensive web-based interface for file management and arbitrary command execution on the compromised server. The exploit supports both single-target and mass exploitation modes, and stores successful shell URLs in a results file. The repository includes a README with usage instructions, requirements, and background on the vulnerability. The main attack vector is network-based, targeting exposed WSO2 servers. The endpoints of interest are the vulnerable upload endpoint and the location where the shell is deployed and accessed. The payload is a feature-rich JSP web shell, granting the attacker full control over the server's filesystem and command execution.ThatNotEasy · Disclosed Apr 25, 2023 · python · jsp · networkOperationalWSOBThis repository is a Python-based exploit tool targeting CVE-2022-29464, a critical unrestricted file upload vulnerability in multiple WSO2 products. The exploit works by sending a crafted HTTP POST request to the /fileupload/toolsAny endpoint, abusing directory traversal to upload a JSP webshell to the server's web root. If successful, the webshell is accessible at /authenticationendpoint/authendpoint.jsp, allowing the attacker to execute arbitrary commands on the server via a web interface. The repository is structured with a main entry point (main.py), supporting modules for UI and HTTP request configuration, and a hardcoded JSP webshell payload. The tool requires Python 3 and the 'requests' and 'rich' libraries. It is operational and provides a working exploit with a functional payload, but is not part of a larger exploitation framework.000pp · Disclosed May 23, 2023 · python · networkOperationalCVE-2022-29464This repository provides a working exploit for CVE-2022-29464, an unauthenticated file upload vulnerability affecting several WSO2 products. The main script, 'CVE-2022-29464.py', is a Python tool that automates the exploitation process. It allows the user to specify a single target or a list of targets (host:port format) and uploads a user-specified JSP file (by default, 'uploader.jsp') to the vulnerable server via the '/fileupload/toolsAny' endpoint. The script then verifies if the upload was successful by attempting to access the uploaded file at '/authenticationendpoint/<filename>'. The included 'uploader.jsp' is a JSP webshell that allows further file uploads to the server, while the default payload in the script is a simple command execution webshell. The repository also contains a README with usage instructions, a requirements.txt for dependencies, and a sample 'targets.txt' file. The exploit is operational and provides remote code execution capabilities if the target is vulnerable. No detection-only scripts are present; the code is a real exploit. The attack vector is network-based, requiring access to the target's HTTP(S) interface.c1ph3rbyt3 · Disclosed Jan 17, 2025 · python · jsp · networkOperationalMass-exploit-CVE-2022-29464This repository is a mass exploitation toolkit targeting WSO2 Carbon Server instances vulnerable to CVE-2022-29464 (pre-auth RCE). The main components are a Python exploit script (exploit.py) and a Bash automation script (mass_exploit.sh). The Bash script automates the process of searching for vulnerable hosts using Shodan and Zoomeye, then invokes the Python script to exploit each target. The Python script uploads a JSP web shell and a JSP reverse shell to the target server via a vulnerable file upload endpoint. The web shell allows arbitrary command execution via HTTP, while the reverse shell connects back to a hardcoded ngrok address. The toolkit is operational and can be used for mass exploitation, provided the attacker has access to Shodan/Zoomeye API keys and a list of targets. The repository also includes example dorks and result files for host enumeration. The exploit is not part of a framework and is standalone.hxlxmj · Disclosed Jun 28, 2022 · python · bash · 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
Wso2Api Managerapplication
Wso2Enterprise Integratorapplication
Wso2Identity Serverapplication
Wso2Identity Server Analyticsapplication
Wso2Identity Server As Key Managerapplication
Wso2Open Banking Amapplication
Wso2Open Banking Iamapplication
Wso2Open Banking Kmapplication
FAQ

Frequently asked questions

Is CVE-2022-29464 exploited in the wild?
Yes. As of Oct 21, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Apr 25, 2022.
Is there a public exploit for CVE-2022-29464?
Yes. Mallory tracks 17 public exploits or proofs of concept for CVE-2022-29464, the earliest disclosed Apr 1, 2022.
Is there a patch for CVE-2022-29464?
Apply the vendor-provided security fixes for CVE-2022-29464 to affected WSO2 installations or upgrade to an appropriately patched release. Organizations without a WSO2 support subscription or running end-of-life products should consult the publicly available patch pull requests referenced by the vendor advisory.
What products are affected by CVE-2022-29464?
Wso2 Api Manager, Wso2 Enterprise Integrator, Wso2 Identity Server, Wso2 Identity Server Analytics, Wso2 Identity Server As Key Manager, and 3 more.
How severe is CVE-2022-29464?
CVE-2022-29464 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 90.4% (100th percentile) as of Oct 21, 2026.
Activity feed

Recent activity

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

View more in app →
+7 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 evidenceEvery report linking this CVE to a named adversary.
Associated malware11Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.