CVE-2023-38686
published critical CVSS 3.1 · 9.3Sydent does not verify email server certificates
Package status and fixes
Description
Sydent is an identity server for the Matrix communications protocol. Prior to version 2.5.6, if configured to send emails using TLS, Sydent does not verify SMTP servers' certificates. This makes Sydent's emails vulnerable to interception via a man-in-the-middle (MITM) attack. Attackers with privileged access to the network can intercept room invitations and address confirmation emails. This is patched in Sydent 2.5.6. When patching, make sure that Sydent trusts the certificate of the server it is connecting to. This should happen automatically when using properly issued certificates. Those who use self-signed certificates should make sure to copy their Certification Authority certificate, or their self signed certificate if using only one, to the trust store of your operating system. As a workaround, one can ensure Sydent's emails fail to send by setting the configured SMTP server to a loopback or non-routable address under one's control which does not have a listening SMTP server.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| matrix-org | sydent | < 2.5.6 (affected) | GitHub_M · cna |
| matrix | sydent | 0 to < 2.5.6 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-295 CWE-295: Improper Certificate Validation
References
7- https://docs.python.org/3/library/ssl.html?highlight=ssl#security-considerations
- https://github.com/matrix-org/sydent/commit/1cd748307c6b168b66154e6c4db715d4b9551261
- https://github.com/matrix-org/sydent/pull/574
- https://github.com/matrix-org/sydent/releases/tag/v2.5.6
- https://github.com/matrix-org/sydent/security/advisories/GHSA-p6hw-wm59-3g5g
- https://github.com/python/cpython/issues/91826
- https://peps.python.org/pep-0476/
Provider assertions
3GitHub_M · cna
Sydent does not verify email server certificates
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0fcda6f49d7605d9b514fef096b5cd0cf34d414476a556ee0790ff80333f85fe
- Ingested
- 23 Sep 2026, 08:10:33 UTC
- Source record
- Official CVE record