{"id":"CVE-2023-32682","published":"2023-06-06T18:20:14Z","modified":"2025-02-13T16:54:57Z","title":"Improper checks for deactivated users during login in synapse","vendor":"matrix-org","product":"synapse","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00752,"percentile":0.55953,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/matrix-org/synapse/security/advisories/GHSA-26c5-ppr8-f33p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/synapse/pull/15624","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/synapse/pull/15634","tags":["x_refsource_MISC"]},{"url":"https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#create-or-modify-account","tags":["x_refsource_MISC"]},{"url":"https://matrix-org.github.io/synapse/latest/jwt.html","tags":["x_refsource_MISC"]},{"url":"https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#password_config","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X6DH5A5YEB5LRIPP32OUW25FCGZFCZU2/","tags":[]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":11.19},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"synapse","versions":["< 1.85.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-07T16:28:39.349896Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"matrix-synapse","vulnerableRanges":["<1.85.0"],"patched":["1.85.0"],"from":["GHSA-26c5-ppr8-f33p","PYSEC-2023-84"],"provenance":"source"}],"summary":{"text":"Synapse, the Matrix protocol homeserver written in Python with the Twisted framework, has an improper authentication flaw in its login checks that fails to properly reject deactivated users. An attacker with network access and a low-privilege account can log in as a deactivated user, but only when JSON Web Token login is enabled, or when the local password database is enabled and an admin has set a password for the user after deactivation; installations limited to SSO (CAS, SAML, OIDC) or an external password provider such as LDAP are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:06Z"},"euvd":{"id":"EUVD-2023-0140","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-39374","published":"2023-05-26","fixed":"1.68.0","kev":false},{"cve":"CVE-2022-39335","published":"2023-05-26","fixed":"1.69.0","kev":false},{"cve":"CVE-2023-32323","published":"2023-05-26","fixed":"1.74.0","kev":false,"link":{"from":"CVE-2023-32323","to":"CVE-2023-32682","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:matrix-synapse","fromFixed":"1.74.0","toFixed":"1.85.0","daysApart":11}]}},{"cve":"CVE-2023-32682","published":"2023-06-06","fixed":"1.85.0","kev":false},{"cve":"CVE-2023-32683","published":"2023-06-06","fixed":"1.85.0","kev":false},{"cve":"CVE-2023-41335","published":"2023-09-26","fixed":"1.93.0","kev":false,"link":{"from":"CVE-2023-32682","to":"CVE-2023-41335","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:matrix-synapse","fromFixed":"1.85.0","toFixed":"1.93.0","daysApart":112}]}},{"cve":"CVE-2023-42453","published":"2023-09-26","fixed":"1.93.0","kev":false,"link":{"from":"CVE-2023-32682","to":"CVE-2023-42453","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:matrix-synapse","fromFixed":"1.85.0","toFixed":"1.93.0","daysApart":112}]}}],"package":"PyPI:matrix-synapse"}}