CVE-2024-42009: RoundCube Webmail Cross-Site Scripting
Roundcube Webmail · listed in the CISA catalog of actively exploited vulnerabilities since 2025-06-09.
- CVSS v3.1 (CVE record)
- 9.3
- critical
- EPSS (exploit probability, 30 days)
- 83%
- higher than 99.6% of all CVEs
- Added to CISA KEV
- 2025-06-09
- US federal due date 2025-06-30
- Ubuntu priority
- high
CVE-2024-42009 explained
CVE-2024-42009 is a cross-site scripting flaw in Roundcube Webmail through 1.5.7 and 1.6.x through 1.6.7. A desanitization issue in the message body display code lets a crafted e-mail message run script in the victim's session. It is listed in the CISA Known Exploited Vulnerabilities catalog, so patching should be a priority.
Impact
A remote attacker needs no account or privileges. They send a crafted e-mail, and the victim only has to view it in Roundcube. The attacker can then steal the victim's emails and send emails as the victim. Confidentiality and integrity impact are high, and the impact extends beyond the vulnerable component. Availability is not affected. Attack complexity is low.
Who is affected
The roundcube source package is affected on the listed releases, and both have fixes. Debian 12 (bookworm) is fixed in 1.6.5+dfsg-1+deb12u3 from the standard archive. Ubuntu 24.04 LTS is fixed in 1.6.6+dfsg-2ubuntu0.1+esm1. That fix is only available through Ubuntu Pro (ESM), so it requires an Ubuntu Pro subscription. Ubuntu rates the priority as high.
Written with AI from the data on this page and checked against it automatically.
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.
CISA 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.
CISA notes
Ubuntu and Debian releases
A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.
Ubuntu 24.04 LTS·roundcube
fix via Ubuntu Pro
Fixed: 1.6.6+dfsg-2ubuntu0.1+esm1
Debian 12 (bookworm)·roundcube
Fixed: 1.6.5+dfsg-1+deb12u3
What to do
- Identify all hosts running the
roundcubepackage. - On Debian 12 (bookworm), update
roundcubeto1.6.5+dfsg-1+deb12u3or later. - On Ubuntu 24.04 LTS, enable Ubuntu Pro (ESM) and update
roundcubeto1.6.6+dfsg-2ubuntu0.1+esm1or later. - Restart the web server or PHP service that serves Roundcube so the updated code is loaded.
- Review mailbox activity for unexpected sent messages, given the known exploitation.
Written with AI from the data on this page and checked against it automatically.
Check and fix on a server
Run on each Ubuntu or Debian server. Replace roundcube with the source package from the table above.
1. Show installed packages built from the source package, with their versions
dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="roundcube"'2. Compare each installed version with the fixed version for your release from the table
I=INSTALLED_VERSION; F=FIXED_VERSION # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac3. Install the fix
sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="roundcube"{print $1}')Services keep running the old code until they are restarted – restart the affected service or check with needrestart.
Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- No – each attack needs manual steps
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Questions about CVE-2024-42009
- Is this vulnerability being exploited?
- Yes. CISA added CVE-2024-42009 to its Known Exploited Vulnerabilities catalog on 2025-06-09, with a US federal due date of 2025-06-30. Known ransomware use is listed as unknown.
- Do users have to do anything for an attack to succeed?
- User interaction is required. The victim must view a crafted e-mail message in Roundcube. No login credentials or privileges are needed by the attacker.
- Do I need Ubuntu Pro to get the fix on Ubuntu 24.04 LTS?
- Yes. The fixed version
1.6.6+dfsg-2ubuntu0.1+esm1is published through Ubuntu Pro (ESM) only.
Written with AI from the data on this page and checked against it automatically.
References
Vendor
Trackers and catalogs
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.