Detect RoundCube Webmail Deserialization of Untrusted Data (CVE-2025-49113) in CrowdStrike LogScale
CVE-2025-49113 is an actively exploited deserialization of untrusted data vulnerability (CWE-502) in Roundcube Webmail. When exploited, an attacker can send a specially crafted serialized PHP object via the web interface, leading to remote code execution on the underlying server. This vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog and requires immediate patching to versions 1.5.10 or 1.6.11.
MITRE ATT&CK
- Tactic
- Initial Access Execution Persistence
LogScale Detection Query
#event_simpleName IN (NetworkConnectIP4, NetworkConnectIP6, HttpRequest)
| $HttpRequest.RequestURL = /roundcube|index\.php/i
| $HttpRequest.RequestURL = /(O%3A|a%3A|s%3A|O:[0-9]+:|a:[0-9]+:|s:[0-9]+:)/i
OR
(
#event_simpleName = ProcessRollup2
| ParentBaseFileName IN ("php", "php-fpm", "apache2", "httpd", "nginx")
| FileName IN ("sh", "bash", "dash", "curl", "wget", "python3", "python", "perl")
| CommandLine = /(nc |ncat|netcat|\/dev\/tcp|base64 -d|echo.*\|.*sh)/i
)
| groupBy([ComputerName, UserName, FileName, CommandLine, $HttpRequest.RequestURL], function=count(1, as=EventCount))
| sort(EventCount, order=desc) CrowdStrike Falcon LogScale CQL detecting PHP deserialization patterns in HTTP requests to Roundcube OR suspicious process spawning from web server parent processes, covering both network and endpoint telemetry for CVE-2025-49113.
Data Sources
Required Tables
False Positives & Tuning
- Web shells or legitimate admin tools running under web server context that invoke shell utilities
- Roundcube cron workers (e.g., garbage collection scripts) spawning shell processes
- Authorized red team exercises generating deserialization payloads against Roundcube
- PHP CLI processes legitimately invoked by web server for batch email processing
Other platforms for CVE-2025-49113
Testing Methodology
Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Roundcube Deserialization Probe via GET Parameter
Expected signal: HTTP GET request to Roundcube /index.php with O%3A in query string captured in web access logs; PHP error log may show unserialize() invocation
- Test 2Roundcube POST Body Deserialization with Crafted Object
Expected signal: POST request to Roundcube /index.php with serialized object in body captured by WAF or proxy; PHP error log records unserialize call or type error
- Test 3Web Shell Drop via Simulated Roundcube RCE
Expected signal: File creation event in Roundcube web root (inotify/auditd/EDR file write event); new .php file with non-standard name in web root directory
- Test 4Outbound Reverse Shell from PHP Process (Post-Exploitation Simulation)
Expected signal: Process creation event: www-data spawning bash with /dev/tcp redirect; outbound TCP connection from web server worker to port 4444; EDR network connection alert for web process initiating outbound shell
Unlock Pro Content
Get the full detection package for CVE-2025-49113 including response playbook, investigation guide, and atomic red team tests.