Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2026-22324
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-22324 is a PHP Local File Inclusion (LFI) vulnerability in the ThemeREX Melania WordPress theme, classified under CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program). It affects all versions of the Melania theme up to and including 2.5.0, with no official patch currently available. The vulnerability was reported by Tran Nguyen Bao Khanh (VCI - VNPT Cyber Immunity) on September 10, 2025, and published by Patchstack on January 12, 2026. It carries a CVSS v3.1 base score of 8.1 (High) (Patchstack, Red Hat CVE).

Technical details

The root cause is improper validation and sanitization of filename parameters passed to PHP include/require statements within the Melania theme (CWE-98). An unauthenticated remote attacker can manipulate these parameters over the network to cause the application to include arbitrary local files from the server's filesystem. The attack requires high complexity (AC:H) but no privileges or user interaction, meaning it may require specific conditions or timing to exploit but can be attempted without any authentication. No public proof-of-concept exploit code has been identified at this time (Patchstack, Red Hat CVE).

Impact

Successful exploitation allows an unauthenticated attacker to read arbitrary local files on the web server, potentially exposing sensitive data such as WordPress configuration files (wp-config.php) containing database credentials, which could lead to full database compromise. Depending on server configuration, the vulnerability may also enable execution of PHP code present on the server, resulting in high confidentiality, integrity, and availability impacts. Patchstack notes that vulnerabilities of this class are frequently used in mass-exploit campaigns targeting thousands of WordPress sites regardless of their size or traffic (Patchstack).

Exploitability

There is currently no public proof-of-concept exploit code and no confirmed evidence of in-the-wild exploitation. The EPSS score is approximately 0.115%, 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 has flagged it as high priority and warns it is the type of vulnerability commonly leveraged in mass-exploit campaigns against WordPress sites (Patchstack, Red Hat CVE).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites using the ThemeREX Melania theme version ≤ 2.5.0 via passive scanning tools (e.g., WPScan, Shodan) or by inspecting HTTP responses for theme-specific fingerprints in page source or stylesheet headers.
  2. Identify vulnerable parameter: Analyze the theme's PHP source code or observed HTTP requests to locate the endpoint and parameter that is passed unsanitized to a PHP include/require statement.
  3. Craft malicious request: Construct an HTTP request (GET or POST) targeting the vulnerable parameter with a path traversal payload (e.g., ../../../../wp-config.php) to reference a sensitive local file.
  4. Retrieve sensitive data: Submit the crafted request to the target site; if successful, the server will include and output the contents of the targeted file (e.g., database credentials from wp-config.php).
  5. Escalate access: Use retrieved credentials or other sensitive information to gain further access to the database, WordPress admin panel, or underlying server infrastructure (Patchstack).

Indicators of compromise

  • Network: Unusual HTTP requests containing path traversal sequences (e.g., ../, ..%2F, %2e%2e%2f) in query parameters or POST body fields targeting the Melania theme endpoints.
  • Logs: Web server access logs showing requests with traversal patterns to theme-related PHP files; HTTP 200 responses to requests with suspicious filename parameters that should not normally return file content.
  • File System: Unexpected access timestamps on sensitive files such as wp-config.php, /etc/passwd, or other system files that should not be read by the web process.
  • Process: PHP error logs showing include()/require() failures for unusual file paths, or successful inclusions of files outside the WordPress theme directory.

Mitigation and workarounds

No official patch from ThemeREX is currently available for the Melania theme. Site owners should remove or deactivate the Melania theme until a patched version (beyond 2.5.0) is released. Patchstack has issued a virtual patching/mitigation rule for subscribers to block exploitation attempts in the interim. Additionally, administrators should ensure allow_url_include is set to Off in php.ini, implement a Web Application Firewall (WAF) to filter path traversal attempts, and restrict web server file read permissions to the minimum necessary (Patchstack).

Community reactions

Patchstack, which discovered and disclosed the vulnerability, has classified it as high priority and warned of its potential use in mass-exploit campaigns against WordPress sites. The vulnerability was noted in Wordfence's weekly WordPress vulnerability report for the week of January 12–18, 2026. Social media activity includes posts on Bluesky and Mastodon referencing the CVE, indicating moderate community awareness (Wordfence Blog, 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-93031HIGH8.8
  • use-your-drive
NoYesSep 18, 2026
CVE-2026-87915HIGH7.2
  • popup-maker
NoYesSep 18, 2026
CVE-2026-18405HIGH7.2
  • jeg-elementor-kit
NoYesSep 18, 2026
CVE-2026-15797MEDIUM6.4
  • popup-maker
NoYesSep 18, 2026
CVE-2026-90884MEDIUM5.4
  • wp-recipe-maker
NoYesSep 18, 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