CVE-2023-38686: Sydent does not verify email server certificates
Vulnerability summary
CVE-2023-38686 is a critical (CVSS 9.3) Improper Certificate Validation vulnerability in matrix-org sydent. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 19.6% of scored vulnerabilities.
Severe, CVSS 9.3 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 04-08-2023PublishedVulnerability first disclosed.
- 08-10-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · PypiEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NDiffers
- NVDNIST5.3MediumCVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NDiffers
EPSS trend
Probability
0.27%
Chance of exploitation in the next 30 days
Percentile
20%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.27% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: adjacent network, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Matrix1 product
- sydent< 2.5.6
Matrix-org1 product
- sydent< 2.5.6
PyPI1 product
- matrix-sydent< 1cd748307c6b168b66154e6c4db715d4b9551261 | < 2.5.6
Ubuntu1 product
- matrix-sydentAll versions (No fix recorded)
4 vendors · 4 products
References
13 links- github.com/matrix-org/sydent/security/advisories/GHSA-p6hw-wm59-3g5gX Refsource CONFIRMWEBAdvisoryREPORTVendor Advisory
- github.com/matrix-org/sydent/commit/1cd748307c6b168b66154e6c4db715d4b9551261X Refsource MISCWEBFIXREPORTPatch
- github.com/matrix-org/sydentPACKAGE