CVE-2024-31208
JSON

6.5medium

Synapse's V2 state resolution weakness allows DoS from remote room members

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.46% (higher than 74% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-3h7q-rfh9-xm4vPYSEC-2024-50

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.

Affected

Product or packageVersionsReported by
element-hq synapse< 1.105.1CVE List
matrix-synapse (PyPI)before 1.105.1, before 55b0aa847a61774b6a3acdc4b177a20dc019f01aGitHub Advisory Database, PyPA Advisory Database
matrix synapsebefore 1.105.1NVD
fedoraproject fedora38, 39, 40NVD

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-770

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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 how the auth chain cover index is calculated. 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.

Patches

Server administrators should upgrade to 1.105.1 or later.

Workarounds

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
For more information

If you have any questions or comments about this advisory, please email us at security AT element.io.

NVD (es)

Synapse es un servidor doméstico Matrix de código abierto. Un usuario remoto de Matrix con intenciones maliciosas, que comparte una sala con instancias de Synapse anteriores a 1.105.1, puede enviar eventos especialmente diseñados para explotar una debilidad en el algoritmo de resolución de estado V2. Esto puede inducir un alto consumo de CPU y acumular datos excesivos en la base de datos de dichas instancias, lo que resulta en una denegación de servicio. Los servidores de federaciones privadas, o aquellos que no se federan, no se ven afectados. Los administradores del servidor deben actualizar a 1.105.1 o posterior. Algunas soluciones están disponibles. Se puede prohibir a los usuarios malintencionados o a los servidores de bloqueo ACL de las salas y/o abandonar la sala y purgarla utilizando la API de administración.

References

https://github.com/element-hq/synapse/security/advisories/GHSA-3h7q-rfh9-xm4vadvisory, vendor-advisory, web
https://github.com/element-hq/synapse/commit/55b0aa847a61774b6a3acdc4b177a20dc019f01afix, patch, web
https://github.com/element-hq/synapse/releases/tag/v1.105.1release-notes, web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RR53FNHV446CB37TP45GZ6F6HZLZCK3K/mailing-list, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R6FCCO4ODTZ3FDS7TMW76PKOSEL2TQVB/mailing-list, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VSF4NJJSTSQRJQ47PLYYSCFYKJBP7DET/mailing-list, third-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2024-31208advisory
https://github.com/element-hq/synapsepackage
https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2024-50.yamlweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R6FCCO4ODTZ3FDS7TMW76PKOSEL2TQVBweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RR53FNHV446CB37TP45GZ6F6HZLZCK3Kweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VSF4NJJSTSQRJQ47PLYYSCFYKJBP7DETweb

Sources

SourceRecordLicence
CVE ListCVE-2024-31208 changed 2025-02-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-3h7q-rfh9-xm4v changed 2026-09-10CC-BY-4.0
NVDCVE-2024-31208 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-50 changed 2024-04-23CC-BY-4.0