CVE-2025-34045: Path Traversal and Arbitrary File Read in WeiPHP 5.0
- Vendor
- Weiphp
CVE-2025-34045 is a path traversal vulnerability in WeiPHP 5.0, an open-source WeChat public account development framework. Insufficient validation of the picUrl parameter in the Material image-download handler allows unauthenticated remote attackers to submit crafted POST requests that traverse directories and read arbitrary server files. Sensitive configuration data and source code may be exposed. The Shadowserver Foundation observed exploitation evidence on February 5, 2025.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows arbitrary file reads on the affected server, potentially disclosing sensitive information contained in configuration files and application source code.
Mitigation
If you can’t patch tonight, do this now.
If an official patch is not yet available, restrict or disable access to the /public/index.php/material/Material/_download_imgage endpoint, especially from untrusted networks. Apply WAF or reverse-proxy rules to block traversal patterns such as ../, encoded traversal variants, and suspicious picUrl values. Limit filesystem permissions for the web application account to reduce readable sensitive files. Monitor logs for anomalous POST requests to the affected endpoint and investigate potential historical exploitation, particularly given reported in-the-wild exploitation evidence.
Remediation
Patch, then assume compromise.
Upgrade to a vendor-fixed release if one is available. The vulnerable endpoint should be modified to strictly validate and canonicalize the picUrl input, reject traversal sequences and absolute paths, and enforce access only to an explicit allowlisted directory or resource set. Server-side code should resolve the requested path and verify it remains within the intended base directory before any file operation is performed. Review exposed secrets and rotate credentials if compromise is suspected.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-34045 exploited in the wild?
- Yes. As of Oct 9, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2025-34045?
- Yes. As of Oct 9, 2026, Mallory has reports of a public exploit for CVE-2025-34045.
- Is there a patch for CVE-2025-34045?
- Upgrade to a vendor-fixed release if one is available. The vulnerable endpoint should be modified to strictly validate and canonicalize the picUrl input, reject traversal sequences and absolute paths, and enforce access only to an explicit allowlisted directory or resource set.
- What products are affected by CVE-2025-34045?
- Weiphp.
- How severe is CVE-2025-34045?
- CVE-2025-34045 has a CVSS v4 score of 8.7 (High) and an EPSS score of 3.9% (90th percentile) as of Oct 9, 2026.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.