Roundcube Webmail before 1.5.10 and 1.6.x before 1.6.11 allows remote code execution by authenticated users because the _from parameter in a URL is not validated in program/actions/settings/upload.php, leading to PHP Object Deserialization. An attacker can execute arbitrary system commands as the web server.
Linux,Unix
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/multi/http/roundcube_auth_rce_cve_2025_49113
msf exploit(roundcube_auth_rce_cve_2025_49113) > show targets
...targets...
msf exploit(roundcube_auth_rce_cve_2025_49113) > set TARGET < target-id >
msf exploit(roundcube_auth_rce_cve_2025_49113) > show options
...show and set options...
msf exploit(roundcube_auth_rce_cve_2025_49113) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security