PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2025-13590: 
Java vulnerability analysis and mitigation

Overview

CVE-2025-13590 is an unrestricted file upload vulnerability (CWE-434) affecting multiple WSO2 products that allows an authenticated administrator to upload arbitrary files to user-controlled locations via a system REST API, potentially leading to remote code execution. Affected products include WSO2 API Manager (versions 4.2.0–4.6.0), WSO2 API Control Plane (4.5.0, 4.6.0), WSO2 Traffic Manager (4.5.0, 4.6.0), and WSO2 Universal Gateway (4.5.0, 4.6.0). The vulnerability was published on February 19, 2026, and carries a CVSS v3.1 base score of 7.2 (High) (Red Hat CVE, WSO2 Advisory).

Technical details

The root cause is classified as CWE-434 (Unrestricted Upload of File with Dangerous Type): the affected WSO2 system REST API does not adequately restrict the type or content of files that an authenticated administrator can upload, nor does it enforce safe destination paths. An attacker with administrative credentials can craft a REST API request to upload a malicious file (e.g., a web shell or executable payload) to a user-controlled location within the deployment directory. Because the uploaded file lands in a web-accessible or executable path, it can subsequently be triggered to achieve remote code execution on the server. No public proof-of-concept code has been identified at this time (WSO2 Advisory, Red Hat CVE).

Impact

Successful exploitation results in complete system compromise, with high impact to confidentiality, integrity, and availability. An attacker who achieves remote code execution can exfiltrate sensitive API credentials and configuration data, manipulate or destroy deployment artifacts, and disrupt service availability. Given that WSO2 API Manager and related products often serve as central API gateways, compromise could facilitate lateral movement into backend services and connected systems (WSO2 Advisory, Red Hat CVE).

Exploitability

No public proof-of-concept exploit or evidence of in-the-wild exploitation has been reported as of the time of disclosure. The EPSS score is approximately 0.277%, indicating a currently low probability of exploitation in the near term. The vulnerability requires administrative privileges to exploit, which limits the attack surface to compromised admin accounts or insider threats. It has not been added to the CISA Known Exploited Vulnerabilities (KEV) catalog. Detection is available via Qualys scanner (detection ID 733765) (Red Hat CVE, WSO2 Advisory).

Exploitation steps

  1. Reconnaissance: Identify internet-facing WSO2 API Manager, API Control Plane, Traffic Manager, or Universal Gateway instances running affected versions (4.2.0–4.6.0 for API Manager; 4.5.0–4.6.0 for others) using tools like Shodan or Censys.
  2. Obtain administrative credentials: Acquire valid administrator credentials through phishing, credential stuffing, or insider access — exploitation requires high-privilege authentication.
  3. Authenticate to the REST API: Use the obtained credentials to authenticate against the WSO2 system REST API endpoint (e.g., via OAuth2 token or basic auth as supported by the deployment).
  4. Craft malicious file upload request: Prepare a specially crafted payload (e.g., a JSP web shell) and construct a REST API request targeting the vulnerable file upload endpoint, specifying a user-controlled destination path within the deployment directory.
  5. Upload the payload: Submit the crafted API request to upload the malicious file to a web-accessible or executable location on the server.
  6. Trigger remote code execution: Access the uploaded file via the web server (e.g., by navigating to its URL) to execute arbitrary commands on the underlying system, enabling further post-exploitation activities such as establishing persistence or lateral movement (WSO2 Advisory).

Indicators of compromise

  • Network: Unusual REST API calls to WSO2 system endpoints involving file upload operations from unexpected source IPs or at unusual times; outbound connections from the WSO2 server to unknown external hosts following file upload activity.
  • Logs: WSO2 access logs showing POST requests to system REST API file upload endpoints with large or unexpected payloads; authentication events for administrative accounts from anomalous locations or at odd hours.
  • File System: Unexpected files (especially .jsp, .war, .sh, or script files) appearing in WSO2 deployment directories, webapps folders, or other web-accessible paths; modification timestamps on deployment directories inconsistent with normal operations.
  • Process: Unusual child processes spawned by the WSO2 Java process (e.g., bash, sh, curl, wget, python) indicating web shell execution or reverse shell activity.

Mitigation and workarounds

WSO2 has released a patch addressing this vulnerability, documented in security advisory WSO2-2025-4849. Administrators should apply the patch immediately for all affected products: WSO2 API Manager 4.2.0–4.6.0, API Control Plane 4.5.0–4.6.0, Traffic Manager 4.5.0–4.6.0, and Universal Gateway 4.5.0–4.6.0. As interim mitigations, restrict administrative access to the system REST API using network-level controls (e.g., firewall rules, IP allowlisting), enforce multi-factor authentication for administrative accounts, and monitor for suspicious file upload activity and unauthorized admin access attempts (WSO2 Advisory, Red Hat CVE).

Community reactions

Coverage of CVE-2025-13590 has been limited to vulnerability aggregation platforms and security news outlets such as The Hacker Wire and Red Packet Security, with no notable independent researcher commentary or significant social media discussion identified. The vulnerability was tracked by standard vulnerability databases shortly after disclosure, and Qualys added detection support (ID 733765). No major vendor statements beyond the WSO2 advisory have been issued (WSO2 Advisory).

Additional resources


Source: This report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-111765HIGH7.5
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-http-client-android
NoYesOct 20, 2026
CVE-2026-102834HIGH7.5
  • Java logoJava
  • org.bytedeco:javacv
NoYesOct 16, 2026
CVE-2026-111763MEDIUM5.7
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-parent
NoYesOct 20, 2026
CVE-2026-111762MEDIUM5.7
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-transport-rest
NoYesOct 20, 2026
CVE-2026-113730MEDIUM5.6
  • Java logoJava
  • ognl:ognl
NoYesOct 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management