{"schemaVersion":3,"id":"CVE-2022-31052","aliases":["GHSA-22p3-qrh9-cx32","PYSEC-2022-224","UBUNTU-CVE-2022-31052","DEBIAN-CVE-2022-31052","openSUSE-SU-2024:12160-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-06-28T17:10:11.000Z","modified":"2025-04-23T18:05:56.038Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":7.1,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":3.5,"severity":"low","vector":"AV:N/AC:M/Au:S/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0166,"percentile":0.76313,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.0166},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0166,"percentile":0.76313}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0166,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0166,"percentile":0.76313}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-674","name":"Uncontrolled Recursion","description":"The product does not properly control the amount of recursion that takes place,  consuming excessive resources, such as allocated memory or the program stack.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/674.html"}],"affected":[{"vendor":"debian","product":"matrix-synapse","name":"matrix-synapse","label":"matrix-synapse","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/matrix-synapse","purlType":"deb","versions":[{"text":"< 1.61.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.61.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"matrix-synapse","name":"matrix-synapse","label":"matrix-synapse","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/matrix-synapse","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"35","noFixRecorded":false,"fixedIn":null},{"text":"36","noFixRecorded":false,"fixedIn":null}],"versionsText":"35 | 36","eol":{"isEol":true,"eolDate":"2022-12-13T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"35","label":"35","eolFrom":"2022-12-13T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"matrix-org","product":"synapse","name":"synapse","label":"synapse","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.61.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.61.1","eol":null,"hubHref":"/vendor/matrix-org/synapse"},{"vendor":"matrix","product":"synapse","name":"synapse","label":"synapse","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.61.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.61.1","eol":null,"hubHref":"/vendor/matrix/synapse"},{"vendor":"PyPI","product":"matrix-synapse","name":"matrix-synapse","label":"matrix-synapse","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/matrix-synapse","purlType":"pypi","versions":[{"text":"< fa1308061802ac7b7d20e954ba7372c5ac292333","noFixRecorded":false,"fixedIn":null},{"text":"< 1.61.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< fa1308061802ac7b7d20e954ba7372c5ac292333 | < 1.61.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"matrix-synapse&distro=openSUSE Tumbleweed","name":"matrix-synapse","label":"matrix-synapse&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/matrix-synapse&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 1.61.1-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.61.1-1.1","eol":null,"hubHref":null}],"affectedCount":7,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/matrix-org/synapse/security/advisories/GHSA-22p3-qrh9-cx32","label":"github.com/matrix-org/synapse/security/advisories/GHSA-22p3-qrh9-cx32","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","REPORT","Third Party Advisory"]},{"url":"https://github.com/matrix-org/synapse/commit/fa1308061802ac7b7d20e954ba7372c5ac292333","label":"github.com/matrix-org/synapse/commit/fa1308061802ac7b7d20e954ba7372c5ac292333","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://spec.matrix.org/v1.2/client-server-api/#get_matrixmediav3preview_url","label":"spec.matrix.org/v1.2/client-server-api/","hostname":"spec.matrix.org","tags":["X Refsource MISC","WEB","REPORT","Vendor Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7EARKKJZ2W7WUITFDT4EG4NVATFYJQHF/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGSDQ4YAITCUACAB7SXQZDJIU3IQ4CJD/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31052","label":"nvd.nist.gov/vuln/detail/CVE-2022-31052","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/matrix-org/synapse","label":"github.com/matrix-org/synapse","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2022-224.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2022-224.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7EARKKJZ2W7WUITFDT4EG4NVATFYJQHF","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGSDQ4YAITCUACAB7SXQZDJIU3IQ4CJD","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGSDQ4YAITCUACAB7SXQZDJIU3IQ4CJD/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7EARKKJZ2W7WUITFDT4EG4NVATFYJQHF/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2022-31052","label":"ubuntu.com/security/CVE-2022-31052","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31052","label":"www.cve.org/CVERecord?id=CVE-2022-31052","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-31052","label":"security-tracker.debian.org/tracker/CVE-2022-31052","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2022-31052","label":"www.suse.com/security/cve/CVE-2022-31052","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-06-28T17:10:11.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T18:05:56.038Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T18:11:53.725Z","stale":false,"partial":false}}