CVE-2025-58709
WordPress vulnerability analysis and mitigation

Overview

CVE-2025-58709 is a PHP Local File Inclusion (LFI) vulnerability in the Axiomthemes Legacy WordPress theme, affecting all versions up to and including 1.9. The flaw stems from improper control of filename parameters in PHP include/require statements (CWE-98). It was reported by researcher "Bonds" on August 3, 2025, and published by Patchstack on September 2, 2025. The vulnerability carries a CVSS v3.1 base score of 8.1 (High), exploitable remotely without authentication or user interaction (Patchstack).

Technical details

The vulnerability is classified under CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program). The Legacy theme fails to properly sanitize or validate user-supplied input used in PHP include or require statements, allowing an unauthenticated remote attacker to manipulate the filename parameter to include arbitrary local files from the server's filesystem. Exploitation requires no privileges and no user interaction, though the attack complexity is rated High, suggesting some precondition or bypass is needed. The vulnerability is categorized under OWASP Top 10 A3: Injection (Patchstack).

Impact

Successful exploitation allows an attacker to read arbitrary local files on the web server, including sensitive configuration files such as wp-config.php (which contains database credentials), potentially enabling complete database takeover. The high confidentiality, integrity, and availability impacts reflect the risk of credential theft, unauthorized data access, and possible escalation to remote code execution if combined with a file upload or log poisoning technique. All WordPress sites running the Legacy theme at version 1.9 or earlier are affected (Patchstack).

Exploitability

As of the time of publication, there is no known public proof-of-concept exploit and no confirmed in-the-wild exploitation. The EPSS score is approximately 0.115%, indicating a low but non-negligible probability of exploitation in the near term. No threat actor attribution has been made, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Patchstack notes that vulnerabilities of this class are commonly used in mass-exploit campaigns targeting WordPress sites at scale (Patchstack).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites using the Axiomthemes Legacy theme (version ≤ 1.9) via tools like WPScan, Shodan, or by inspecting page source for theme indicators such as /wp-content/themes/legacy/.
  2. Identify vulnerable parameter: Locate the theme's PHP file inclusion mechanism — typically a URL parameter or POST field that controls which template or file is loaded (e.g., a file, page, or template parameter passed to an include() call).
  3. Craft LFI payload: Submit a crafted HTTP request with a path traversal sequence in the vulnerable parameter, such as ../../../../wp-config.php or /etc/passwd, to traverse the directory structure and include a sensitive file.
  4. Extract sensitive data: Review the HTTP response for the contents of the included file. If wp-config.php is successfully included, extract database credentials (DB_NAME, DB_USER, DB_PASSWORD, DB_HOST).
  5. Escalate access: Use extracted credentials to access the WordPress database directly, or chain the LFI with a log poisoning or file upload technique to achieve remote code execution (Patchstack).

Indicators of compromise

  • Network: Unusual HTTP GET or POST requests to WordPress theme files containing path traversal sequences (e.g., ../, %2e%2e%2f, ....//) in query parameters; requests returning unexpected file content (e.g., PHP config syntax in HTTP responses).
  • Logs: WordPress or web server access logs showing requests to theme-related endpoints with encoded or raw directory traversal strings; repeated 200 OK responses to requests with suspicious file path parameters.
  • File System: Unexpected access timestamps on sensitive files such as wp-config.php, /etc/passwd, or server log files; presence of web shells in the theme directory if LFI was chained with a file upload.
  • Process: Unusual database connection attempts from the web server process using credentials extracted from wp-config.php; unexpected outbound connections from the web server process.

Mitigation and workarounds

As of the publication date, no official patch from Axiomthemes is available for the Legacy theme. Patchstack has issued a virtual patching/mitigation rule for its subscribers to block exploitation attempts until an official fix is released. Site administrators should update the theme to a version beyond 1.9 if one becomes available, or consider replacing the theme with a supported alternative. Additional mitigations include deploying a Web Application Firewall (WAF) with LFI detection rules, implementing strict server-side input validation for file inclusion parameters, and applying the principle of least privilege to the web server process (Patchstack).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-92541HIGH7.2
  • import-users-from-csv-with-meta
NoYesSep 20, 2026
CVE-2026-92540HIGH7.2
  • import-users-from-csv-with-meta
NoYesSep 20, 2026
CVE-2026-86785MEDIUM5.3
  • woo-to-facebook-shop
NoNoSep 20, 2026
CVE-2026-92965LOW3.7
  • tiktok-for-business
NoYesSep 20, 2026
CVE-2026-92423LOW2.7
  • meow-gallery
NoYesSep 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management