Skip to content

CVE-2025-49113: Authenticated RCE via PHP Deserialization in Roundcube Webmail (upload.php)

HERMES

HERMES THREAT SCORE & ENTERPRISE WEBMAIL EXPOSURE

Target: Roundcube Webmail (prior to 1.5.10 / 1.6.11)
Confidence: 99%
97 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 19 / 20
Threat Activity 20 / 20
Weaponization 20 / 20
Exposure 19 / 20
Prevalence 19 / 20
Impact 20 / 20
Exploit Maturity 20 / 20
Attack Chain Potential 20 / 20
⚖️ Divergence & Operational Rationale

Hermes assesses CVE-2025-49113 at an HTS of 97 (CRITICAL SEVERITY). This PHP deserialization flaw in the attachment upload handling allows an attacker with basic email credentials to execute shell commands with www-data privileges, enabling full exfiltration of enterprise mailboxes and lateral network pivoting.

🕸️ Connected Knowledge Graph & Provenance

CVE-2025-49113: Authenticated RCE via PHP Deserialization in Roundcube Webmail (upload.php)VULNERABILITY

Connected Nodes: 1
Active Relationships (Outgoing)
→ usesATTACK TECHNIQUET1059: Command and Scripting Interpreter
90% VERY_HIGH

Adversaries abuse command and script interpreters (Bash, Python, PowerShell) to execute arbitrary commands.

🔍 Why is this related? (Evidence & Provenance)

“Attack execution telemetry aligns with MITRE ATT&CK technique T1059.”

Supporting Verified Evidence:
ParameterTechnical SpecificationOperational Impact
CVE IdentifierCVE-2025-49113Official NVD / MITRE record
Associated CWECWE-502: Deserialization of Untrusted DataUnsanitized PHP object deserialization via unserialize()
CVSS v3.1 Score9.9 CRITICALCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0 Score9.4 CRITICALCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Applicable CPEscpe:2.3:a:roundcube:webmail:*:*:*:*:*:*:*:*
cpe:2.3:a:roundcube:roundcube_webmail:*:*:*:*:*:*:*:*
Enterprise webmail portal servers
Affected VersionsVersions < 1.5.10 and 1.6.x branches < 1.6.11Production Roundcube Webmail deployments
Fixed Versions1.5.10 and 1.6.11 (June 2025)Official Roundcube security releases

  • CISA KEV: Added on February 20, 2026; immediate remediation required.
  • EPSS Score: 0.98897 (Percentile: 99.925% — widespread threat exploitation).
  • Operational Status: Confirmed active in-the-wild exploitation by state-sponsored cyber espionage units.
  • PoC & Weaponization: Weaponized public PoCs using Property-Oriented Programming (POP) gadget chains triggered via the _from parameter in upload.php.
  • Access Conditions: Requires basic authenticated user account; HTTP/HTTPS network access (port 80 or 443); low complexity.

  • Threat Actors: Russian state-sponsored actors (Winter Vivern / UAC-0114, APT28 / Fancy Bear) and intelligence operators.
  • Observed Campaigns: Large-scale intelligence gathering operations against European ministries, embassies, and critical infrastructure.
  • Associated Malware: Custom PHP webshells, IMAP harvesting automation, and persistent reverse proxies.
  • Exploitation Timeline: Patched by Roundcube in June 2025; escalated to CISA KEV in February 2026 due to aggressive campaigns.

  • Suspicious Web Requests: Requests targeting _action=upload or upload.php containing serialized PHP strings in _from parameter.
  • Malicious File Drops: Creation of unrecognized .php files in web server document roots or temp/ folders.
title: Suspicious Deserialization in Roundcube upload.php (CVE-2025-49113)
id: d1c2b3a4-4911-4f89-8012-3456789abcde
status: test
description: Detects serialized PHP object injection in the _from parameter of Roundcube Webmail
references:
- https://roundcube.net/news/2025/06/01/security-updates-1.6.11-and-1.5.10
author: Hermes Codex Research
date: 2026-09-10
logsource:
category: webserver
detection:
selection:
cs_uri_stem|contains:
- 'upload.php'
- '/index.php'
cs_uri_query|contains:
- '_action=upload'
- '_from='
cs_uri_query|re: '.*_from=(O%3A|O:[0-9]+|a%3A|a:[0-9]+|s%3A|Tzo).*'
condition: selection
falsepositives:
- None expected; serialized PHP objects are not legitimate in this parameter
level: critical
rule Exploit_Roundcube_Deserialization_CVE_2025_49113 {
meta:
description = "Detects PHP deserialization exploit payloads targeting Roundcube upload.php"
author = "Hermes Codex Research"
date = "2026-09-10"
reference = "CVE-2025-49113"
strings:
$action = "_action=upload" ascii
$param = "_from=" ascii
$php_obj = /O:[0-9]+:"[a-zA-Z0-9_]+":[0-9]+:\{/ ascii
$gadget = "GuzzleHttp" ascii
condition:
($action and $param and $php_obj) or ($php_obj and $gadget)
}
alert http $EXTERNAL_NET any -> $WEBMAIL_SERVERS any (msg:"HERMES - Roundcube Webmail upload.php PHP Deserialization Exploit (CVE-2025-49113)"; flow:to_server,established; content:"_action=upload"; http_uri; content:"_from="; http_uri; pcre:"/_from=(?:O%3A|O:[0-9]+|Tzo)/Ui"; classtype:web-application-attack; sid:202549113; rev:1;)
  • Web Access Logs: Monitor HTTP POST requests to /?_task=settings&_action=upload.
  • System Process Trees: Inspect php-fpm or apache2 spawning interactive shells (/bin/sh, /bin/bash, curl).
  • MITRE ATT&CK: T1190 (Exploit Public-Facing Application), T1059.004 (Unix Shell), T1114.002 (Remote Email Collection), T1505.003 (Web Shell).

  1. Upgrade Immediately: Update Roundcube Webmail to 1.6.11 or 1.5.10.
  2. Restart Web and PHP Daemons: Execute systemctl restart php*-fpm and web server services to clear bytecode caches.
  3. Deploy Temporary WAF Filter: Block requests containing serialized PHP patterns in URI parameters.
  4. Audit Mailbox Accounts: Review user authentication logs to identify compromised accounts used to deliver payloads.
  5. Inspect Temp Directories: Audit the temp/ folder and remove unverified uploaded files or script artifacts.

”What happens if this vulnerability is exploited in an enterprise?”

Section titled “”What happens if this vulnerability is exploited in an enterprise?””
  1. Initial Credential Compromise: The attacker obtains valid employee webmail credentials through targeted credential stuffing or phishing.
  2. Exploit Payload Delivery: Logging in to Roundcube, the attacker submits a malformed request to upload.php, injecting a PHP gadget chain into the _from parameter.
  3. System Command Execution: The application deserializes the untrusted object, spawning a reverse shell executing under the web server account (www-data).
  4. Enterprise Email Exfiltration: The adversary directly reads raw email storage files across Dovecot/Postfix spools, stealing executive communications, financial forecasts, and proprietary files.
  5. Lateral Network Compromise: Leveraging the compromised webmail server in the DMZ, the attacker establishes persistence tunnels to pivot into internal corporate Active Directory controllers.