Skip to content
Threat Feed
critical advisory

WSO2: Unauthenticated Remote Code Execution via FileUploadServlet (CVE-2022-29464)

CVE-2022-29464 is an unauthenticated arbitrary file upload vulnerability in the WSO2 FileUploadServlet that enables remote code execution via directory traversal and malicious JSP deployment.

CVE search metadata

CVE search record: CVE-2022-29464. Severity: critical. CVSS: 9.8. EPSS: 100.00%. KEV: no. Product: API Manager (<= 4.0.0), Enterprise Integrator (<= 6.6.0), Identity Server (<= 5.11.0), Identity Server Analytics (5.4.0, 5.4.1, 5.5.0, 5.6.0). Brief: WSO2: Unauthenticated Remote Code Execution via FileUploadServlet (CVE-2022-29464). Brief link: https://feed.craftedsignal.io/briefs/2026-10-cve-2022-29464/

Triage facts

Revision 1
Applicability
API Manager (<= 4.0.0), Enterprise Integrator (<= 6.6.0) +2
Evidence
Unknown
Severity
Critical
Action
Immediate escalation
Sources
3 public sources
Freshness
Revision 1Oct 29, 12:27 UTC
Detection
1 rule
Vulnerabilities
1 CVE
Source quality
A2Very likely

CVE-2022-29464 is a critical vulnerability affecting multiple WSO2 products. The vulnerability exists within the FileUploadServlet component, which is incorrectly configured to skip authentication checks for requests directed at the /fileupload endpoint. This allows unauthenticated attackers to leverage the FileUploadExecutorManager to upload arbitrary files. By manipulating the Content-Disposition header with directory traversal sequences, an attacker can write files into the web application root, such as JSP shells, achieving Remote Code Execution (RCE).

Attack Chain

  1. An attacker sends an unauthenticated HTTP POST request to the /fileupload endpoint.
  2. The CarbonUILoginUtil.handleLoginPageRequest() utility incorrectly identifies the /fileupload path as exempt from security checks and returns RETURN_TRUE.
  3. The FileUploadServlet receives the request and passes it to the FileUploadExecutorManager.
  4. The manager uses the actionString extracted from the URL to map the request to a specific FileUploadExecutor class.
  5. The attacker provides a Content-Disposition header containing directory traversal sequences (e.g., ../../../../) to escape the intended upload directory.
  6. The application writes the uploaded JSP file into the web server deployment directory.
  7. The attacker requests the newly uploaded JSP file to trigger arbitrary code execution.

Impact

Successful exploitation allows unauthenticated attackers to achieve Remote Code Execution (RCE) on the underlying host, leading to full system compromise.

Recommendation

  1. Inventory all instances of WSO2 API Manager, Enterprise Integrator, Identity Server, and Identity Server Analytics.
  2. Patch affected software to the versions remediating CVE-2022-29464 as provided by WSO2.
  3. Implement network-level restrictions to block access to the /fileupload path for all untrusted users.
  4. Monitor web server access logs for POST requests to /fileupload that contain directory traversal patterns (e.g., ..%2F or ../) in the request URI or parameters.

Immediate actions

Patch all vulnerable WSO2 instances listed in the brief

IT Operations 24h

Threat Hunt

Search web server logs for HTTP POST requests to /fileupload/ with directory traversal strings (..%2f, ..%5c) or unexpected filename extensions like .jsp in the query parameters

T1190 high high confidence hunt now

Data: web_access_logs

Mitigations

Apply vendor-supplied patches for CVE-2022-29464

immediate IT Operations

CVE-2022-29464

Detection coverage 1

Detect CVE-2022-29464 Exploitation Attempt - Arbitrary File Upload via /fileupload

critical

Detects HTTP requests to the WSO2 /fileupload endpoint containing directory traversal sequences, which are indicative of CVE-2022-29464 exploitation attempts.

sigma tactics: initial_access techniques: T1190 sources: webserver

Detection queries are available on the platform. Get full rules →