Multiple WSO2 products allow for unrestricted file upload, resulting in remote code execution.
In short
CVE-2022-29464 (WSO2 Multiple Products Unrestrictive Upload of File) has a CVSS 3.1 base score of 9.8, rated critical. CISA added it to the Known Exploited Vulnerabilities catalog on 25 Apr 2022, and it has been used in ransomware campaigns. The NVD records no fixed version, so follow the vendor advisory.
Description
Certain WSO2 products allow unrestricted file upload with resultant remote code execution. The attacker must use a /fileupload endpoint with a Content-Disposition directory traversal sequence to reach a directory under the web root, such as a ../../../../repository/deployment/server/webapps directory. This affects WSO2 API Manager 2.2.0 up to 4.0.0, WSO2 Identity Server 5.2.0 up to 5.11.0, WSO2 Identity Server Analytics 5.4.0, 5.4.1, 5.5.0 and 5.6.0, WSO2 Identity Server as Key Manager 5.3.0 up to 5.11.0, WSO2 Enterprise Integrator 6.2.0 up to 6.6.0, WSO2 Open Banking AM 1.4.0 up to 2.0.0 and WSO2 Open Banking KM 1.4.0, up to 2.0.0.
CVSS 3.1 breakdown
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HAffected products
- Wso2 API Manager≥ 2.2.0 ≤ 4.0.0
- Wso2 Enterprise Integrator≥ 6.2.0 ≤ 6.6.0
- Wso2 Identity Server≥ 5.2.0 ≤ 5.11.0
- Wso2 Identity Server Analytics5.4.0 · 5.4.1 · 5.5.0 · 5.6.0
- Wso2 Identity Server As Key Manager≥ 5.3.0 ≤ 5.10.0
- Wso2 Open Banking Am≥ 1.3.0 ≤ 2.0.0
- Wso2 Open Banking Iam2.0.0
- Wso2 Open Banking Km≥ 1.3.0 ≤ 1.5.0
Remediation
No fixed version is recorded in the NVD data. Check the vendor advisory for the latest guidance.
Patch & vendor advisoriesReferences
- http://packetstormsecurity.com/files/166921/WSO-Arbitrary-File-Upload-Remote-Code-Execution.html
- https://github.com/hakivvi/CVE-2022-29464
- https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2022/WSO2-2021-1738/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-29464
- http://www.openwall.com/lists/oss-security/2022/04/22/7
Related CVEs
Exploited and critical vulnerabilities in the same product or from the same vendor.
Data from the NVD, CISA KEV catalog and FIRST EPSS. The CVSS 4.0 base score is shown where the NVD has one, otherwise CVSS 3.1.
