6.5

CVE-2022-31052: URL previews can crash Synapse media repositories or Synapse monoliths

Modified
AliasesGHSA-22p3-qrh9-cx32PYSEC-2022-224UBUNTU-CVE-2022-31052
Published 28-06-2022Last modified 23-04-2025

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.

Priority
Routine

Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.69%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 28-06-2022
    PublishedVulnerability first disclosed.
  2. 23-04-2025
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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
Matrix1 product
Matrix-org1 product
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
Show all 17 references