Path Traversal and Arbitrary File Read in WeiPHP 5.0
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.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
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.
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.
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.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.