CVE-2023-32682
Improper checks for deactivated users during login in synapse
Reported by github_m · Published June 6, 2023
matrix-synapse is fixed in 1.85.0 (PyPI)
Synapse is a Matrix protocol homeserver written in Python with the Twisted framework. In affected versions it may be possible for a deactivated user to login when using uncommon configurations. This only applies if any of the following are true: 1. JSON Web Tokens are enabled for login via the `jwt_config.enabled` configuration setting. 2. The local password database is enabled via the `password_config.enabled` and `password_config.localdb_enabled` configuration settings *and* a user's password is updated via an admin API after a user is deactivated. Note that the local password database is enabled by default, but it is uncommon to set a user's password after they've been deactivated. Installations that are configured to only allow login via Single Sign-On (SSO) via CAS, SAML or OpenID Connect (OIDC); or via an external password provider (e.g. LDAP) are not affected. If not using JSON Web Tokens, ensure that deactivated users do not have a password set. This issue has been addressed in version 1.85.0. Users are advised to upgrade.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| matrix-synapse | PyPI | 1.85.0 |
| synapse | matrix | 1.85.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| matrix-org | synapse | < 1.85.0 |
| matrix-org | synapse | 0 |
| alpine | synapse | 0 |
| PyPI | matrix-synapse | 0 |
Timeline
- May 19, 2023 Fix PR Merged
- Jun 6, 2023 CVE Published
- Jun 7, 2023 EPSS Score (30 in total, the first dated here)
- Feb 15, 2026 CVE Updated
- Feb 15, 2026 Security Advisory
- Aug 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-32682
vulnetix vdb fixes CVE-2023-32682
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-32682/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/matrix-org/synapse/security/advisories/GHSA-26c5-ppr8-f33p x_refsource_CONFIRM
- https://github.com/matrix-org/synapse/pull/15624 x_refsource_MISC
- https://github.com/matrix-org/synapse/pull/15634 x_refsource_MISC
- https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#create-or-modify-account x_refsource_MISC
- https://matrix-org.github.io/synapse/latest/jwt.html x_refsource_MISC
- https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#password_config x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2023-32682 advisory
- https://github.com/advisories/GHSA-26c5-ppr8-f33p advisory
- https://github.com/matrix-org/synapse/issues/12274 url
- https://github.com/matrix-org/synapse url
- https://github.com/matrix-org/synapse/releases/tag/v1.85.0 url
- https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2023-84.yaml advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X6DH5A5YEB5LRIPP32OUW25FCGZFCZU2 url