Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-49113 PoC — Roundcube Webmail 安全漏洞

Source
Associated Vulnerability
Title: Roundcube Webmail 安全漏洞 (CVE-2025-49113)
Description: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.
Description
POC of CVE-2025-49113
Readme
# CVE-2025-49113 – Roundcube Remote Code Execution (RCE) PoC

This repository contains a **Proof-of-Concept (PoC)** exploit for **CVE-2025-49113**, a critical remote code execution vulnerability in Roundcube Webmail versions prior to 1.5.10 and 1.6.11. The vulnerability arises from insecure PHP object deserialization in the `upload.php` script, allowing authenticated users to execute arbitrary code on the server.

> ⚠️ **Disclaimer:** This PoC is intended for **educational purposes only**. **Do not** use this exploit against systems you do not own or have explicit permission to test. Unauthorized use may be illegal.

---

## Vulnerability Overview

- **CVE ID:** CVE-2025-49113
- **CVSS v3.1 Base Score:** 9.9 (Critical)
- **Affected Versions:**
  - Roundcube 1.5.0 through 1.5.9
  - Roundcube 1.6.0 through 1.6.10
- **Vulnerability Type:** Remote Code Execution via insecure PHP object deserialization
- **Impact:** Allows authenticated users to execute arbitrary code on the server

For detailed information, refer to the [NVD CVE-2025-49113 entry](https://nvd.nist.gov/vuln/detail/CVE-2025-49113).

---

## PoC Script: `exp.py`

The `exp.py` script demonstrates the exploitation of this vulnerability. It sends a crafted request to the vulnerable `upload.php` endpoint, triggering the deserialization flaw and executing a specified command on the server.

### Requirements

`pip -r install requirements.txt`

### Usage

```bash
python3 exp.py <target_url> <username> <password> <command>
```
### Example

```
python3 exp.py http://mail.website.com admin password "id"
```
<img width="784" height="232" alt="Screenshot 2025-08-24 at 20 53 50" src="https://github.com/user-attachments/assets/ad51a14b-b052-4a63-bc77-2e22cb37830e" />
<img width="793" height="469" alt="Screenshot 2025-08-24 at 20 53 31" src="https://github.com/user-attachments/assets/be9e8445-abd9-4329-9a2c-50271b6fa5ec" />

# References

- https://nvd.nist.gov/vuln/detail/CVE-2025-49113
- https://github.com/hakaioffsec/CVE-2025-49113-exploit
- https://github.com/fearsoff-org/CVE-2025-49113
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →