{"api_version":"1","generated_at":"2026-07-23T22:43:07+00:00","cve":"CVE-2022-31052","urls":{"html":"https://cve.report/CVE-2022-31052","api":"https://cve.report/api/cve/CVE-2022-31052.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31052","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31052"},"summary":{"title":"CVE-2022-31052","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-06-28 17:15:00","updated_at":"2023-11-07 03:47:00"},"problem_types":["CWE-674"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7EARKKJZ2W7WUITFDT4EG4NVATFYJQHF/","name":"FEDORA-2022-45bf6d4b88","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 36 Update: matrix-synapse-1.61.1-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGSDQ4YAITCUACAB7SXQZDJIU3IQ4CJD/","name":"FEDORA-2022-1a2312e4d6","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: matrix-synapse-1.61.1-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGSDQ4YAITCUACAB7SXQZDJIU3IQ4CJD/","name":"FEDORA-2022-1a2312e4d6","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: matrix-synapse-1.61.1-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/matrix-org/synapse/security/advisories/GHSA-22p3-qrh9-cx32","name":"https://github.com/matrix-org/synapse/security/advisories/GHSA-22p3-qrh9-cx32","refsource":"CONFIRM","tags":[],"title":"URL previews of unusual or maliciously-crafted pages can crash Synapse media repositories or Synapse monoliths · Advisory · matrix-org/synapse · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/matrix-org/synapse/commit/fa1308061802ac7b7d20e954ba7372c5ac292333","name":"https://github.com/matrix-org/synapse/commit/fa1308061802ac7b7d20e954ba7372c5ac292333","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-22p3-qrh9-cx32 · matrix-org/synapse@fa13080 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://spec.matrix.org/v1.2/client-server-api/#get_matrixmediav3preview_url","name":"https://spec.matrix.org/v1.2/client-server-api/#get_matrixmediav3preview_url","refsource":"MISC","tags":[],"title":"Client-Server API | Matrix Specification","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7EARKKJZ2W7WUITFDT4EG4NVATFYJQHF/","name":"FEDORA-2022-45bf6d4b88","refsource":"","tags":[],"title":"[SECURITY] Fedora 36 Update: matrix-synapse-1.61.1-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31052","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31052","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"31052","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"31052","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"36","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"31052","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"matrix","cpe5":"synapse","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-31052","qid":"282920","title":"Fedora Security Update for matrix (FEDORA-2022-1a2312e4d6)"},{"cve":"CVE-2022-31052","qid":"282921","title":"Fedora Security Update for matrix (FEDORA-2022-45bf6d4b88)"},{"cve":"CVE-2022-31052","qid":"502369","title":"Alpine Linux Security Update for synapse"},{"cve":"CVE-2022-31052","qid":"690888","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for py (07c0d782-f758-11ec-acaa-901b0e9408dc)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-31052","STATE":"PUBLIC","TITLE":"URL previews can crash Synapse media repositories or Synapse monoliths"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"synapse","version":{"version_data":[{"version_value":"< 1.61.1"}]}}]},"vendor_name":"matrix-org"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-674: Uncontrolled Recursion"}]}]},"references":{"reference_data":[{"name":"https://github.com/matrix-org/synapse/security/advisories/GHSA-22p3-qrh9-cx32","refsource":"CONFIRM","url":"https://github.com/matrix-org/synapse/security/advisories/GHSA-22p3-qrh9-cx32"},{"name":"https://github.com/matrix-org/synapse/commit/fa1308061802ac7b7d20e954ba7372c5ac292333","refsource":"MISC","url":"https://github.com/matrix-org/synapse/commit/fa1308061802ac7b7d20e954ba7372c5ac292333"},{"name":"https://spec.matrix.org/v1.2/client-server-api/#get_matrixmediav3preview_url","refsource":"MISC","url":"https://spec.matrix.org/v1.2/client-server-api/#get_matrixmediav3preview_url"},{"refsource":"FEDORA","name":"FEDORA-2022-45bf6d4b88","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7EARKKJZ2W7WUITFDT4EG4NVATFYJQHF/"},{"refsource":"FEDORA","name":"FEDORA-2022-1a2312e4d6","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGSDQ4YAITCUACAB7SXQZDJIU3IQ4CJD/"}]},"source":{"advisory":"GHSA-22p3-qrh9-cx32","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-06-28 17:15:00","lastModifiedDate":"2023-11-07 03:47:00","problem_types":["CWE-674"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":3.5},"severity":"LOW","exploitabilityScore":6.8,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:matrix:synapse:*:*:*:*:*:*:*:*","versionEndExcluding":"1.61.1","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}