{"schemaVersion":3,"id":"CVE-2021-29430","aliases":["GHSA-wmg4-8cp2-hpg9","PYSEC-2021-21"],"status":"published","duplicateOf":null,"title":null,"description":"Sydent is a reference Matrix identity server. Sydent does not limit the size of requests it receives from HTTP clients. A malicious user could send an HTTP request with a very large body, leading to memory exhaustion and denial of service. Sydent also does not limit response size for requests it makes to remote Matrix homeservers. A malicious homeserver could return a very large response, again leading to memory exhaustion and denial of service. This affects any server which accepts registration requests from untrusted clients. This issue has been patched by releases 89071a1, 0523511, f56eee3. As a workaround request sizes can be limited in an HTTP reverse-proxy. There are no known workarounds for the problem with overlarge responses.","dates":{"published":"2021-04-15T20:35:19.000Z","modified":"2024-08-03T22:02:51.883Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/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":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/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":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/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":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01833,"percentile":0.78595,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01833},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01833,"percentile":0.78595}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01833,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01833,"percentile":0.78595}]},"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-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling","description":"The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/770.html"}],"affected":[{"vendor":"matrix-org","product":"sydent","name":"sydent","label":"sydent","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.3.0","eol":null,"hubHref":"/vendor/matrix-org/sydent"},{"vendor":"matrix","product":"sydent","name":"sydent","label":"sydent","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.3.0","eol":null,"hubHref":"/vendor/matrix/sydent"},{"vendor":"PyPI","product":"matrix-sydent","name":"matrix-sydent","label":"matrix-sydent","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/matrix-sydent","purlType":"pypi","versions":[{"text":"< f56eee315b6c44fdd9f6aa785cc2ec744a594428","noFixRecorded":false,"fixedIn":null},{"text":"< 2.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< f56eee315b6c44fdd9f6aa785cc2ec744a594428 | < 2.3.0","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://pypi.org/project/matrix-sydent/","label":"pypi.org/project/matrix-sydent/","hostname":"pypi.org","tags":["X Refsource MISC","PACKAGE","Product","Third Party Advisory"]},{"url":"https://github.com/matrix-org/sydent/security/advisories/GHSA-wmg4-8cp2-hpg9","label":"github.com/matrix-org/sydent/security/advisories/GHSA-wmg4-8cp2-hpg9","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Patch","Third Party Advisory"]},{"url":"https://github.com/matrix-org/sydent/commit/89071a1a754c69a50deac89e6bb74002d4cda19d","label":"github.com/matrix-org/sydent/commit/89071a1a754c69a50deac89e6bb74002d4cda19d","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://github.com/matrix-org/sydent/commit/0523511d2fb40f2738f8a8549868f44b96e5dab7","label":"github.com/matrix-org/sydent/commit/0523511d2fb40f2738f8a8549868f44b96e5dab7","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://github.com/matrix-org/sydent/commit/f56eee315b6c44fdd9f6aa785cc2ec744a594428","label":"github.com/matrix-org/sydent/commit/f56eee315b6c44fdd9f6aa785cc2ec744a594428","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://github.com/matrix-org/sydent/releases/tag/v2.3.0","label":"github.com/matrix-org/sydent/releases/tag/v2.3.0","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29430","label":"nvd.nist.gov/vuln/detail/CVE-2021-29430","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/matrix-org/sydent","label":"github.com/matrix-org/sydent","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/matrix-sydent/PYSEC-2021-21.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/matrix-sydent/PYSEC-2021-21.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://pypi.org/project/matrix-sydent","label":"pypi.org/project/matrix-sydent","hostname":"pypi.org","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-04-15T20:35:19.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T22:02:51.883Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T04:24:31.812Z","stale":false,"partial":false}}