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

Published Aug 31, 2021
·
Updated

Impact 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 enablegroupcreation has been set to true are impacted.

Patches Server administrators should upgrade to 1.41.1 or higher.

Workarounds Server administrators can set enablegroupcreation 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 following endpoints: /matrix/client/r0/groups/{groupid}/rooms /matrix/client/unstable/groups/{groupid}/rooms

References n/a

For more information If you have any questions or comments about this advisory, e-mail us at security@matrix.org.

Other sources

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 enablegroupcreation 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 enablegroupcreation 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/{groupid}/rooms and /matrix/client/unstable/groups/{groupid}/rooms.

MITRE

Affected Software

4 affected componentsFixes available
pip/matrix-synapse<1.41.1
1.41.1
matrix synapse<1.41.1
Fedoraproject Fedora=34
Fedoraproject Fedora=35

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/matrix-synapse to a version that resolves this vulnerability.

    Fixed in 1.41.1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.41.1
  3. Configuration

    Set `enable_group_creation` to `false` in the homeserver configuration to prevent group (community) creation by non-administrators (this is the default value).

    Matrix homeserver enable_group_creation = false
  4. Compensating control

    If using a reverse proxy, block the endpoints `/_matrix/client/r0/groups/{group_id}/rooms` and `/_matrix/client/unstable/groups/{group_id}/rooms` to mitigate exposure of room metadata, noting this may cause partial loss of group functionality.

Event History

Aug 31, 2021
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 1, 2021
Advisory Published
via GitHub·06:25 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-39163?

CVE-2021-39163 is a vulnerability in Matrix Synapse, an ecosystem for open federated Instant Messaging and Voice over IP, where unauthorised users can access certain information of a room if they know the room ID.

2

What is the severity of CVE-2021-39163?

The severity of CVE-2021-39163 is low, with a CVSS severity score of 3.1.

3

How can unauthorised users access room information in CVE-2021-39163?

Unauthorised users can access the name, avatar, topic, and number of members of a room if they know the ID of the room.

4

Which software versions are affected by CVE-2021-39163?

Versions 1.41.0 and prior of Matrix Synapse and Fedora 34 and Fedora 35 are affected by CVE-2021-39163.

5

How do I fix CVE-2021-39163?

To fix CVE-2021-39163, upgrade to version 1.41.1 of Matrix Synapse.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2021-39163 - Adding a private/unlisted room to a community exposes room metadata in an unauthorised manner. - SecAlerts