CVE-2025-58943: 
WordPress vulnerability analysis and mitigation

Overview

CVE-2025-58943 is a Local File Inclusion (LFI) vulnerability in the Agricola WordPress theme developed by axiomthemes, classified under CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program). It affects all versions of the Agricola theme up to and including 1.1.0, and can be exploited by unauthenticated remote attackers. The vulnerability was reported by security researcher "Bonds" on July 20, 2025, and published by Patchstack on August 19, 2025. It carries a CVSS v3.1 base score of 8.1 (High) (Patchstack).

Technical details

The vulnerability stems from improper control of filenames used in PHP include/require statements within the Agricola theme (CWE-98), which allows an attacker to manipulate file path parameters and cause the server to include arbitrary local files. Because no authentication is required and the attack complexity is rated High (suggesting some precondition such as specific server configuration or parameter guessing), an unauthenticated network attacker can craft HTTP requests that pass malicious file paths to the vulnerable include mechanism. This falls under OWASP Top 10 category A3: Injection and is mapped to CAPEC-193 (PHP Remote File Inclusion), though the practical impact here is local file inclusion (Patchstack).

Impact

Successful exploitation allows an unauthenticated attacker to read arbitrary local files on the server, including sensitive configuration files such as WordPress wp-config.php, which contains database credentials. This can lead to complete database compromise, exposure of API keys and secrets, and potentially arbitrary PHP code execution if an attacker can include a file containing PHP code (e.g., via log poisoning). Both confidentiality and integrity of the affected WordPress site are at high risk, with availability also potentially impacted (Patchstack).

Exploitability

As of the time of publication, no public proof-of-concept exploit code has been identified, and there is no confirmed evidence of in-the-wild exploitation. The EPSS score is approximately 0.053%, indicating a currently low 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. However, Patchstack notes that vulnerabilities of this class and severity are frequently used in mass-exploit campaigns targeting WordPress sites at scale (Patchstack).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites using the Agricola theme (version ≤ 1.1.0) via passive scanning tools (e.g., WPScan, Shodan, or Google dorks targeting theme-specific files such as wp-content/themes/agricola/).
  2. Identify vulnerable parameter: Analyze the theme's PHP source code or HTTP responses to locate parameters passed to include/require statements without proper sanitization.
  3. Craft malicious request: Send an unauthenticated HTTP GET or POST request to the vulnerable endpoint with a manipulated file path parameter (e.g., ?template=../../../../wp-config.php or similar path traversal payload).
  4. Read sensitive files: If successful, the server returns the contents of the targeted local file (e.g., wp-config.php exposing database credentials, etc/passwd, or PHP error logs).
  5. Escalate (optional): If the server configuration permits, attempt log poisoning by injecting PHP code into a log file and then including it via the LFI vector to achieve remote code execution (Patchstack).

Indicators of compromise

  • Network: Unusual HTTP requests to WordPress theme endpoints containing path traversal sequences (e.g., ../, ..%2F, %2e%2e%2f) in query parameters; requests targeting sensitive files like wp-config.php or /etc/passwd.
  • Logs: Web server access logs (Apache/Nginx) showing GET/POST requests with encoded path traversal payloads directed at Agricola theme files; PHP error logs showing failed file inclusion attempts or unexpected file reads.
  • File System: Unexpected PHP files or web shells written to the theme directory or upload directories; modification timestamps on theme files inconsistent with legitimate updates.
  • Process: Unusual child processes spawned by the web server process (e.g., bash, curl, wget) that may indicate successful code execution following log poisoning.

Mitigation and workarounds

As of the Patchstack publication date (August 19, 2025), no official patch from the theme developer (axiomthemes) was available for the Agricola theme. Site administrators should update the theme to any version beyond 1.1.0 if a patched release becomes available, or consider replacing the theme. In the interim, Patchstack has issued a virtual patching/mitigation rule for Patchstack-protected sites to block exploitation attempts. Additional workarounds include deploying a Web Application Firewall (WAF) with rules to detect and block path traversal and LFI patterns, auditing access logs for suspicious file inclusion attempts, and restricting PHP file inclusion via open_basedir server configuration (Patchstack).

Community reactions

Patchstack, which discovered and disclosed the vulnerability through researcher "Bonds," has classified it as high priority and noted that vulnerabilities of this type are commonly leveraged in mass-exploit campaigns against WordPress sites. No additional notable vendor statements, researcher commentary, or significant media coverage beyond the Patchstack advisory have been identified at this time (Patchstack).

Additional resources


Source: This report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-86850MEDIUM6.5
  • sku-error-fixer-for-woocommerce
NoNoOct 06, 2026
CVE-2026-88931MEDIUM5.3
  • social-web-suite
NoNoOct 06, 2026
CVE-2026-87841MEDIUM5.3
  • unitechpay-paiements-mobile-money
NoNoOct 06, 2026
CVE-2026-92990MEDIUM5.3
  • sendpress
NoNoOct 06, 2026
CVE-2026-92989MEDIUM4.3
  • sendpress
NoNoOct 06, 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