CVE-2021-39164
Description
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 membership (list of members, with their display names) of a room if they know the ID of the room. The vulnerability is limited to rooms with `shared` history visibility. Furthermore, the unauthorised user must be using an account on a vulnerable homeserver that is in the room. Server administrators should upgrade to 1.41.1 or later in order to receive the patch. One workaround is available. Administrators of servers that use a reverse proxy could, with potentially unacceptable loss of functionality, block the endpoints: `/_matrix/client/r0/rooms/{room_id}/members` with `at` query parameter, and `/_matrix/client/unstable/rooms/{room_id}/members` with `at` query parameter.
Weakness
- CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Timeline
- 2021-08-31Published by the CNA16:20 UTC
- 2021-09-01GitHub advisory published (GHSA-3x4c-pq33-4w3q)1 day after publication
Exploit and advisory records
GitHub advisory GHSA-3x4c-pq33-4w3q, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI matrix-synapse | before 1.41.1 | 1.41.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| fedoraproject fedora | 34no fix listed35no fix listed | not listednot listed |
| matrix synapse | before 1.41.1fixed in 1.41.1 | 1.41.1 |
References
- https://github.com/matrix-org/synapse/commit/cb35df940a
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2VHDEPCZ22GJFMZCWA2XZAGPOEV72POF/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PXT7ID7DNBRN2TVTETU3SYQHJKEG6PXN/
- https://github.com/matrix-org/synapse/releases/tag/v1.41.1
- https://github.com/matrix-org/synapse/security/advisories/GHSA-3x4c-pq33-4w3q
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-39164'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-39164'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-39164'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-39164'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).