CVE-2022-31052: URL previews can crash Synapse media repositories or Synapse monoliths
Vulnerability summary
CVE-2022-31052 is a medium (CVSS 6.5) Uncontrolled Recursion vulnerability in fedoraproject fedora. EPSS estimates a 1.69% chance of exploitation in the next 30 days, higher than 77.8% of scored vulnerabilities.
Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 28-06-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 6 sources · 3 versions- OSV · PypiEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.69%
Chance of exploitation in the next 30 days
Percentile
78%
Versus all other CVEs
30-day change
Increase +0.03 pp
From 1.66% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- synapse< 1.61.1-r0
Debian1 product
- matrix-synapse< 1.61.1-1
Fedoraproject1 product
- fedoraEOL35 | 36
Matrix1 product
- synapse< 1.61.1
Matrix-org1 product
- synapse< 1.61.1
Opensuse1 product
- matrix-synapse&distro=openSUSE Tumbleweed< 1.61.1-1.1
PyPI1 product
- matrix-synapse< fa1308061802ac7b7d20e954ba7372c5ac292333 | < 1.61.1
Ubuntu1 product
- matrix-synapseAll versions (No fix recorded)
8 vendors · 8 products
References
17 links- github.com/matrix-org/synapse/security/advisories/GHSA-22p3-qrh9-cx32X Refsource CONFIRMWEBAdvisoryREPORTThird Party Advisory
- github.com/matrix-org/synapse/commit/fa1308061802ac7b7d20e954ba7372c5ac292333X Refsource MISCWEBFIXPatchThird Party Advisory