CVE-2025-34045 WeiPHP Path Traversal Arbitrary File Read

High 8.7 Published Updated

Unauthenticated attackers can read arbitrary files on WeiPHP servers via path traversal in the image download endpoint, exposing sensitive data.

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

What is CVE-2025-34045?

CVE-2025-34045 is a high-severity path traversal vulnerability in Shenzhen Yuanmengyun Technology Co., Ltd. WeiPHP, published on 26 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A path traversal vulnerability exists in WeiPHP 5.0, an open source WeChat public account platform development framework by Shenzhen Yuanmengyun Technology Co., Ltd. The flaw occurs in the picUrl parameter of the /public/index.php/material/Material/_download_imgage endpoint, where insufficient input validation allows unauthenticated remote attackers to perform directory traversal via crafted POST requests. This enables arbitrary file read on the server, potentially exposing sensitive information such as configuration files and source code. Exploitation evidence was observed by the Shadowserver Foundation on 2025-02-05 UTC.

Weakness: CWE-22

Which versions are affected by CVE-2025-34045?

It affects 1 product.

Products include Weiphp Weiphp.

How do I fix CVE-2025-34045?

No fix has been published for CVE-2025-34045 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-34045 being exploited?

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

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-r2vv-r3xx-x6mh.

Is CVE-2025-34045 in your software?

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

Check your SBOMs for free