
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-49942 is a Local File Inclusion (LFI) vulnerability in the Gardis WordPress theme by AncoraThemes, classified under CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program). It affects all versions of the Gardis theme up to and including 1.2.13, and can be exploited by unauthenticated remote attackers. The vulnerability was reported on August 5, 2025, by Tran Nguyen Bao Khanh (VCI - VNPT Cyber Immunity) and published by Patchstack on September 4, 2025. It carries a CVSS v3.1 base score of 8.1 (High) (Patchstack).
The root cause is improper control of filename parameters used in PHP include/require statements within the Gardis theme (CWE-98), which allows user-supplied input to influence which local files are included and executed. An unauthenticated attacker can craft a malicious HTTP request that manipulates the file path parameter to traverse the server's directory structure and include arbitrary local files. No authentication or user interaction is required, though the attack complexity is rated High, suggesting some precondition or constraint must be met (e.g., specific server configuration or parameter guessing). No public proof-of-concept code has been identified at this time (Patchstack).
Successful exploitation allows an attacker to read arbitrary files on the web server, including sensitive configuration files such as wp-config.php (which contains database credentials), potentially enabling complete database takeover. The vulnerability carries high confidentiality, integrity, and availability impacts per its CVSS score, meaning attackers could expose credentials, manipulate application data, or disrupt service. Depending on server configuration, LFI may also be chained with log poisoning or other techniques to achieve remote code execution (Patchstack).
As of the time of publication, there is no known public proof-of-concept exploit and no evidence of active in-the-wild exploitation. The EPSS score is approximately 0.053%, indicating a low current probability of exploitation in the near term. No official patch has been released by AncoraThemes, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Patchstack has noted that vulnerabilities of this class are commonly used in mass-exploit campaigns targeting WordPress sites at scale (Patchstack).
/wp-content/themes/gardis/style.css).page, template, or file parameter in theme functions).../../../../wp-config.php or /etc/passwd, injected into the vulnerable parameter.wp-config.php) to access the database directly, create admin accounts, or chain with other vulnerabilities for remote code execution (Patchstack).../, ..%2F, %2e%2e%2f) in query parameters; requests returning unexpected file content (e.g., PHP configuration data).wp-config.php, /etc/passwd, or PHP session files; presence of web shells in the theme directory if LFI is chained with file upload.As of the publication date, no official patch has been released by AncoraThemes for the Gardis theme. Site owners should monitor for an updated version beyond 1.2.13 and apply it immediately when available. In the interim, Patchstack has issued a virtual patching/mitigation rule for subscribers that blocks exploitation attempts without requiring a code update. Additional workarounds include implementing a Web Application Firewall (WAF) rule to block path traversal patterns, restricting PHP file inclusion via php.ini settings (e.g., disabling allow_url_include), and auditing file inclusion logic to enforce allowlist-based path validation (Patchstack).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."