# CVE-2022-41952: Uncontrolled Resource Consumption in Matrix Synapse

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-11-22 · Modified: 2025-04-23
- Aliases: GHSA-4822-jvwx-w47h, PYSEC-2026-663, UBUNTU-CVE-2022-41952, DEBIAN-CVE-2022-41952
- Record: https://cvemate.com/vulnerability/CVE-2022-41952 · JSON: https://cvemate.com/vulnerability/CVE-2022-41952/json

## Description

```text
Synapse before 1.52.0 with URL preview functionality enabled will attempt to generate URL previews for media stream URLs without properly limiting connection time. Connections will only be terminated after `max_spider_size` (default: 10M) bytes have been downloaded, which can in some cases lead to long-lived connections towards the streaming media server (for instance, Icecast). This can cause excessive traffic and connections toward such servers if their stream URL is, for example, posted to a large room with many Synapse instances with URL preview enabled. Version 1.52.0 implements a timeout mechanism which will terminate URL preview connections after 30 seconds. Since generating URL previews for media streams is not supported and always fails, 1.53.0 additionally implements an allow list for content types for which Synapse will even attempt to generate a URL preview. Upgrade to 1.53.0 to fully resolve the issue. As a workaround, turn off URL preview functionality by setting `url_preview_enabled: false` in the Synapse configuration file.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
- EPSS: 1.117%, percentile 67.181%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian matrix-synapse (Debian): \< 1.53.0-1
- ubuntu matrix-synapse (Ubuntu): All versions (No fix recorded)
- matrix-org synapse: \< 1.53.0
- matrix synapse: \< 1.53.0
- PyPI matrix-synapse (PyPI): \< 1.53.0

## References

- <https://github.com/matrix-org/synapse/security/advisories/GHSA-4822-jvwx-w47h>
- <https://github.com/matrix-org/synapse/pull/11784>
- <https://github.com/matrix-org/synapse/pull/11936>
- <https://github.com/matrix-org/synapse/releases/tag/v1.52.0>
- <https://github.com/matrix-org/synapse/releases/tag/v1.53.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-41952>
- <https://github.com/matrix-org/synapse>
- <https://pypi.org/project/matrix-synapse>
- <https://github.com/advisories/GHSA-4822-jvwx-w47h>
- <https://ubuntu.com/security/CVE-2022-41952>
- <https://www.cve.org/CVERecord?id=CVE-2022-41952>
- <https://security-tracker.debian.org/tracker/CVE-2022-41952>

---

Data as of 2026-12-05T09:58:25.025Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
