Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2025-34045: Path Traversal and Arbitrary File Read in WeiPHP 5.0

Published Jun 26, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.7High · v4
EPSS3.9%90th percentile
CISA KEVNoNot listed
In the wildReported173 exploitation records in Mallory
Vendor
Weiphp
IdentifiersCVE-2025-34045CWE-22 · Improper Limitation of a Pathname…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
WeiphpWeiphpapplication
FAQ

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.
Activity feed

Recent activity

5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity4Community discussion across Reddit, Mastodon, and other social sources.