CVE-2023-43770: Roundcube Webmail Persistent Cross-Site Scripting (XSS)
Roundcube Webmail · listed in the CISA catalog of actively exploited vulnerabilities since 2024-02-12.
- CVSS v3.1 (CVE record)
- 6.1
- medium
- EPSS (exploit probability, 30 days)
- 64%
- higher than 99.2% of all CVEs
- Added to CISA KEV
- 2024-02-12
- US federal due date 2024-03-04
- Ubuntu priority
- high
CVE-2023-43770 explained
CVE-2023-43770 is a persistent cross-site scripting flaw in Roundcube Webmail. Crafted links in text/plain e-mail messages are mishandled by program/lib/Roundcube/rcube_string_replacer.php, so script content can run in a user's webmail session. CISA lists it as known exploited, which makes patching urgent for any exposed Roundcube installation.
Impact
A remote attacker needs no account or privileges. The attacker sends a crafted plain-text e-mail, and the attack works when the recipient interacts with it in Roundcube. Script can then run in the victim's browser within the webmail context. Because the scope is changed, effects can reach beyond the vulnerable component. Limited reading or changing of data is possible. Availability is not affected. Affected versions are Roundcube before 1.4.14, 1.5.x before 1.5.4 and 1.6.x before 1.6.3.
Who is affected
The source package roundcube is affected on all listed releases, and each has a fixed version. Debian 12 (bookworm) is fixed in 1.6.3+dfsg-1~deb12u1 in the standard archive. On Ubuntu, fixes come only through Ubuntu Pro (ESM): Ubuntu 22.04 LTS 1.5.0+dfsg.1-2ubuntu0.1~esm2, Ubuntu 20.04 LTS 1.4.3+dfsg.1-1ubuntu0.1~esm3, Ubuntu 18.04 LTS 1.3.6+dfsg.1-1ubuntu0.1~esm3 and Ubuntu 16.04 LTS 1.2~beta+dfsg.1-0ubuntu1+esm3. Ubuntu 16.04 LTS is end of life.
Written with AI from the data on this page and checked against it automatically.
Official description
Roundcube before 1.4.14, 1.5.x before 1.5.4, and 1.6.x before 1.6.3 allows XSS via text/plain e-mail messages with crafted links because of program/lib/Roundcube/rcube_string_replacer.php behavior.
CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
CISA notes
Upstream versions (CVE record)
Version ranges from CISA's enrichment of the CVE record (CPE-based); the record itself lists none.
- roundcube webmailAffectedFixed in
- < 1.4.14
- ≥ 1.5.0, < 1.5.4
- ≥ 1.6.0, < 1.6.3
not statedVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none.
- debian_linuxAffectedFixed in
- 10
not statedVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none.
| Product | Affected | Fixed in |
|---|---|---|
| roundcube webmailVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none. |
| not stated |
| debian_linuxVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none. |
| not stated |
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~esm2
Ubuntu 20.04 LTS·roundcube
fix via Ubuntu Pro
Fixed: 1.4.3+dfsg.1-1ubuntu0.1~esm3
Ubuntu 18.04 LTS·roundcube
fix via Ubuntu Pro
Fixed: 1.3.6+dfsg.1-1ubuntu0.1~esm3
Ubuntu 16.04 LTS·roundcube
fix via Ubuntu Pro
Fixed: 1.2~beta+dfsg.1-0ubuntu1+esm3
Debian 12 (bookworm)·roundcube
Fixed: 1.6.3+dfsg-1~deb12u1
What to do
- On Debian 12 (bookworm), update
roundcubeto1.6.3+dfsg-1~deb12u1or later. - On Ubuntu 18.04, 20.04 and 22.04 LTS, enable Ubuntu Pro (ESM) and install the listed fixed
roundcubeversion. - Restart the web server or PHP service so Roundcube runs the updated code.
- Plan an upgrade of Ubuntu 16.04 LTS systems to a supported release; until then, apply the ESM fix if you have Ubuntu Pro.
- Confirm the installed
roundcubeversion matches or exceeds the fixed version on every webmail host.
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
- Partial – limited control or information
Weakness: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Questions about CVE-2023-43770
- Why does Ubuntu rate this high when the CVSS severity is medium?
- The facts list Ubuntu's priority as high and the CVSS severity as medium. They do not explain how either rating was set. Separately, CISA lists the CVE as known exploited, so treat it as urgent regardless of the CVSS rating.
- Do I need Ubuntu Pro to get the fix on Ubuntu 22.04 LTS?
- Yes. For all listed Ubuntu releases, including 22.04 LTS, the fixed
roundcubepackage is available only through Ubuntu Pro (ESM). - Does a user have to do anything for the attack to work?
- Yes. User interaction is required. The attack relies on a crafted text/plain e-mail being handled by the recipient in Roundcube. No login or privileges are needed by the attacker.
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.