CVEfocus › CVE database › CVE-2021-39163

CVE-2021-39163Adding a private/unlisted room to a community exposes room metadata in an unauthorised…

CVSS 3.1 LowEPSS 0.9% (higher than 58% of CVEs)Published 2021-08-31Updated 2024-08-04Assigner: GitHub_M

Matrix is an ecosystem for open federated Instant Messaging and Voice over IP. In versions 1.41.0 and prior, unauthorised users can access the name, avatar, topic and number of members of a room if they know the ID of the room. This vulnerability is limited to homeservers where the vulnerable homeserver is in the room and untrusted users are permitted to create groups (communities). By default, only homeserver administrators can create groups. However, homeserver administrators can already access this information in the database or using the admin API. As a result, only homeservers where the configuration setting `enable_group_creation` has been set to `true` are impacted. Server administrators should upgrade to 1.41.1 or higher to patch the vulnerability. There are two potential workarounds. Server administrators can set `enable_group_creation` to `false` in their homeserver configuration (this is the default value) to prevent creation of groups by non-administrators. Administrators that are using a reverse proxy could, with partial loss of group functionality, block the endpoints `/_matrix/client/r0/groups/{group_id}/rooms` and `/_matrix/client/unstable/groups/{group_id}/rooms`.

CWE-200

What to do

Fixed builds are available from Alpine, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

12Fixed
3Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04matrix-synapseNot affected
vulnerable_code_not_present
Ubuntu 22.04matrix-synapseFix pendingUBUNTU-CVE-2021-39163
Ubuntu 20.04matrix-synapseFix pendingUBUNTU-CVE-2021-39163
Ubuntu 18.04matrix-synapseFix pendingUBUNTU-CVE-2021-39163
Alpine Linux 3.24synapseFixed1.41.1-r0ALPINE-CVE-2021-39163
Alpine Linux 3.23synapseFixed1.41.1-r0ALPINE-CVE-2021-39163
Alpine Linux 3.22synapseFixed1.41.1-r0ALPINE-CVE-2021-39163
Alpine Linux 3.21synapseFixed1.41.1-r0ALPINE-CVE-2021-39163
Alpine Linux 3.20synapseFixed1.41.1-r0ALPINE-CVE-2021-39163
Alpine Linux 3.19synapseFixed1.41.1-r0ALPINE-CVE-2021-39163
Alpine Linux 3.18synapseFixed1.41.1-r0ALPINE-CVE-2021-39163
Alpine Linux 3.17synapseFixed1.41.1-r0ALPINE-CVE-2021-39163
Alpine Linux 3.16synapseFixed1.41.1-r0ALPINE-CVE-2021-39163
Alpine Linux 3.15synapseFixed1.41.1-r0ALPINE-CVE-2021-39163
Alpine Linux 3.14synapseFixed1.41.1-r0ALPINE-CVE-2021-39163
PyPI librarymatrix-synapseFixed1.41.1GHSA-jj53-8fmw-f2w2

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.