CVE-2025-58941
NixOS vulnerability analysis and mitigation

Overview

CVE-2025-58941 is a Local File Inclusion (LFI) vulnerability in the axiomthemes Fabric WordPress theme, affecting all versions through 1.5.0. The flaw stems from improper control of filenames in PHP include/require statements (CWE-98), allowing unauthenticated remote attackers to include and execute arbitrary PHP files. The vulnerability was reported 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 is classified under CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program). It arises when the Fabric theme passes user-controlled input directly into PHP include or require statements without adequate sanitization or validation, enabling an attacker to manipulate the file path to include arbitrary local files. Because no authentication is required and no user interaction is needed, the attack surface is broad, though exploitation is rated as high complexity. The vulnerability is mapped to CAPEC-193 (PHP Remote File Inclusion) and falls under OWASP Top 10 category A3: Injection (Patchstack).

Impact

Successful exploitation allows an unauthenticated attacker to include and execute arbitrary PHP files on the web server, potentially leading to full remote code execution. Sensitive files such as WordPress configuration files (e.g., wp-config.php) containing database credentials could be exposed, risking complete database compromise. The vulnerability carries high confidentiality, integrity, and availability impacts, meaning attackers could exfiltrate data, modify site content, or cause denial of service conditions (Patchstack).

Exploitability

As of the time of publication, there is no known public proof-of-concept exploit and no confirmed evidence of in-the-wild exploitation. The EPSS score is approximately 0.053%, indicating a low but non-negligible probability of exploitation in the near term. 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, regardless of site popularity (Patchstack).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites using the axiomthemes Fabric theme version 1.5.0 or earlier using tools like WPScan, Shodan, or Google dorks (e.g., inurl:wp-content/themes/fabric).
  2. Identify vulnerable parameter: Analyze the theme's PHP source code or HTTP responses to locate parameters passed to include/require statements without sanitization.
  3. Craft malicious request: Send a crafted HTTP GET or POST request to the vulnerable endpoint, manipulating the file path parameter to reference a sensitive local file (e.g., ../../../../wp-config.php) or a previously uploaded malicious PHP file.
  4. Achieve file inclusion: If the server processes the request, the included file's contents are executed or returned in the HTTP response, potentially exposing credentials or executing attacker-controlled code.
  5. Escalate access: Use exposed database credentials from wp-config.php to access the database directly, or leverage code execution to establish a web shell for persistent access (Patchstack).

Indicators of compromise

  • Network: Unusual HTTP requests containing path traversal sequences (e.g., ../, ..%2F, %2e%2e%2f) in query parameters targeting the Fabric theme's endpoints; unexpected outbound connections from the web server to external IPs.
  • Logs: Web server access logs showing requests with encoded path traversal patterns or references to sensitive files like wp-config.php; PHP error logs indicating failed or successful file inclusion attempts.
  • File System: Presence of unexpected PHP web shells or newly created files in the WordPress theme directory (wp-content/themes/fabric/); unauthorized modifications to existing theme files.
  • Process: Unusual child processes spawned by the web server process (e.g., bash, curl, wget) that are not part of normal WordPress operation.

Mitigation and workarounds

As of the publication date, no official patch from the theme developer (axiomthemes) is available for the Fabric theme. Patchstack has issued a virtual patching/mitigation rule for Patchstack-protected sites to block exploitation attempts until an official fix is released. Site administrators should immediately consider replacing or disabling the Fabric theme, implementing Web Application Firewall (WAF) rules to detect and block LFI patterns (e.g., path traversal sequences in parameters), and restricting network-level access to the WordPress installation where possible. Monitor web server logs for suspicious file inclusion attempts (Patchstack).

Community reactions

Patchstack, which discovered and disclosed the vulnerability (credited to researcher 'Bonds'), has classified it as high priority and noted that vulnerabilities of this type are frequently leveraged in mass-exploit campaigns against WordPress sites. No significant vendor statement from axiomthemes has been issued, and no official patch has been released as of the disclosure date. Broader community or media coverage beyond Patchstack's advisory is limited (Patchstack).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34191CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-32327CRITICAL9.1
  • NixOS logoNixOS
  • apr-util-bdb
NoYesAug 06, 2026
CVE-2026-34502HIGH7.5
  • NixOS logoNixOS
  • apr-util-ldap
NoYesAug 06, 2026
CVE-2026-34501HIGH7.5
  • NixOS logoNixOS
  • apr-util-ldap
NoYesAug 06, 2026
CVE-2025-49506HIGH7.5
  • NixOS logoNixOS
  • apr-util-sqlite
NoYesAug 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