cve.bz

CVE-2023-5631 Roundcube Webmail Persistent Cross-Site Scripting (XSS) Vulnerability

5.4 mediumKEVExploit referenceEPSS 76%Fix available

Medium (5.4) in Roundcube Webmail. In CISA KEV since 2023-10-26. EPSS 76% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
76% (unchanged from 76% a week ago; 77% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2023-10-26, due 2023-11-16
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2023-11-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-5631 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-5631?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-5631?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-5631 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Roundcubemailfrom 1.6.0 before 1.6.3
Roundcubemailfrom 1.5.0 before 1.5.4
Roundcubemailfrom 1.4.0 before 1.5.14

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10roundcube1.3.17+dfsg.1-1~deb10u4DLA-3630-1
Debian11roundcube1.4.15+dfsg.1-1~deb11u1DSA-5531-1
Debian12roundcube1.6.4+dfsg-1~deb12u1DEBIAN-CVE-2023-5631 DSA-5531-1
Debian13, 14roundcube1.6.4+dfsg-1DEBIAN-CVE-2023-5631
UbuntuPro:16.04:LTSroundcube1.2~beta+dfsg.1-0ubuntu1+esm4USN-6848-1
UbuntuPro:18.04:LTSroundcube1.3.6+dfsg.1-1ubuntu0.1~esm4UBUNTU-CVE-2023-5631 USN-6848-1
UbuntuPro:20.04:LTSroundcube1.4.3+dfsg.1-1ubuntu0.1~esm4UBUNTU-CVE-2023-5631 USN-6848-1
UbuntuPro:22.04:LTSroundcube1.5.0+dfsg.1-2ubuntu0.1~esm3UBUNTU-CVE-2023-5631 USN-6848-1
SUSEPackage Hub 15 SP5roundcubemail1.6.4-bp155.2.6.1openSUSE-SU-2023:0345-1
openSUSELeap 15.5roundcubemail1.6.4-bp155.2.6.1openSUSE-SU-2023:0345-1
openSUSETumbleweedroundcubemail1.6.4-1.1openSUSE-SU-2024:13365-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Emerging Threats Open ET WEB_SPECIFIC_APPS Roundcube rcube_washtml.php SVG Cross-Site Scripting (CVE-2023-5631) sid 2059117
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Roundcube Webmail XSS Attempt (CVE-2023-5631) sid 2049139

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON