CVE-2023-41335
Temporary storage of plaintext passwords during password changes in matrix synapse
Reported by github_m · Published September 26, 2023
matrix-synapse is fixed in 1.93.0 (PyPI)
Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. When users update their passwords, the new credentials may be briefly held in the server database. While this doesn't grant the server any added capabilities—it already learns the users' passwords as part of the authentication process—it does disrupt the expectation that passwords won't be stored in the database. As a result, these passwords could inadvertently be captured in database backups for a longer duration. These temporarily stored passwords are automatically erased after a 48-hour window. This issue has been addressed in version 1.93.0. Users are advised to upgrade. There are no known workarounds for this issue.
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.93.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| matrix-org | synapse | >= 1.66.0, < 1.93.0 |
| matrix-org | synapse | 1.66.0 |
| alpine | synapse | 0 |
| PyPI | matrix-synapse | 1.66.0 |
Timeline
- Sep 8, 2023 Fix PR Merged
- Sep 26, 2023 CVE Published
- Sep 27, 2023 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Feb 6, 2026 Security Advisory (2 in total, the first dated here)
- Aug 4, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-41335
vulnetix vdb fixes CVE-2023-41335
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-41335/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-4f74-84v3-j9q5 x_refsource_CONFIRM
- https://github.com/matrix-org/synapse/pull/16272 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2023-41335 advisory
- https://github.com/advisories/GHSA-4f74-84v3-j9q5 advisory
- https://github.com/matrix-org/synapse/pull/13188 patch
- https://github.com/matrix-org/synapse/commit/69b74d9330e42fc91a9c7423d00a06cd6d3732bf patch
- https://github.com/matrix-org/synapse url
- https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2023-185.yaml advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2AFB2Y3S2VCPCN5P2XCZTG24MBMZ7DM4 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/65QPC55I4D27HIZP7H2NQ34EOXHPP4AO url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/N6P4QULVUE254WI7XF2LWWOGHCYVFXFY url