CVE-2024-42009 RoundCube Webmail Cross-Site Scripting
Remote attackers can steal and send victim emails via crafted messages exploiting a sanitization flaw in Roundcube webmail.
- Exploited in the wild
- Since 9 Jun 2025
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-42009?
CVE-2024-42009 is a critical cross-site scripting vulnerability in Roundcube Webmail, published on 5 Aug 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2024-42009?
It affects 1 product.
Products include Roundcube Webmail.
How do I fix CVE-2024-42009?
Upgrade to a fixed version. US federal agencies must fix it by 30 Jun 2025.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-42009 being exploited?
Yes. Attackers have exploited CVE-2024-42009 in the wild since at least 9 Jun 2025.
Public exploit code: 1 Nuclei template and 6 proofs of concept on GitHub.
Other vulnerabilities in Roundcube Webmail
Sources
Also known as DEBIAN-CVE-2024-42009, GHSA-j43g-prf4-578j, UBUNTU-CVE-2024-42009, USN-7636-1.