PyPI: matrix-synapse
CVE-2024-37302
Safety vulnerability ID: SFTY-20241203-26055
Safety legacy ID: pyup.io-74426
Affected versions of Synapse are vulnerable to Allocation of Resources Without Limits or Throttling (CWE-770). This vulnerability allows unauthenticated attackers to induce excessive remote media downloads, potentially exhausting disk space and causing denial of service, ranging from failed media operations to complete Synapse unavailability. The attack vector exploits unauthenticated media download endpoints with inadequate rate limiting. To mitigate this issue, upgrade to Synapse version 1.106 or later, which introduces a "leaky bucket" rate limit on media downloads. Additionally, server operators can limit maximum file sizes or allocate media storage to dedicated disks to reduce impact.
Overview
Synapse denial of service through media disk space consumption
Advisory
Affected versions of Synapse are vulnerable to Allocation of Resources Without Limits or Throttling (CWE-770). This vulnerability allows unauthenticated attackers to induce excessive remote media downloads, potentially exhausting disk space and causing denial of service, ranging from failed media operations to complete Synapse unavailability. The attack vector exploits unauthenticated media download endpoints with inadequate rate limiting. To mitigate this issue, upgrade to Synapse version 1.106 or later, which introduces a "leaky bucket" rate limit on media downloads. Additionally, server operators can limit maximum file sizes or allocate media storage to dedicated disks to reduce impact.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20241203-26055/CVE-2024-37302
- https://github.com/element-hq/synapse/security/advisories/GHSA-4mhg-xv73-xq2x
- https://nvd.nist.gov/vuln/detail/CVE-2024-37302
- https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2024-286.yaml
- https://github.com/advisories/GHSA-4mhg-xv73-xq2x
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
