CVE-2023-5631: Roundcube Webmail Persistent Cross-Site Scripting (XSS)
Roundcube Webmail · listed in the CISA catalog of actively exploited vulnerabilities since 2023-10-26.
- CVSS v3.1 (CVE record)
- 6.1
- medium
- EPSS (exploit probability, 30 days)
- 76%
- higher than 99.5% of all CVEs
- Added to CISA KEV
- 2023-10-26
- US federal due date 2023-11-16
- Ubuntu priority
- high
CVE-2023-5631 explained
CVE-2023-5631 is a stored cross-site scripting flaw in Roundcube Webmail. An HTML e-mail containing a crafted SVG document is not properly sanitized by program/lib/Roundcube/rcube_washtml.php, letting a remote attacker load arbitrary JavaScript in the victim's webmail session. It is listed in CISA's Known Exploited Vulnerabilities catalog, so exploitation has been observed.
Impact
A remote, unauthenticated attacker can send a crafted HTML e-mail. If a user opens it in Roundcube, attacker-controlled JavaScript runs in that user's browser within the webmail context. This can expose or alter limited data available to the session, such as mail content, and the impact can reach beyond the vulnerable component. User interaction is required. Availability is not affected.
Who is affected
The roundcube source package is affected on all listed releases, and each has a fixed version. Debian 12 (bookworm) is fixed in 1.6.4+dfsg-1~deb12u1 in the standard archive. On Ubuntu, fixes are only available through Ubuntu Pro (ESM): Ubuntu 18.04 LTS in 1.3.6+dfsg.1-1ubuntu0.1~esm4, Ubuntu 20.04 LTS in 1.4.3+dfsg.1-1ubuntu0.1~esm4, and Ubuntu 22.04 LTS in 1.5.0+dfsg.1-2ubuntu0.1~esm3. Upstream, versions before 1.4.15, 1.5.x before 1.5.5 and 1.6.x before 1.6.4 are vulnerable.
Written with AI from the data on this page and checked against it automatically.
Official 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 required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
CISA notes
Upstream versions (CVE record)
From the CVE record published by the vendor or CVE numbering authority.
- RoundcubemailAffectedFixed in
- ≥ 1.4.0, < 1.5.14
- ≥ 1.5.0, < 1.5.4
- ≥ 1.6.0, < 1.6.3
- 1.5.4
- 1.5.14
- 1.5.15
- 1.6.3
- 1.6.4
| Product | Affected | Fixed in |
|---|---|---|
| Roundcubemail |
|
|
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 22.04 LTS·roundcube
fix via Ubuntu Pro
Fixed: 1.5.0+dfsg.1-2ubuntu0.1~esm3
Ubuntu 20.04 LTS·roundcube
fix via Ubuntu Pro
Fixed: 1.4.3+dfsg.1-1ubuntu0.1~esm4
Ubuntu 18.04 LTS·roundcube
fix via Ubuntu Pro
Fixed: 1.3.6+dfsg.1-1ubuntu0.1~esm4
Debian 12 (bookworm)·roundcube
Fixed: 1.6.4+dfsg-1~deb12u1
What to do
- Identify all hosts running the
roundcubepackage and check the installed version against the fixed version for your release. - On Debian 12 (bookworm), update
roundcubeto1.6.4+dfsg-1~deb12u1or later from the standard archive. - On Ubuntu 18.04 LTS, 20.04 LTS and 22.04 LTS, enable Ubuntu Pro (ESM) and install the fixed
roundcubepackage. - Restart the web server or PHP service that serves Roundcube so the patched code is loaded.
- Treat this as urgent because the flaw is known to be exploited; review webmail activity for suspicious HTML messages.
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-2023-5631
- Do users need to do anything for the attack to work?
- Yes. The victim must open the crafted HTML e-mail in Roundcube. No attacker account or privileges are needed, since the attacker only has to send the message.
- Why do Ubuntu fixes require Ubuntu Pro?
- For all listed Ubuntu releases, the fixed
roundcubepackages are published only in the Ubuntu Pro (ESM) channel. Ubuntu 18.04 LTS and 20.04 LTS have also left standard support, so ESM is the only source of fixes there. - Is this vulnerability being exploited?
- Yes. CISA added CVE-2023-5631 to its Known Exploited Vulnerabilities catalog on 2023-10-26. Whether it has been used in ransomware campaigns is unknown.
Written with AI from the data on this page and checked against it automatically.
References
Vendor
- roundcube.net/news/2023/10/16/security-update-1.6.4-released
- roundcube.net/news/2023/10/16/security-updates-1.5.5-and-…
- github.com/roundcube/roundcubemail/commit/6ee6e7a…
- github.com/roundcube/roundcubemail/commit/41756cc…
- github.com/roundcube/roundcubemail/releases/tag/1.6.4
- github.com/roundcube/roundcubemail/releases/tag/1.5.5
Other advisories
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.