CVE-2024-52805 Synapse allows unsupported content types to lead to memory exhaustion
Attackers can cause memory exhaustion and denial of service in Synapse via multipart/form-data requests in certain configurations.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-52805?
CVE-2024-52805 is a high-severity denial of service vulnerability in element-hq synapse, published on 3 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-770
Which versions are affected by CVE-2024-52805?
3 open source packages ship an affected version, including matrix-synapse. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
matrix-synapse PyPI | All versions | 1.120.1 |
matrix-synapse PyPI | All versions | 1.120.1 |
matrix-synapse PyPI | All versions | 1.120.1 |
Products include Matrix Synapse.
How do I fix CVE-2024-52805?
Upgrade matrix-synapse to 1.120.1 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-52805 being exploited?
There is no known exploitation of CVE-2024-52805 in the wild and no public exploit code.
Other vulnerabilities in element-hq synapse
- CVE-2019-18835 Improper Verification of Cryptographic Signature in matrix-synapse
- CVE-2024-52815 Synapse allows a a malformed invite to break the invitee's `/sync`
- CVE-2024-53863 Synapse can be forced to thumbnail unexpected file formats, invoking external, potentially untrustworthy decoders
- CVE-2024-37302 Synapse denial of service through media disk space consumption
- CVE-2018-12423 Matrix Synapse Authorization Error
Sources
Also known as GHSA-rfq8-j7rh-8hf2, PYSEC-2026-1613, UBUNTU-CVE-2024-52805.