Medium severity · published Apr 23, 2024
CVE-2024-31208
Synapse's V2 state resolution weakness allows DoS from remote room members
6.5
CVSS
1.5%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.5% · higher than 74% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SY
synapse · element-hq
< 1.105.1 · source: vendor, NVD
FE
Fedora · Fedoraproject
38; 39; 40 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-31208
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-31208
Patch
https://github.com/element-hq/synapse/commit/55b0aa847a61774b6a3acdc4b177a20dc019f01a
Release Notes
https://github.com/element-hq/synapse/releases/tag/v1.105.1
Vendor Advisory
https://github.com/element-hq/synapse/security/advisories/GHSA-3h7q-rfh9-xm4v
Mailing List
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R6FCCO4ODTZ3FDS7TMW76PKOSEL2TQVB/
Mailing List
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RR53FNHV446CB37TP45GZ6F6HZLZCK3K/
Mailing List
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VSF4NJJSTSQRJQ47PLYYSCFYKJBP7DET/
More from synapse
9.1
CVE-2024-53863
Synapse can be forced to thumbnail unexpected file formats, invoking external, potentially untrustworthy decoders
7.5
CVE-2025-30355
Synapse vulnerable to federation denial of service via malformed events
7.5
CVE-2024-37302
Synapse denial of service through media disk space consumption
7.5
CVE-2024-52805
Synapse allows unsupported content types to lead to memory exhaustion
5.5
CVE-2026-45078
Synapse CPU starvation (Denial of Service)
