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

Published Dec 3, 2024
·
Updated

Impact

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.

Patches

Synapse 1.120.1 resolves the issue by denying requests with unsupported multipart/form-data content type.

Workarounds

Limiting 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 maxuploadsize in Synapse.

References

- https://github.com/twisted/twisted/issues/4688#issuecomment-1167705518 - https://github.com/twisted/twisted/issues/4688#issuecomment-2385711609

For more information

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

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
pip/matrix-synapse<1.120.1
1.120.1
matrix synapse<1.120.1

Event History

Dec 3, 2024
CVE Published
via MITRE·05:01 PM
Data Sourced
via MITRE·05:01 PM
DescriptionWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
Affected Software
Advisory Published
via GitHub·06:40 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-52805?

CVE-2024-52805 has a moderate severity level due to its potential for amplifying denial of service attacks through increased memory consumption.

2

How do I fix CVE-2024-52805?

To fix CVE-2024-52805, upgrade to Synapse version 1.120.1 or later.

3

What types of requests are affected by CVE-2024-52805?

CVE-2024-52805 affects `multipart/form-data` requests in Synapse.

4

Is there a workaround for CVE-2024-52805 before upgrading?

There are no specific workarounds recommended for CVE-2024-52805, so upgrading as soon as possible is advised.

5

Which software version should I avoid due to CVE-2024-52805?

You should avoid versions of Synapse prior to 1.120.1 due to the vulnerability identified as CVE-2024-52805.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203