7.5high
Denial of service attack due to invalid JSON
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 3.00% (higher than 88% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-4mp3-385r-v63fPYSEC-2020-237
Description
Matrix Synapse before 1.20.0 erroneously permits non-standard NaN, Infinity, and -Infinity JSON values in fields of m.room.member events, allowing remote attackers to execute a denial of service attack against the federation and common Matrix clients. If such a malformed event is accepted into the room's state, the impact is long-lasting and is not fixed by an upgrade to a newer version, requiring the event to be manually redacted instead. Since events are replicated to servers of other room members, the impact is not constrained to the server of the event sender.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| matrix-synapse (PyPI) | before 1.20.0 | GitHub Advisory Database, PyPA Advisory Database |
| matrix synapse | before 1.20.0 | NVD |
| fedoraproject fedora | 32, 33 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | 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 |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
Matrix Synapse before 1.20.0 erroneously permits non-standard NaN, Infinity, and -Infinity JSON values in fields of m.room.member events, allowing remote attackers to execute a denial of service attack against the federation and common Matrix clients. If such a malformed event is accepted into the room's state, the impact is long-lasting and is not fixed by an upgrade to a newer version, requiring the event to be manually redacted instead. Since events are replicated to servers of other room members, the impact is not constrained to the server of the event sender.
GitHub Advisory Database
Impact
A denial of service attack against Matrix clients can be exploited by sending an event including invalid JSON data to Synapse. Synapse would relay the data to clients which could crash or hang. Impact is long-lasting if the event is made part of the room state.
Patches
At a minimum #8106 and #8291 must be applied. #7372 and #8124 include additional checks.
Workarounds
There are no known workarounds.
Upgrading notes
If an invalid event is accepted by an earlier Synapse it can become part of the room state and will not be fixed by upgrading Synapse. Redacting the invalid event should avoid clients receiving the invalid event.
NVD (es)
Matrix Synapse versiones anteriores a 1.20.0, permite erróneamente valores de JSON NaN, Infinity e -Infinity no estándar en campos de eventos m.room.member, permitiendo a atacantes remotos ejecutar un ataque de denegación de servicio contra la federación y unos clientes comunes de Matrix. Si un evento malformado es aceptado en el estado de la sala, el impacto es duradero y no es corregido con una actualización a una versión más nueva, requiriendo que el evento sea redactado manualmente. Dado que los eventos son replicados en los servidores de otros miembros de la sala, el impacto no está limitado al servidor del remitente del evento
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-26890 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4mp3-385r-v63f changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2020-26890 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2020-237 changed 2023-11-08 | CC-BY-4.0 |