CVE-2025-58891
WordPress vulnerability analysis and mitigation

Overview

CVE-2025-58891 is a PHP Local File Inclusion (LFI) vulnerability in the AncoraThemes Sanger WordPress theme, classified under CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program). It affects all versions of the Sanger theme from initial release through version 1.24.0. The vulnerability was published on December 18, 2025, and was assigned by Patchstack. It carries a CVSS v3.1 base score of 8.1 (High), exploitable remotely without authentication or user interaction (Feedly, Patchstack).

Technical details

The root cause is improper control of filenames used in PHP include/require statements within the Sanger WordPress theme (CWE-98), which allows an attacker to manipulate the filename parameter to include arbitrary local files from the server's filesystem. This attack vector is network-accessible and requires no privileges or user interaction, though the high attack complexity rating suggests some conditions or constraints must be met for successful exploitation. The vulnerability maps to CAPEC-193 (PHP Remote File Inclusion) but manifests as local file inclusion in practice, meaning attackers can read sensitive files on the server rather than executing remote code directly (Feedly, Patchstack).

Impact

Successful exploitation allows unauthenticated remote attackers to read arbitrary files from the server, including sensitive configuration files such as wp-config.php, which contains database credentials and secret keys. This can lead to full compromise of the WordPress installation, credential theft, and potential lateral movement to the underlying database or hosting environment. The vulnerability carries high impact across confidentiality, integrity, and availability dimensions (Feedly).

Exploitability

As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation. The EPSS score is approximately 0.053%, indicating a low probability of exploitation in the near term. The vulnerability has not been added to the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported (Feedly).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites using the AncoraThemes Sanger theme at version 1.24.0 or earlier, using tools like WPScan or by inspecting theme metadata in the site's HTML source or style.css file.
  2. Identify vulnerable parameter: Locate the PHP include/require statement in the theme that accepts user-controlled input for the filename, typically via a GET or POST parameter.
  3. Craft LFI payload: Construct a request with a path traversal payload (e.g., ../../../../wp-config.php or /etc/passwd) targeting the vulnerable parameter to attempt local file inclusion.
  4. Extract sensitive data: If successful, the server returns the contents of the targeted file (e.g., wp-config.php), exposing database credentials, authentication keys, and salts.
  5. Leverage credentials: Use extracted credentials to access the WordPress database directly or authenticate to the WordPress admin panel for further compromise (Feedly).

Indicators of compromise

  • Network: Unusual HTTP GET or POST requests to theme-related endpoints containing path traversal sequences (e.g., ../, ..%2F, %2e%2e%2f) in parameter values.
  • Logs: WordPress or web server access logs showing requests with encoded path traversal strings targeting theme files; repeated 200 responses to requests with suspicious filename parameters.
  • File System: No direct file system artifacts expected from read-only LFI, but monitor for subsequent unauthorized access to the WordPress admin panel or database using credentials that may have been exposed.
  • Process: Unexpected database connections from new IP addresses following suspicious web requests, potentially indicating credential reuse after file disclosure (Feedly).

Mitigation and workarounds

Users should immediately update the AncoraThemes Sanger WordPress theme to a version newer than 1.24.0, which contains the patch for this vulnerability. As a temporary workaround, implement Web Application Firewall (WAF) rules to detect and block path traversal and local file inclusion attempts targeting the theme. Additionally, review web server access logs for suspicious file inclusion patterns and restrict file system permissions to limit the files accessible by the web server process (Feedly, 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-78570CRITICAL9.8
  • totaldonations
NoNoAug 25, 2026
CVE-2026-78568CRITICAL9.8
  • totaldonations
NoNoAug 25, 2026
CVE-2026-78572HIGH8.1
  • kalles-addons
NoNoAug 25, 2026
CVE-2026-78576HIGH7.5
  • readabler
NoYesAug 25, 2026
CVE-2026-76128MEDIUM6.4
  • ecommerce-product-catalog
NoYesAug 25, 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