Vulnerability Details : CVE-2023-38686
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.
Products affected by CVE-2023-38686
- cpe:2.3:a:matrix:sydent:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-38686
0.06%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 27 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-38686
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.3
|
MEDIUM | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
1.6
|
3.6
|
NIST | |
9.3
|
CRITICAL | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
2.8
|
5.8
|
GitHub, Inc. |
CWE ids for CVE-2023-38686
-
The product does not validate, or incorrectly validates, a certificate.Assigned by: security-advisories@github.com (Primary)
References for CVE-2023-38686
-
https://github.com/python/cpython/issues/91826
Enable TLS certificate validation by default for SMTP/IMAP/FTP/POP/NNTP protocols · Issue #91826 · python/cpython · GitHubIssue Tracking
-
https://github.com/matrix-org/sydent/pull/574
Explicitly create an SSL context when emailing by DMRobertson · Pull Request #574 · matrix-org/sydent · GitHubIssue Tracking;Patch
-
https://github.com/matrix-org/sydent/commit/1cd748307c6b168b66154e6c4db715d4b9551261
Explicitly create an SSL context when emailing (#574) · matrix-org/sydent@1cd7483 · GitHubPatch
-
https://peps.python.org/pep-0476/
PEP 476 – Enabling certificate verification by default for stdlib http clients | peps.python.orgThird Party Advisory
-
https://docs.python.org/3/library/ssl.html?highlight=ssl#security-considerations
ssl — TLS/SSL wrapper for socket objects — Python 3.11.4 documentationTechnical Description
-
https://github.com/matrix-org/sydent/releases/tag/v2.5.6
Release v2.5.6 · matrix-org/sydent · GitHubRelease Notes
-
https://github.com/matrix-org/sydent/security/advisories/GHSA-p6hw-wm59-3g5g
Sydent does not verify email server certificates · Advisory · matrix-org/sydent · GitHubVendor Advisory
Jump to