# What is CVE-2023-5631?

> CVE-2023-5631 is a medium-severity flaw (CVSS 5.4) in Webmail from Roundcube, published on 18 October 2023. It is on the list of flaws known to be exploited, so criminals are already using it. The latest forecast puts its chance of use in the next 30 days at 76%. If you run an affected version, patch it first.

Canonical page: https://www.precursorintelligence.com/what-is/cve-2023-5631

## At a glance

- **Verdict:** Fix this now. Attackers are using this flaw today. If you run an affected version, it goes to the top of your list.
- **Precursor Intelligence risk score:** 70 out of 100 (High); action: Emergency patch. Kept up to date as the evidence changes.
- **Severity:** Medium (CVSS 5.4 out of 10)
- **Known to be exploited:** Yes, it is on the government list of flaws known to be exploited
- **Chance of use in the next 30 days:** 76% (latest exploit-likelihood forecast)
- **Published:** 18 October 2023
- **Record last updated:** 30 October 2025
- **Main product:** Webmail from Roundcube
- **Affected products:** 3

## What is CVE-2023-5631? In plain terms

It can be attacked from anywhere on the internet with an ordinary user account, but a person has to take an action first. If it works, the attacker can read some data and change some data.

### The 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.

### What kind of flaw is it?

- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

### How an attack on it works

- Where an attacker can be: Anywhere on the internet
- How hard it is to pull off: Easy: no special conditions
- Login needed first: An ordinary user account
- Does someone have to click: Yes, a person has to take an action
- What an attacker gets: Can read some data and change some data

Severity vector: `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## Is CVE-2023-5631 being exploited? Yes

Attackers are already using it. It is on the government list of flaws known to be exploited, and the latest forecast puts the chance of it being used in the next 30 days at 76%.

Exploit likelihood over the last 7 days: 76%, 76%, 76%, 76%, 76%, 76%, 76%.

### Timeline

- 18 October 2023: Published
- 11 June 2025: Exploit likelihood jumped
- 30 October 2025: Record last updated
- 19 November 2025: Exploit likelihood fell

### How Precursor Intelligence ranks it

CVE-2023-5631 scores **70 out of 100 (High)**, with the action "Emergency patch".

Every published flaw gets a risk score from 0 to 100, kept up to date as the evidence changes. Four things go into the score, from the one that counts most to the ones that count less:

- Evidence it is being exploited: biggest factor
- How severe it is: strong factor
- How widely exposed it is: smaller factor
- Threat activity around it: smaller factor

85 and above is Critical. Anything confirmed as exploited is always marked for an emergency patch, whatever its score. When this flaw matches software you track, it lands in your list with its score and the reasons behind it.

## Who is affected by CVE-2023-5631?

The published record lists 3 products. Versions are as published: "before 1.4.15" means every version up to, but not including, 1.4.15.

- [Webmail](https://www.precursorintelligence.com/product/roundcube/webmail) by [Roundcube](https://www.precursorintelligence.com/vendors/roundcube) (Application): before 1.4.15, 1.5.0 to before 1.5.5, 1.6.0 to before 1.6.4
- [Debian Linux](https://www.precursorintelligence.com/product/debian/debian_linux) by [Debian](https://www.precursorintelligence.com/vendors/debian) (Operating system): 10.0, 11.0, 12.0
- [Fedora](https://www.precursorintelligence.com/product/fedoraproject/fedora) by [Fedoraproject](https://www.precursorintelligence.com/vendors/fedoraproject) (Operating system): 39

## How do I fix CVE-2023-5631?

1. **Check whether you run it.** Compare your versions with the affected products above. Not sure what you run? Precursor Intelligence can work it out from your public website, or you can pick it from a list.
2. **Apply the vendor’s fix.** Install the update named in the vendor’s advisory. We’ve put the advisories and patch notes first in the list.
3. **If you can’t patch today.** Follow any mitigation the vendor publishes, and limit who can reach the affected system from the internet until the update is in.
4. **Check it wasn’t used before you patched.** Because criminals are already using this flaw, look for signs of a break-in on affected systems using the vendor’s guidance.

### References

- [bugs.debian.org](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054079) (Mailing list, Patch)
- [github.com](https://github.com/roundcube/roundcubemail/commit/41756cc3331b495cc0b71886984474dc529dd31d) (Patch)
- [github.com](https://github.com/roundcube/roundcubemail/commit/6ee6e7ae301e165e2b2cb703edf75552e5376613) (Patch)
- [openwall.com](http://www.openwall.com/lists/oss-security/2023/11/01/1) (Mailing list, Third-party advisory)
- [openwall.com](http://www.openwall.com/lists/oss-security/2023/11/01/3) (Mailing list, Third-party advisory)
- [openwall.com](http://www.openwall.com/lists/oss-security/2023/11/17/2) (Mailing list, Third-party advisory)
- [github.com](https://github.com/roundcube/roundcubemail/issues/9168) (Exploit, Issue tracking)
- [github.com](https://github.com/roundcube/roundcubemail/releases/tag/1.4.15) (Release notes)
- [github.com](https://github.com/roundcube/roundcubemail/releases/tag/1.5.5) (Release notes)
- [github.com](https://github.com/roundcube/roundcubemail/releases/tag/1.6.4) (Release notes)
- [lists.debian.org](https://lists.debian.org/debian-lts-announce/2023/10/msg00035.html) (Mailing list, Third-party advisory)
- [lists.fedoraproject.org](https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LK67Q46OIEGJCRQUBHKLH3IIJTBNGGX4/) (Mailing list)
- [roundcube.net](https://roundcube.net/news/2023/10/16/security-update-1.6.4-released) (Release notes)
- [roundcube.net](https://roundcube.net/news/2023/10/16/security-updates-1.5.5-and-1.4.15) (Release notes)
- [debian.org](https://www.debian.org/security/2023/dsa-5531) (Mailing list)
- [cisa.gov](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-5631) (Government resource)

## Questions

### What is CVE-2023-5631?

CVE-2023-5631 is a medium-severity flaw in Webmail from Roundcube, published on 18 October 2023. It can be attacked from anywhere on the internet with an ordinary user account, but a person has to take an action first. If it works, the attacker can read some data and change some data.

### How serious is CVE-2023-5631?

It scores 5.4 out of 10 on the CVSS severity scale, which is medium. Our risk score for CVE-2023-5631 is 70 out of 100, which is High. Its action is "Emergency patch". Attackers are using this flaw today. If you run an affected version, it goes to the top of your list.

### Is CVE-2023-5631 being exploited?

Attackers are already using it. It is on the government list of flaws known to be exploited, and the latest forecast puts the chance of it being used in the next 30 days at 76%.

### Which versions does CVE-2023-5631 affect?

For Webmail from Roundcube: before 1.4.15, 1.5.0 to before 1.5.5, 1.6.0 to before 1.6.4. The record lists 3 products in all, each with its versions, under "Who is affected" on this page.

### How do I fix CVE-2023-5631?

Install the update the vendor names in its advisory, linked first under "How do I fix" on this page. If you can't patch today, follow the vendor's mitigation and limit who can reach the affected system from the internet. Because criminals are already using it, also check affected systems for signs of a break-in.

## Does CVE-2023-5631 affect you?

Precursor Intelligence keeps checking for you:

- **Tell us what you run.** Pick your software from a list, or let us work it out from your website.
- **We match it to every flaw.** Over 400,000 published flaws, checked against your list.
- **Ranked by real-world risk.** Every flaw gets a 0 to 100 risk score, kept up to date, led by evidence criminals are using it.
- **Told as soon as we know.** An alert by email, in the app or by webhook to your own tools.

Start free (no card, nothing to install): https://www.precursorintelligence.com/register
Book a demo: https://www.precursorintelligence.com/contact

