BreachSpiderVerified, not vibes

CVE-2022-31052 in Fedoraproject Fedora and 1 more product

Medium 6.5

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 proble...

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.16.5
EPSS1.4%
EPSS percentile72th
FixSee advisory

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Fedoraproject Fedora 35 36
Matrix Synapse < 1.61.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-31052
BreachSpider IDBS-2022-GLOBAL-067641-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Published2022-06-28
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-674: CWE-674

Related attack patterns (CAPEC)

CAPEC-230 Serialized Data with Nested Payloads via CWE-674

CAPEC-231 Oversized Serialized Data Payloads via CWE-674

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2022-31052 affects Synapse versions prior to 1.61.1, where URL previews of certain web pages can cause unbounded recursion, potentially crashing the Synapse process.

An attacker can exploit this vulnerability by sending a specially crafted URL to a Synapse server, which, when previewed, triggers unbounded recursion in the Synapse process.

Questions

What is CVE-2022-31052?

CVE-2022-31052 affects Synapse versions prior to 1.61.1, where URL previews of certain web pages can cause unbounded recursion, potentially crashing the Synapse process.

What is the CVSS score for CVE-2022-31052?

CVE-2022-31052 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. EPSS: 1.4%.

Is CVE-2022-31052 actively exploited?

No confirmed active exploitation of CVE-2022-31052 as of 2026-09-25.

How do I remediate CVE-2022-31052?

Priority: MEDIUM. Advisory: https://spec.matrix.org/v1.2/client-server-api/#get_matrixmediav3preview_url

What systems are affected by CVE-2022-31052?

CVE-2022-31052 affects Fedoraproject Fedora; Matrix Synapse.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Fedoraproject","product":"Fedora","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.