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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | matrix-synapse | No fix yet | — |
| Ubuntu Pro 18.04 LTS | matrix-synapse | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | synapse | 1.20.0-r0 | — |
| Alpine v3.23 | synapse | 1.20.0-r0 | — |
| Alpine v3.22 | synapse | 1.20.0-r0 | — |
| Alpine v3.21 | synapse | 1.20.0-r0 | — |
| Alpine v3.20 | synapse | 1.20.0-r0 | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | synapse | 1.20.0-r0 | — |
| Alpine v3.18 | synapse | 1.20.0-r0 | — |
| Alpine v3.17 | synapse | 1.20.0-r0 | — |
| Alpine v3.16 | synapse | 1.20.0-r0 | — |
| Alpine v3.15 | synapse | 1.20.0-r0 | — |
| Alpine v3.14 | synapse | 1.20.0-r0 | — |
| Alpine v3.13 | synapse | 1.20.0-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | matrix-synapse | < 1.20.0 | 1.20.0 | GHSA-4mp3-385r-v63f |
References
- https://github.com/matrix-org/synapse/security/advisories/GHSA-4mp3-385r-v63f
- FEDORA-2020-b90dac7fc4 vendor-advisory
- FEDORA-2020-2578d943d2 vendor-advisory