Vulnerabilities · 2021 · Matrix
CVE-2021-39164
Matrix Synapse vulnerability
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.
Affected products
Synapse, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Matrix Synapse runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/matrix-org/synapse/commit/cb35df940a · Patch
- github.com/matrix-org/synapse/releases/tag/v1.41.1 · Third Party Advisory
- github.com/matrix-org/synapse/security/advisories/GHSA-3x4c-pq33-4w3q · Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P
- nvd.nist.gov/vuln/detail/CVE-2021-39164
- github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-425.yaml
- lists.fedoraproject.org/archives/list/[email protected]/message/2VH
- nvd.nist.gov/vuln/detail/CVE-2021-39164
- cve.org/CVERecord?id=CVE-2021-39164
More vulnerabilities in Matrix products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.