CVEfocus › CVE database › CVE-2021-39164

CVE-2021-39164Improper authorisation of /members discloses room membership to non-members

CVSS 3.1 LowEPSS 1.5% (higher than 74% 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 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.

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-39164
Ubuntu 20.04matrix-synapseFix pendingUBUNTU-CVE-2021-39164
Ubuntu 18.04matrix-synapseFix pendingUBUNTU-CVE-2021-39164
Alpine Linux 3.24synapseFixed1.41.1-r0ALPINE-CVE-2021-39164
Alpine Linux 3.23synapseFixed1.41.1-r0ALPINE-CVE-2021-39164
Alpine Linux 3.22synapseFixed1.41.1-r0ALPINE-CVE-2021-39164
Alpine Linux 3.21synapseFixed1.41.1-r0ALPINE-CVE-2021-39164
Alpine Linux 3.20synapseFixed1.41.1-r0ALPINE-CVE-2021-39164
Alpine Linux 3.19synapseFixed1.41.1-r0ALPINE-CVE-2021-39164
Alpine Linux 3.18synapseFixed1.41.1-r0ALPINE-CVE-2021-39164
Alpine Linux 3.17synapseFixed1.41.1-r0ALPINE-CVE-2021-39164
Alpine Linux 3.16synapseFixed1.41.1-r0ALPINE-CVE-2021-39164
Alpine Linux 3.15synapseFixed1.41.1-r0ALPINE-CVE-2021-39164
Alpine Linux 3.14synapseFixed1.41.1-r0ALPINE-CVE-2021-39164
PyPI librarymatrix-synapseFixed1.41.1PYSEC-2021-425

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.