Skip to content
RCE Write-up Intermediate

Roundcube: CVE-2025–49113

A deserialisation vulnerability in Roundcube's upload.php allowed authenticated users to execute arbitrary code on the server by manipulating the _from parameter. An attacker with valid webmail credentials could run commands on the host system.

medium.com

Published on medium.com

Roundcube is a free and open-source webmail project. It is very feature-rich and available in over eighty languages.

Chetan Chinchulkar, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The _from parameter in upload.php was not properly validated before being deserialised, allowing an attacker to inject a malicious serialised object.

Impact

An authenticated attacker could execute arbitrary commands on the host system, leading to full compromise.

What the attacker needed

Valid webmail credentials; network access to the Roundcube instance

The fix

The vulnerability was fixed in versions 1.5.10 and 1.6.11 by adding checks to ensure the _from parameter contains only safe characters.

How it was found

  1. Create a user account to access the webmail.
  2. Download the proof-of-concept exploit script.
  3. Run the script with the target URL, username, password, and command to execute.
  4. The script retrieves a CSRF token and session cookie, logs in, and injects the payload.
  5. Open the generated URL in a browser while listening on the chosen port to receive a connection.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Roundcube is a webmail program. A bug let anyone with a valid login send a specially crafted request that made the server run their commands. This is dangerous because a normal user account could take over the whole server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.