CVE-2025-58894
WordPress vulnerability analysis and mitigation

Overview

CVE-2025-58894 is a Local File Inclusion (LFI) vulnerability in the axiomthemes Good Mood WordPress theme, classified under CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program). It affects Good Mood versions up to and including 1.16, allowing unauthenticated remote attackers to include arbitrary local files and expose their contents. The vulnerability was reported by security researcher Bonds on August 3, 2025, and published by Patchstack on September 2, 2025. It carries a CVSS v3.1 base score of 8.1 (High) (Patchstack).

Technical details

The root cause is improper validation and sanitization of user-supplied input used in PHP include/require statements within the Good Mood WordPress theme (CWE-98). An attacker can manipulate a filename parameter to traverse the server's file system and force the PHP interpreter to include arbitrary local files, exposing their contents. Exploitation requires no authentication and no user interaction, but is rated High complexity (AC:H), suggesting some precondition such as a specific server configuration or parameter guessing may be required. No public proof-of-concept code has been identified at this time (Patchstack).

Impact

Successful exploitation allows a network-based attacker to read arbitrary files from the server's filesystem, including sensitive configuration files such as wp-config.php (which contains database credentials), /etc/passwd, and other server-side files. This can lead to full database compromise, credential theft, and potentially further lateral movement within the hosting environment. Confidentiality, integrity, and availability are all rated High impact in the CVSS scoring (Patchstack).

Exploitability

No public proof-of-concept exploit code has been identified, and there is no evidence of active in-the-wild exploitation at this time. The EPSS score is approximately 0.053%, indicating a low current probability of exploitation in the near term. The vulnerability has not been added to the CISA Known Exploited Vulnerabilities (KEV) catalog. Patchstack has noted that vulnerabilities of this class (LFI with CVSS 8.1) are frequently used in mass-exploit campaigns targeting WordPress sites regardless of traffic size (Patchstack).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites using the Good Mood theme (version ≤ 1.16) via web crawlers, Wappalyzer, or by inspecting page source for theme-specific CSS/JS paths (e.g., /wp-content/themes/good-mood/).
  2. Identify vulnerable parameter: Analyze the theme's PHP source code or HTTP requests to locate parameters that are passed to PHP include/require statements without proper sanitization.
  3. Craft LFI payload: Construct a malicious HTTP request with a path traversal sequence (e.g., ../../../../wp-config.php or ../../../../etc/passwd) in the vulnerable parameter.
  4. Send request: Submit the crafted GET or POST request to the target WordPress site without any authentication credentials.
  5. Extract sensitive data: Review the server's response for the contents of the included file, such as database credentials from wp-config.php, which can then be used for further compromise (Patchstack).

Indicators of compromise

  • Network: Unusual HTTP requests containing path traversal sequences (e.g., ../, ..%2F, %2e%2e%2f) in query parameters or POST body targeting WordPress theme endpoints.
  • Logs: Web server access logs showing requests to theme-related PHP files with suspicious parameter values referencing sensitive files like wp-config.php, passwd, or other system files; HTTP 200 responses to such requests.
  • File System: No direct file system artifacts expected from read-only LFI, but monitor for subsequent unauthorized database access or new admin accounts if credentials were exfiltrated.
  • Process: Unexpected database connection attempts from external IPs using credentials stored in wp-config.php following suspicious web requests.

Mitigation and workarounds

No official patch from the vendor (axiomthemes) was available as of the publication date; the Patchstack advisory notes "No official patch available" for versions ≤ 1.16. Patchstack has issued a virtual patching/mitigation rule for its subscribers to block exploitation attempts until an official patch is released. Site owners should update the Good Mood theme to any version above 1.16 if a patched release becomes available, or consider replacing the theme. As interim measures, implement a Web Application Firewall (WAF) with LFI detection rules, restrict PHP file inclusion via php.ini settings (e.g., open_basedir), and monitor server logs for path traversal patterns (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-16145HIGH7.2
  • gdpr-compliant-recaptcha-for-all-forms
NoYesAug 15, 2026
CVE-2026-18387MEDIUM6.5
  • groundhogg
NoYesAug 15, 2026
CVE-2026-16586MEDIUM6.5
  • contest-gallery
NoYesAug 15, 2026
CVE-2026-17090MEDIUM6.4
  • beaver-builder-lite-version
NoYesAug 15, 2026
CVE-2026-16146MEDIUM4.9
  • gdpr-compliant-recaptcha-for-all-forms
NoYesAug 15, 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