CVE-2025-34040 Details
Description
An arbitrary file upload vulnerability exists in the Zhiyuan OA platform via the wpsAssistServlet interface. The realFileType and fileId parameters are improperly validated during multipart file uploads, allowing unauthenticated attackers to upload crafted JSP files outside of intended directories using path traversal. Successful exploitation enables remote code execution as the uploaded file can be accessed and executed through the web server. Exploitation evidence was observed by the Shadowserver Foundation on 2025-02-01 UTC.
A vulnerability allowing arbitrary file uploads has been identified in the Zhiyuan OA platform versions 5.0, 5.1 through 5.6sp1, 6.0 through 6.1sp2, 7.0, 7.0sp1 through 7.1, 7.1sp1, and 8.0 through 8.0sp2. This vulnerability exists in the wpsAssistServlet interface, where the realFileType and fileId parameters are not properly validated during multipart file uploads. As a result, unauthenticated attackers can exploit path traversal to upload malicious JSP files to unintended directories. Once uploaded, these files can be accessed and executed through the web server, leading to remote code execution.
Users are advised to upgrade to the latest version of Zhiyuan OA. Instructions for downloading the patch can be found on the Zhiyuan official patch tools website.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 24, 2025CISA-ADP
Assessed Jun 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.exploit-db.com/exploits/52490 | CVE | |
| https://service.seeyon.com/patchtools/tp.html#/patchList?type=%E5%AE%89%E5%85%A8%E8%A1%A5%E4%B8%81&id=1 | [email protected] | RemedyVendor |
| https://vulncheck.com/advisories/zhiyuan-oa-system-path-traversal-file-upload | [email protected] | AdvisoryExploit |
| https://www.cnblogs.com/pursue-security/p/17677130.html | [email protected] | ExploitTechnical Description |
| https://www.cnvd.org.cn/flaw/show/CNVD-2021-01627 | [email protected] | AdvisoryBundleRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-434 | Unrestricted Upload of File with Dangerous Type | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Zhiyuan OA | All versions |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | CVE Modified | CVE |
| Nov 20, 2025 | CVE Modified | [email protected] |
| Nov 17, 2025 | CVE Modified | [email protected] |
| Oct 30, 2025 | CVE Modified | [email protected] |
| Jun 24, 2025 | New CVE Received | [email protected] |
Volerion