{"id":"CVE-2024-52805","aliases":["CVE-2024-52805","GHSA-rfq8-j7rh-8hf2","PYSEC-2026-1613"],"related":[],"kind":"vulnerability","state":"published","title":"Synapse allows unsupported content types to lead to memory exhaustion","summary":"Synapse is an open-source Matrix homeserver. In Synapse before 1.120.1, multipart/form-data requests can in certain configurations transiently increase memory consumption beyond expected levels while processing the request, which can be used to amplify denial of service attacks. Synapse 1.120.1 resolves the issue by denying requests with unsupported multipart/form-data content type.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Synapse is an open-source Matrix homeserver. In Synapse before 1.120.1, multipart/form-data requests can in certain configurations transiently increase memory consumption beyond expected levels while processing the request, which can be used to amplify denial of service attacks. Synapse 1.120.1 resolves the issue by denying requests with unsupported multipart/form-data content type.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIn Synapse before 1.120.1, `multipart/form-data` requests can in certain configurations transiently increase memory consumption beyond expected levels while processing the request, which can be used to amplify denial of service attacks.\n\n### Patches\n\nSynapse 1.120.1 resolves the issue by denying requests with unsupported `multipart/form-data` content type.\n\n### Workarounds\n\nLimiting request sizes or blocking the `multipart/form-data` content type before the requests reach Synapse, for example in a reverse proxy, alleviates the issue. Another approach that mitigates the attack is to use a low `max_upload_size` in Synapse.\n\n### References\n\n- https://github.com/twisted/twisted/issues/4688#issuecomment-1167705518\n- https://github.com/twisted/twisted/issues/4688#issuecomment-2385711609\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. En Synapse anterior a la versión 1.120.1, las solicitudes multipart/form-data pueden, en determinadas configuraciones, aumentar transitoriamente el consumo de memoria más allá de los niveles esperados mientras se procesa la solicitud, lo que se puede utilizar para amplificar los ataques de denegación de servicio. Synapse 1.120.1 resuelve el problema al denegar las solicitudes con un tipo de contenido multipart/form-data no compatible.","source":"nvd"}],"published":"2024-12-03T17:01:50.119Z","modified":"2026-07-07T17:56:28.661Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":"< 1.120.1","status":"affected"}],"vendor":"element-hq","product":"synapse","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.120.1","status":"affected"}],"vendor":"element-hq","product":"synapse","cpe":"cpe:2.3:a:element-hq:synapse:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.120.1"}],"ecosystem":"PyPI","package":"matrix-synapse","purl":"pkg:pypi/matrix-synapse","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.120.1"}],"vendor":"matrix","product":"synapse","cpe":"cpe:2.3:a:matrix:synapse:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.120.1"}],"ecosystem":"PyPI","package":"matrix-synapse","purl":"pkg:pypi/matrix-synapse","source":"pysec"}],"references":[{"url":"https://github.com/element-hq/synapse/security/advisories/GHSA-rfq8-j7rh-8hf2","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/twisted/twisted/issues/4688#issuecomment-1167705518","tags":["issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/twisted/twisted/issues/4688#issuecomment-2385711609","tags":["issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52805","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/element-hq/synapse","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/matrix-synapse","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-rfq8-j7rh-8hf2","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-12-03T19:04:05.237Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-52805","url":"https://www.cve.org/CVERecord?id=CVE-2024-52805","licence":"CVE Terms of Use","modified":"2024-12-03T19:04:44.446Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rfq8-j7rh-8hf2","url":"https://github.com/advisories/GHSA-rfq8-j7rh-8hf2","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:28.661Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-52805","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52805","licence":"Public domain","modified":"2026-06-17T08:07:39.657Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1613","url":"https://osv.dev/vulnerability/PYSEC-2026-1613","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:57.355Z"}],"updatedAt":"2026-11-25T22:58:49.671Z","epss":{"score":0.00745,"percentile":0.55993,"date":"2026-12-01T12:00:22.000Z"}}