CVE-2022-31052
published medium CVSS 3.1 · 6.5URL previews can crash Synapse media repositories or Synapse monoliths
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| matrix-org | — | synapse< 1.61.1 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | synapse | Fixed | 1.61.1-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | matrix-synapseaarch64 | Advisory build | 1.61.1-1.1 | OPENSUSE-SU-2024:12160-1 |
| Alpine Linux | v3.16 | synapse | Fixed | 1.61.1-r0 | Package fix record |
| Alpine Linux | v3.17 | synapse | Fixed | 1.61.1-r0 | Package fix record |
| Alpine Linux | v3.18 | synapse | Fixed | 1.61.1-r0 | Package fix record |
| Alpine Linux | v3.19 | synapse | Fixed | 1.61.1-r0 | Package fix record |
| Alpine Linux | v3.20 | synapse | Fixed | 1.61.1-r0 | Package fix record |
Show 7 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.21 | synapse | Fixed | 1.61.1-r0 | Package fix record |
| Alpine Linux | v3.22 | synapse | Fixed | 1.61.1-r0 | Package fix record |
| Alpine Linux | v3.23 | synapse | Fixed | 1.61.1-r0 | Package fix record |
| Alpine Linux | v3.24 | synapse | Fixed | 1.61.1-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | matrix-synapseppc64le | Advisory build | 1.61.1-1.1 | OPENSUSE-SU-2024:12160-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | matrix-synapses390x | Advisory build | 1.61.1-1.1 | OPENSUSE-SU-2024:12160-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | matrix-synapsex86_64 | Advisory build | 1.61.1-1.1 | OPENSUSE-SU-2024:12160-1 |
Description
Synapse is an open source home server implementation for the Matrix chat network. In versions prior to 1.61.1 URL previews of some web pages can exhaust the available stack space for the Synapse process due to unbounded recursion. This is sometimes recoverable and leads to an error for the request causing the problem, but in other cases the Synapse process may crash altogether. It is possible to exploit this maliciously, either by malicious users on the homeserver, or by remote users sending URLs that a local user's client may automatically request a URL preview for. Remote users are not able to exploit this directly, because the URL preview endpoint is authenticated. Deployments with `url_preview_enabled: false` set in configuration are not affected. Deployments with `url_preview_enabled: true` set in configuration **are** affected. Deployments with no configuration value set for `url_preview_enabled` are not affected, because the default is `false`. Administrators of homeservers with URL previews enabled are advised to upgrade to v1.61.1 or higher. Users unable to upgrade should set `url_preview_enabled` to false.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| matrix-org | synapse | < 1.61.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-674 CWE-674: Uncontrolled Recursion
References
5- https://github.com/matrix-org/synapse/commit/fa1308061802ac7b7d20e954ba7372c5ac292333
- https://github.com/matrix-org/synapse/security/advisories/GHSA-22p3-qrh9-cx32
- FEDORA-2022-45bf6d4b88 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7EARKKJZ2W7WUITFDT4EG4NVATFYJQHF/
- FEDORA-2022-1a2312e4d6 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGSDQ4YAITCUACAB7SXQZDJIU3IQ4CJD/
- https://spec.matrix.org/v1.2/client-server-api/#get_matrixmediav3preview_url
Provider assertions
3GitHub_M · cna
URL previews can crash Synapse media repositories or Synapse monoliths
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3519ef3347af01d000c0c8b9f10634239f6831e1247b15e31c9d5890d10e6b16
- Ingested
- 23 Sep 2026, 08:00:25 UTC
- Source record
- Official CVE record