CVEfocus › CVE database › CVE-2024-31208

CVE-2024-31208Synapse's V2 state resolution weakness allows DoS from remote room members

CVSS 6.5 MediumEPSS 1.9% (higher than 81% of CVEs)Published 2024-04-23Updated 2025-02-13Assigner: GitHub_M

Synapse is an open-source Matrix homeserver. A remote Matrix user with malicious intent, sharing a room with Synapse instances before 1.105.1, can dispatch specially crafted events to exploit a weakness in the V2 state resolution algorithm. This can induce high CPU consumption and accumulate excessive data in the database of such instances, resulting in a denial of service. Servers in private federations, or those that do not federate, are not affected. Server administrators should upgrade to 1.105.1 or later. Some workarounds are available. One can ban the malicious users or ACL block servers from the rooms and/or leave the room and purge the room using the admin API.

CWE-770

What to do

Fixed builds are available from Alpine, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
6Fix pending
3Under investigation
3Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10synapseFix pendingUBUNTU-CVE-2024-31208
Ubuntu 26.04synapseUnder investigationUBUNTU-CVE-2024-31208
Ubuntu 25.10synapseWill not fix
matrix-synapse versions < 1.53.0-1 have major changes that prevent a patch from being feasibly applied for for this CVE. Noble and oracular are FTBFS for…
UBUNTU-CVE-2024-31208
Ubuntu 24.04matrix-synapseWill not fix
matrix-synapse versions < 1.53.0-1 have major changes that prevent a patch from being feasibly applied for for this CVE. Noble and oracular are FTBFS for…
UBUNTU-CVE-2024-31208
Ubuntu 24.04synapseUnder investigationUBUNTU-CVE-2024-31208
Ubuntu 22.04matrix-synapseFix pending1.53.0-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2024-31208
Ubuntu 22.04synapseUnder investigationUBUNTU-CVE-2024-31208
Ubuntu 20.04matrix-synapseFix pendingUBUNTU-CVE-2024-31208
Ubuntu 20.04synapseWill not fix
matrix-synapse versions < 1.53.0-1 have major changes that prevent a patch from being feasibly applied for for this CVE. Noble and oracular are FTBFS for…
UBUNTU-CVE-2024-31208
Ubuntu 18.04matrix-synapseFix pendingUBUNTU-CVE-2024-31208
Ubuntu 18.04synapseFix pendingUBUNTU-CVE-2024-31208
Ubuntu 16.04synapseFix pendingUBUNTU-CVE-2024-31208
Alpine Linux 3.24synapseFixed1.105.1-r0ALPINE-CVE-2024-31208
Alpine Linux 3.23synapseFixed1.105.1-r0ALPINE-CVE-2024-31208
Alpine Linux 3.22synapseFixed1.105.1-r0ALPINE-CVE-2024-31208
Alpine Linux 3.21synapseFixed1.105.1-r0ALPINE-CVE-2024-31208
Alpine Linux 3.20synapseFixed1.105.1-r0ALPINE-CVE-2024-31208
PyPI librarymatrix-synapseFixed1.105.1GHSA-3h7q-rfh9-xm4v

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.