CVE-2023-41335: Temporary storage of plaintext passwords during password changes in matrix synapse

Published Sep 26, 2023
·
Updated

Impact

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.

Patches https://github.com/matrix-org/synapse/pull/16272

References

This bug was due to a regression in https://github.com/matrix-org/synapse/pull/13188.

Other sources

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.

MITRE

Affected Software

5 affected componentsFixes available
pip/matrix-synapse>=1.66.0<1.93.0
1.93.0
matrix synapse>=1.66.0<1.93.0
Fedoraproject Fedora=37
Fedoraproject Fedora=38
debian/matrix-synapse
1.121.0-6

Event History

Sep 26, 2023
Advisory Published
via GitHub·06:55 PM
CVE Published
via MITRE·08:51 PM
Data Sourced
via MITRE·08:51 PM
DescriptionSeverityWeakness
Apr 23, 2025
Data Sourced
via Ubuntu·04:23 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·04:24 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the impact of CVE-2023-41335?

When users update their passwords, the new credentials may be briefly held in the server database.

2

Does CVE-2023-41335 grant the server any added capabilities?

No, it does not grant the server any added capabilities.

3

What does CVE-2023-41335 disrupt?

CVE-2023-41335 disrupts the expectation that passwords won't be held in the server database.

4

How can I fix CVE-2023-41335?

To fix CVE-2023-41335, update your 'matrix-synapse' package to version 1.93.0 or higher.

5

Where can I find more information about CVE-2023-41335?

You can find more information about CVE-2023-41335 in the references: - [GitHub Advisory](https://github.com/matrix-org/synapse/security/advisories/GHSA-4f74-84v3-j9q5) - [GitHub Pull Request 1](https://github.com/matrix-org/synapse/pull/13188) - [GitHub Pull Request 2](https://github.com/matrix-org/synapse/pull/16272)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203