CVE-2021-21394: Denial of service (via resource exhaustion) due to improper input validation on third-party identifier endpoints
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.6583%
CWE
Published
4/13/2021
Updated
9/24/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
matrix-synapse | pip | < 1.28.0 | 1.28.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing input validation on third-party identifier endpoints. Patches #9321 and #9393 added length checks for parameters like 'client_secret' and other inputs. The affected endpoints (/register/email
, /register/msisdn
, /account/password
, /account/3pid
) correspond to handler functions in registration and account management modules. These functions processed untrusted parameters without size validation, allowing attackers to submit oversized values that exhaust resources. The confidence is high because the patches explicitly target these endpoints, and the CVE description directly implicates the parameter validation logic in these flows.