CVE-2024-52805 Synapse allows unsupported content types to lead to memory exhaustion

High 8.2 Published Updated

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.

PackageAffectedFixed in
matrix-synapse PyPIAll versions1.120.1
matrix-synapse PyPIAll versions1.120.1
matrix-synapse PyPIAll versions1.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.

Sources

Also known as GHSA-rfq8-j7rh-8hf2, PYSEC-2026-1613, UBUNTU-CVE-2024-52805.

Is CVE-2024-52805 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free