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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.13%, higher than 67% of CVEs (2026-12-01)
- Published: 2022-04-01T18:16:42.000Z
- Modified: 2026-07-06T08:11:11.571Z
- Also known as: GHSA-4822-jvwx-w47h, PYSEC-2026-663
- Weaknesses: CWE-400, CWE-772
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- matrix-org synapse: < 1.53.0
- matrix-synapse (PyPI): before 1.53.0
- matrix synapse: before 1.53.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/matrix-org/synapse/security/advisories/GHSA-4822-jvwx-w47h> (mitigation, third-party-advisory, web)
- <https://github.com/matrix-org/synapse/pull/11784> (patch, third-party-advisory, web)
- <https://github.com/matrix-org/synapse/pull/11936> (patch, third-party-advisory, web)
- <https://github.com/matrix-org/synapse/releases/tag/v1.52.0> (release-notes, third-party-advisory, web)
- <https://github.com/matrix-org/synapse/releases/tag/v1.53.0> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-41952> (advisory)
- <https://github.com/matrix-org/synapse> (package)
- <https://pypi.org/project/matrix-synapse> (package)
- <https://github.com/advisories/GHSA-4822-jvwx-w47h> (advisory)

## Sources

- CVE List: [CVE-2022-41952](https://www.cve.org/CVERecord?id=CVE-2022-41952), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-4822-jvwx-w47h](https://github.com/advisories/GHSA-4822-jvwx-w47h), CC-BY-4.0, modified 2026-07-06
- NVD: [CVE-2022-41952](https://nvd.nist.gov/vuln/detail/CVE-2022-41952), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-663](https://osv.dev/vulnerability/PYSEC-2026-663), CC-BY-4.0, modified 2026-07-06

---

Page: https://cve.day/CVE-2022-41952 · Whole record: https://cve.day/CVE-2022-41952.json · Rebuilt by cve.day 2026-11-25T22:58:16.816Z
