ZeroHour

CVE-2023-5631

KEV PoC large

Stored XSS in Roundcube Webmail exploited in the wild (CVE-2023-5631)

CISA: Roundcube Webmail Persistent Cross-Site Scripting (XSS) Vulnerability

CVSS 3.1
5.4 medium
EPSS
76%p99
Published
()
KEV added
AI analysis

CVE-2023-5631 is a stored cross-site scripting (XSS) flaw in Roundcube Webmail caused by insufficient sanitization of SVG content embedded in HTML email by program/lib/Roundcube/rcube_washtml.php. A remote attacker triggers it by sending a crafted HTML email containing a malicious SVG document; when the recipient views the message, arbitrary JavaScript is loaded in their browser session. This lets the attacker act as the victim within the webmail session — for example reading mail or capturing session data — and it has been used in targeted espionage rather than commodity attacks. Anyone running Roundcube before 1.4.15, 1.5.x before 1.5.5, or 1.6.x before 1.6.4 is affected, including Roundcube packages shipped by Debian and Fedora. Exploitation is confirmed in the wild: the flaw was added to CISA's KEV on 2023-10-26, the Winter Vivern espionage group is reported to have exploited it as a zero-day against government entities, and EPSS puts the 30-day exploitation probability at ~76% (99th percentile).

What to do: Upgrade to Roundcube 1.6.4, or 1.5.5 on the 1.5.x branch and 1.4.15 on the 1.4.x branch; apply the corresponding patched roundcube packages for Debian or Fedora. Per the CISA KEV required action, apply vendor mitigations or discontinue use if patching is unavailable. Hunt for compromise by reviewing webmail logs and stored messages for crafted SVG/HTML emails sent around the exploitation window, and review sessions for signs of hijacking.

Affected
Roundcube WebmailAll versions before 1.4.15; 1.5.x before 1.5.5; 1.6.x before 1.6.4
Debian Linux (roundcube webmail package)Debian releases shipping Roundcube prior to 1.4.15 / 1.5.5 / 1.6.4
Fedora (roundcube webmail package)Fedora releases shipping Roundcube prior to 1.4.15 / 1.5.5 / 1.6.4
Estimated exposure
largetens of thousands of internet-exposed Roundcube servers; plausibly 100k+ end users, unknown precisely — Roundcube is one of the most widely deployed open-source webmail frontends — bundled by hosting providers and commonly self-hosted by universities, ISPs, and government mail servers — and public internet scans have historically indexed…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Roundcube before 1.4.15, 1.5.x before 1.5.5, and 1.6.x before 1.6.4 allows stored XSS via an HTML e-mail message with a crafted SVG document because of program/lib/Roundcube/rcube_washtml.php behavior. This could allow a remote attacker to load arbitrary JavaScript code.

CISA Known Exploited Vulnerability
Affected
Roundcube Webmail
Required action
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Due date
Ransomware use
Unknown
Vendors
roundcubedebianfedoraproject
Products
webmail, debian linux, fedora
Weakness
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

In the news