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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Seeyon (Beijing Zhiyuan Internet Software Co., Ltd.) | Zhiyuan OA Web Application System | 5.0, 5.1 – ≤ 5.6sp1, 6.0 – ≤ 6.1sp2, 7.0, 7.0sp1 – ≤ 7.1, 7.1sp1, 8.0 – ≤ 8.0sp2 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Zhiyuan OA - arbitrary file upload leading EDB-52490 · webapps · Apr 6, 2026
GitHub 1 repository
-
jisi-001/CVE-2025-34040Exp ★ 2 · Aug 29, 2025
致远OA存在文件上传导致RCE(CVE-2025-34040)
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Zhiyuan OA Platform - Arbitrary File Upload http/cves/2025/CVE-2025-34040.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- https://service.seeyon.com/patchtools/tp.html#/patchList?type=%E5%AE%89%E5%85%A8%E8%A1%A5%E4%B8%81&id=1 vendor-advisory patch
- https://www.cnblogs.com/pursue-security/p/17677130.html exploit technical-description
- https://www.cnvd.org.cn/flaw/show/CNVD-2021-01627 third-party-advisory
- https://vulncheck.com/advisories/zhiyuan-oa-system-path-traversal-file-upload third-party-advisory