Vulnerability record · CVE-2024-42009 · published 5 August 2024
CVE-2024-42009: Roundcube Webmail desanitization XSS in message_body()
Roundcube · Webmail
Roundcube Webmail through 1.5.7 and 1.6.x through 1.6.7 contains a cross-site scripting flaw caused by a desanitization issue in message_body() in program/actions/mail/show.php. A crafted email message can execute script in the victim's webmail session, and the vendor has released 1.5.8 and 1.6.8 to fix it.
Description
A Cross-Site Scripting vulnerability in Roundcube through 1.5.7 and 1.6.x through 1.6.7 allows a remote attacker to steal and send emails of a victim via a crafted e-mail message that abuses a Desanitization issue in message_body() in program/actions/mail/show.php.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Automated analysis
critical priorityCVSS 9.3, CISA KEV listing with a near-term due date, and EPSS above the 99th percentile indicate active exploitation and severe impact.
What it is
Roundcube Webmail through 1.5.7 and 1.6.x through 1.6.7 contains a cross-site scripting flaw caused by a desanitization issue in message_body() in program/actions/mail/show.php. A crafted email message can execute script in the victim's webmail session, and the vendor has released 1.5.8 and 1.6.8 to fix it.
Impact
An attacker can run script in the victim's authenticated webmail session, allowing theft and sending of the victim's emails. The CVSS vector rates high confidentiality and integrity impact with scope change.
Attack surface
Reached remotely over the network by delivering a crafted email that the victim opens in Roundcube; no authentication is needed by the attacker, but the victim must interact with the message (UI:R).
Exploitation
CVE-2024-42009 is listed in CISA KEV with a 2025-06-30 remediation due date, and EPSS gives a 30-day probability of 0.82882 (99.654th percentile), indicating active exploitation. No ransomware campaign use is documented.
What to do
- Upgrade Roundcube to 1.5.8 or 1.6.8 (or later) per the vendor security update.
- If immediate patching is not possible, apply vendor-recommended mitigations or discontinue use of the affected webmail per CISA BOD 22-01 guidance.
- Restrict or monitor access to the Roundcube web interface until patched.
- Review mail filtering to block or quarantine messages matching known exploit patterns where feasible.
Detection
- Inspect web server and Roundcube logs for unusual requests to program/actions/mail/show.php or message body rendering endpoints.
- Hunt for anomalous outbound mail or session activity from webmail accounts consistent with stolen-email exfiltration.
- Monitor for unexpected script content or HTML in inbound email bodies reaching Roundcube.
- Alert on Roundcube versions below 1.5.8 or 1.6.8 in asset inventories.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2024-42009 to the Known Exploited Vulnerabilities catalog on 9 June 2025 as "RoundCube Webmail Cross-Site Scripting Vulnerability". Required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. Federal deadline 30 June 2025.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/roundcube/roundcubemail/releases | Release Notes |
| https://github.com/roundcube/roundcubemail/releases/tag/1.5.8 | Release Notes |
| https://github.com/roundcube/roundcubemail/releases/tag/1.6.8 | Release Notes |
| https://roundcube.net/news/2024/08/04/security-updates-1.6.8-and-1.5.8 | Vendor Advisory |
| https://sonarsource.com/blog/government-emails-at-risk-critical-cross-site-scripting-vulnerability-in-roundcube-webmail/ | Technical DescriptionThird Party Advisory |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-42009 | US Government Resource |
Track CVE-2024-42009 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2024-42009), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.