{"id":"CVE-2024-31208","aliases":["CVE-2024-31208","GHSA-3h7q-rfh9-xm4v","PYSEC-2024-50"],"related":[],"kind":"vulnerability","state":"published","title":"Synapse's V2 state resolution weakness allows DoS from remote room members","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA 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.\n\nServers in private federations, or those that do not federate, are not affected.\n\n### Patches\n\nServer administrators should upgrade to 1.105.1 or later.\n\n### Workarounds\n\nOne can:\n- ban the malicious users or ACL block servers from the rooms; and/or\n- leave the room and purge the room using the admin API\n\n### For more information\n\nIf you have any questions or comments about this advisory, please email us at [security AT element.io](mailto:security@element.io).","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-04-23T17:26:39.171Z","modified":"2026-09-10T03:50:11.151Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":"< 1.105.1","status":"affected"}],"vendor":"element-hq","product":"synapse","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.105.1"}],"ecosystem":"PyPI","package":"matrix-synapse","purl":"pkg:pypi/matrix-synapse","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.105.1"}],"vendor":"matrix","product":"synapse","cpe":"cpe:2.3:a:matrix:synapse:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"38"},{"status":"affected","version":"39"},{"status":"affected","version":"40"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"55b0aa847a61774b6a3acdc4b177a20dc019f01a"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.105.1"}],"ecosystem":"PyPI","package":"matrix-synapse","purl":"pkg:pypi/matrix-synapse","repo":"https://github.com/element-hq/synapse","source":"pysec"}],"references":[{"url":"https://github.com/element-hq/synapse/security/advisories/GHSA-3h7q-rfh9-xm4v","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/element-hq/synapse/commit/55b0aa847a61774b6a3acdc4b177a20dc019f01a","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/element-hq/synapse/releases/tag/v1.105.1","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RR53FNHV446CB37TP45GZ6F6HZLZCK3K/","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R6FCCO4ODTZ3FDS7TMW76PKOSEL2TQVB/","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VSF4NJJSTSQRJQ47PLYYSCFYKJBP7DET/","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31208","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/element-hq/synapse","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2024-50.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R6FCCO4ODTZ3FDS7TMW76PKOSEL2TQVB","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RR53FNHV446CB37TP45GZ6F6HZLZCK3K","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VSF4NJJSTSQRJQ47PLYYSCFYKJBP7DET","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-04-23T19:13:09.531Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-31208","url":"https://www.cve.org/CVERecord?id=CVE-2024-31208","licence":"CVE Terms of Use","modified":"2025-02-13T17:47:51.943Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3h7q-rfh9-xm4v","url":"https://github.com/advisories/GHSA-3h7q-rfh9-xm4v","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:11.151Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-31208","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31208","licence":"Public domain","modified":"2026-06-17T07:27:59.037Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-50","url":"https://osv.dev/vulnerability/PYSEC-2024-50","licence":"CC-BY-4.0","modified":"2024-04-23T21:56:31.264Z"}],"updatedAt":"2026-11-25T22:58:39.532Z","epss":{"score":0.01463,"percentile":0.74386,"date":"2026-12-01T12:00:22.000Z"}}