Advisory

GHSA-4mp3-385r-v63f

Also known as: CVE-2020-26890, PYSEC-2020-237

Summary

Denial of service attack due to invalid JSON

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-11-24 22:58 UTC
Modified
2026-07-08 06:29 UTC

Affected packages and fixes

matrix-synapse

PyPI · All systems

Affected

  • introduced 0, fixed 1.20.0 (ecosystem)

Fixed versions

1.20.0

Fix

  • Fixed version 1.20.0
    pip install --upgrade matrix-synapse==1.20.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences