CVE-2025-5381 Yifang CMS Admin Panel downloadFile path traversal

Medium 5.1 Published Updated

Remote attackers with admin privileges can exploit a path traversal vulnerability in the Yifang CMS admin panel to read arbitrary files.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-5381?

CVE-2025-5381 is a medium-severity path traversal vulnerability in Yifang CMS, published on 31 May 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

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 is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.

Weakness: CWE-22

Which versions are affected by CVE-2025-5381?

It affects 1 product.

Products include Wanglongcn Yifang.

How do I fix CVE-2025-5381?

No fix has been published for CVE-2025-5381 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-5381 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-5381 exists.

Sources

Also known as GHSA-cw9c-84f2-568f.

Is CVE-2025-5381 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free