CVE-2023-5631
Stored XSS vulnerability in Roundcube
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.1
Stored XSS vulnerability in Roundcube
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.
- Record
CVE-2023-5631- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
EUVDEUVD-2023-57924
6.1
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.
- Record
EUVD-2023-57924- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-qf8f-27cp-gw76
6.1
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...
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.
- Record
GHSA-qf8f-27cp-gw76- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
CISA KEV No score
Roundcube Webmail Persistent Cross-Site Scripting (XSS) Vulnerability
Roundcube Webmail contains a persistent cross-site scripting (XSS) vulnerability that allows a remote attacker to run malicious JavaScript code.
- Record
CVE-2023-5631- Weakness
- CWE-79
- Updated
- 2026-11-02
NVD
6.1
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.
- Record
CVE-2023-5631- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV
6.1
Stored XSS vulnerability in Roundcube
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.
- Record
CVE-2023-5631- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
Show 7 moreShow less
OSVDEBIAN-CVE-2023-5631
5.4
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.
- Record
DEBIAN-CVE-2023-5631- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-5631
6.1
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.
- Record
UBUNTU-CVE-2023-5631- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVBIT-roundcube-2023-5631 No score
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 attackerto load arbitrary JavaScript code.
- Record
BIT-roundcube-2023-5631- Updated
- 2026-11-02
OSVMGASA-2023-0332 No score
Updated roundcubemail packages fix XSS security vulnerabilities
Updated roundcubemail package fixes security vulnerabilities:
Fix cross-site scripting (XSS) vulnerability in setting Content-Type/ Content-Disposition for attachment preview/download (CVE-2023-47272)
Fix cross-site scripting (XSS) vulnerability in handling of SVG in HTML messages. (CVE-2023-5631)
Some other errors have been fixed:
- Fix PHP8 fatal error when parsing a malformed BODYSTRUCTURE
- Fix duplicated Inbox folder on IMAP servers that do not use Inbox folder with all capital letters
- Fix PHP warnings
- Fix UI issue when dealing with an invalid managesieve_default_headers value
- Fix bug where images attached to application/smil messages weren't displayed
- Fix PHP string replacement error in utils/error.php
- Fix regression where smtp_user did not allow pre/post strings before/after %u placeholder
- Record
MGASA-2023-0332- Updated
- 2026-11-02
OSVopenSUSE-SU-2023:0345-1 No score
Security update for roundcubemail
This update for roundcubemail fixes the following issues:
Update to version 1.6.4 (boo#1216429):
- CVE-2023-5631: Fix cross-site scripting vulnerability in handling of SVG in HTML messages
- Fix PHP8 warnings
- Fix default 'mime.types' path on Windows
- Managesieve: Fix javascript error when relational or spamtest extension is not enabled
- Record
openSUSE-SU-2023:0345-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13365-1 No score
roundcubemail-1.6.4-1.1 on GA media
These are all security issues fixed in the roundcubemail-1.6.4-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13365-1- Updated
- 2026-11-02
OSVUSN-6848-1 No score
roundcube vulnerabilities
Matthieu Faou and Denys Klymenko discovered that Roundcube incorrectly handled certain SVG images. A remote attacker could possibly use this issue to load arbitrary JavaScript code. This issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS and Ubuntu 23.10. (CVE-2023-5631)
Rene Rehme discovered that Roundcube incorrectly handled certain headers. A remote attacker could possibly use this issue to load arbitrary JavaScript code. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS and Ubuntu 23.10. (CVE-2023-47272)
Valentin T. and Lutz Wolf discovered that Roundcube incorrectly handled certain SVG images. A remote attacker could possibly use this issue to load arbitrary JavaScript code. This issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS and Ubuntu 23.10. (CVE-2024-37383)
Huy Nguyễn Phạm Nhật discovered that Roundcube incorrectly handled certain fields in user preferences. A remote attacker could possibly use this issue to load arbitrary JavaScript code. (CVE-2024-37384)
- Record
USN-6848-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
roundcubeBitnami |
before 1.4.15, 1.5.0 up to 1.5.5, 1.6.0 up to 1.6.4 | 1.4.151.5.51.6.4 |
roundcubeDebian:12 |
before 1.6.4+dfsg-1~deb12u1, plus listed versions 1.6.1+dfsg-11.6.2+dfsg-11.6.3+dfsg-11.6.3+dfsg-1~deb12u11.6.3+dfsg-2 |
1.6.4+dfsg-1~deb12u1 |
roundcubeDebian:13 |
before 1.6.4+dfsg-1 | 1.6.4+dfsg-1 |
roundcubeDebian:14 |
before 1.6.4+dfsg-1 | 1.6.4+dfsg-1 |
roundcubeDebian:10 |
before 1.3.17+dfsg.1-1~deb10u4, plus listed versions 1.3.10+dfsg.1-11.3.10+dfsg.1-1~deb10u11.3.11+dfsg.1-1~deb10u11.3.13+dfsg.1-1~deb10u11.3.14+dfsg.1-1~deb10u1 Show 6 moreShow less1.3.15+dfsg.1-1~deb10u11.3.16+dfsg.1-1~deb10u11.3.17+dfsg.1-1~deb10u11.3.17+dfsg.1-1~deb10u21.3.17+dfsg.1-1~deb10u31.3.8+dfsg.1-2 |
1.3.17+dfsg.1-1~deb10u4 |
roundcubeDebian:11 |
before 1.4.15+dfsg.1-1~deb11u1, plus listed versions 1.4.11+dfsg.1-41.4.12+dfsg.1-1~bpo10+11.4.12+dfsg.1-1~deb11u11.4.13+dfsg.1-1~deb11u11.4.13+dfsg.1-1~deb11u1~bpo10+11.4.14+dfsg.1-1~deb11u11.4.14+dfsg.1-1~deb11u1~bpo10+11.4.15+dfsg.1-1~deb11u1~bpo10+1 |
1.4.15+dfsg.1-1~deb11u1 |
roundcubemailMageia:9 |
before 1.6.5-1.mga9 | 1.6.5-1.mga9 |
roundcubeUbuntu:Pro:18.04:LTS |
before 1.3.6+dfsg.1-1ubuntu0.1~esm4, plus listed versions 1.3.0+dfsg.1-11.3.1+dfsg.1-11.3.3+dfsg.1-11.3.3+dfsg.1-21.3.6+dfsg.1-11.3.6+dfsg.1-1ubuntu0.1~esm11.3.6+dfsg.1-1ubuntu0.1~esm21.3.6+dfsg.1-1ubuntu0.1~esm3 |
1.3.6+dfsg.1-1ubuntu0.1~esm4 |
roundcubeUbuntu:Pro:20.04:LTS |
before 1.4.3+dfsg.1-1ubuntu0.1~esm4, plus listed versions 1.3.8+dfsg.1-21.3.10+dfsg.1-11.4.1+dfsg.1-21.4.2+dfsg.1-11.4.2+dfsg.1-2 Show 4 moreShow less1.4.3+dfsg.1-11.4.3+dfsg.1-1ubuntu0.1~esm11.4.3+dfsg.1-1ubuntu0.1~esm21.4.3+dfsg.1-1ubuntu0.1~esm3 |
1.4.3+dfsg.1-1ubuntu0.1~esm4 |
roundcubeUbuntu:Pro:22.04:LTS |
before 1.5.0+dfsg.1-2ubuntu0.1~esm3, plus listed versions 1.4.11+dfsg.1-41.5.0+dfsg.1-21.5.0+dfsg.1-2ubuntu0.1~esm11.5.0+dfsg.1-2ubuntu0.1~esm2 |
1.5.0+dfsg.1-2ubuntu0.1~esm3 |
Show 4 moreShow less
| Package | Affected | Fixed |
|---|---|---|
roundcubeUbuntu:Pro:16.04:LTS |
before 1.2~beta+dfsg.1-0ubuntu1+esm4, plus listed versions 1.1.1+dfsg.1-21.1.2+dfsg.1-51.1.3+dfsg.1-11.1.4+dfsg.1-11.2~beta+dfsg.1-0ubuntu11.2~beta+dfsg.1-0ubuntu1+esm11.2~beta+dfsg.1-0ubuntu1+esm21.2~beta+dfsg.1-0ubuntu1+esm3 |
1.2~beta+dfsg.1-0ubuntu1+esm4 |
roundcubemailSUSE:Package Hub 15 SP5 |
before 1.6.4-bp155.2.6.1 | 1.6.4-bp155.2.6.1 |
roundcubemailopenSUSE:Leap 15.5 |
before 1.6.4-bp155.2.6.1 | 1.6.4-bp155.2.6.1 |
roundcubemailopenSUSE:Tumbleweed |
before 1.6.4-1.1 | 1.6.4-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| exploitation | ||
| first indexed | CVE List, EUVD, GitHub Advisories, CISA KEV, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-5631 is a medium vulnerability (CVSS 6.1) in Debian Linux, published October 18, 2023. CISA lists it as known to be exploited, since October 26, 2023. EUVD reports exploitation since October 26, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 76.3%, the 99th percentile. Fixed in roundcube 1.4.15.
References
github.com/roundcube/roundcubemail/commit/6ee6e7ae301e165e2b2cb703edf75552e5376613
github.com/roundcube/roundcubemail/releases/tag/1.6.4
github.com/roundcube/roundcubemail/releases/tag/1.5.5
github.com/roundcube/roundcubemail/releases/tag/1.4.15
github.com/roundcube/roundcubemail/issues/9168
roundcube.net/news/2023/10/16/security-update-1.6.4-released
Show 29 moreShow less
github.com/roundcube/roundcubemail/commit/41756cc3331b495cc0b71886984474dc529dd31d
roundcube.net/news/2023/10/16/security-updates-1.5.5-and-1.4.15
bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054079
debian.org/security/2023/dsa-5531
lists.debian.org/debian-lts-announce/2023/10/msg00035.html
openwall.com/lists/oss-security/2023/11/01/1
openwall.com/lists/oss-security/2023/11/01/3
lists.fedoraproject.org/archives/list/[email protected]/message/LK67Q46OIEGJCRQUBHKLH3IIJTBNGGX4
openwall.com/lists/oss-security/2023/11/17/2
cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-5631
nvd.nist.gov/vuln/detail/CVE-2023-5631
github.com/advisories/GHSA-qf8f-27cp-gw76
github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5631.json
github.com/roundcube/roundcubemail
security-tracker.debian.org/tracker/CVE-2023-5631
advisories.mageia.org/MGASA-2023-0332.html
bugs.mageia.org/show_bug.cgi?id=32493
github.com/roundcube/roundcubemail/releases/tag/1.6.5
ubuntu.com/security/CVE-2023-5631
cve.org/CVERecord?id=CVE-2023-5631
ubuntu.com/security/notices/USN-6848-1
cisa.gov/known-exploited-vulnerabilities-catalog
ubuntu.com/security/CVE-2023-47272
ubuntu.com/security/CVE-2024-37383
ubuntu.com/security/CVE-2024-37384
launchpad.net/bugs/2043396
lists.opensuse.org/archives/list/[email protected]/thread/GGRBYUWS4WS3V7Z75JPLZ6VMUDQER3SA
bugzilla.suse.com/1216429
suse.com/security/cve/CVE-2023-5631