CVE-2025-5381
Published: 31 May 2025
Summary
CVE-2025-5381 is a medium-severity Path Traversal (CWE-22) vulnerability in Wanglongcn Yifang. Its CVSS base score is 5.1 (Medium).
Operationally, ranked in the top 19.7% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
Yifang CMS versions up to 2.0.2 contain a path traversal vulnerability in the downloadFile function of the /api/File/downloadFile endpoint in the Admin Panel component. Tracked as CVE-2025-5381 and mapped to CWE-22, the flaw stems from insufficient validation of the File argument, which can be manipulated to traverse directories. The issue received a CVSS 4.0 score of 5.1, reflecting network attack vector, low complexity, and the need for high privileges.
An authenticated administrator can exploit the weakness remotely by submitting a crafted File parameter to the affected endpoint, enabling unauthorized access to files outside the intended scope. Public exploit code has been disclosed, though the EPSS score remains low and unchanged at 0.0133 with no observed rise after publication. The referenced Gitee issue and Vuldb entries document the finding but provide no details on patches or mitigation steps.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-16560
Vulnerability details
A vulnerability, which was classified as problematic, was found in Yifang CMS up to 2.0.2. Affected is the function downloadFile of the file /api/File/downloadFile of the component Admin Panel. The manipulation of the argument File leads to path traversal. It…
more
is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Validates pathnames and filenames to prevent traversal outside intended directories.