Advisory

GHSA-jrh7-mhhx-6h88

Also known as: CVE-2021-21393, PYSEC-2021-26

Summary

Denial of service (via resource exhaustion) due to improper input validation on groups/communities endpoints

Details

Impact
Missing input validation of some parameters on the groups (also known as communities) endpoints could cause excessive use of disk space and memory leading to resource exhaustion. Additionally clients may have issues rendering large fields.

Patches
This issue is fixed by #9321 and #9393.

Workarounds
The groups feature can be disabled (by setting enable_group_creation to False) to mitigate this issue. Note that it is disabled by default.

Other information
Note that the groups feature is not part of the Matrix specification and the chosen maximum lengths are arbitrary. Not all clients might abide by them.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-04-13 15:12 UTC
Modified
2026-07-08 06:28 UTC

Affected packages and fixes

matrix-synapse

PyPI · All systems

Affected

  • introduced 0, fixed 1.28.0 (ecosystem)

Fixed versions

1.28.0

Fix

  • Fixed version 1.28.0
    pip install --upgrade matrix-synapse==1.28.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