{"id":"CVE-2023-38686","published":"2023-08-04T15:57:15Z","modified":"2024-10-08T17:50:55Z","title":"Sydent does not verify email server certificates","vendor":"matrix-org","product":"sydent","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00265,"percentile":0.18763,"provenance":"source"},"cwes":[{"id":"CWE-295","name":"Improper Certificate Validation"}],"references":[{"url":"https://github.com/matrix-org/sydent/security/advisories/GHSA-p6hw-wm59-3g5g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python/cpython/issues/91826","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/sydent/pull/574","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/sydent/commit/1cd748307c6b168b66154e6c4db715d4b9551261","tags":["x_refsource_MISC"]},{"url":"https://docs.python.org/3/library/ssl.html?highlight=ssl#security-considerations","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/sydent/releases/tag/v2.5.6","tags":["x_refsource_MISC"]},{"url":"https://peps.python.org/pep-0476/","tags":["x_refsource_MISC"]}],"priority":{"score":10.3,"factors":[{"name":"EPSS percentile","points":3.75},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"sydent","versions":["< 2.5.6"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-10-08T17:45:32.889405Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"matrix-sydent","vulnerableRanges":["<2.5.6"],"patched":["2.5.6"],"from":["GHSA-p6hw-wm59-3g5g","PYSEC-2023-139"],"provenance":"source"}],"summary":{"text":"Sydent, the identity server for the Matrix communications protocol from matrix-org, does not verify SMTP server certificates when configured to send email over TLS. An attacker positioned on the network path can intercept emails such as room invitations and address confirmation messages through a man-in-the-middle attack, and the flaw is exploitable from an adjacent network without authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:57:35Z"},"euvd":{"id":"EUVD-2023-0132","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-matrix-org-sydent-cve-2019-11340","parents":[{"from":"CVE-2019-11340","to":"CVE-2023-38686","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["sydent/util/emailutils.py"],"commits":["https://github.com/matrix-org/sydent/commit/4e1cfff53429c49c87d5c457a18ed435520044fc","https://github.com/matrix-org/sydent/commit/1cd748307c6b168b66154e6c4db715d4b9551261"],"basis":"shared function","functions":["sendEmail"]}]},{"from":"CVE-2021-29432","to":"CVE-2023-38686","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["sydent/util/emailutils.py"],"commits":["https://github.com/matrix-org/sydent/commit/4469d1d42b2b1612b70638224c07e19623039c42","https://github.com/matrix-org/sydent/commit/1cd748307c6b168b66154e6c4db715d4b9551261"],"basis":"shared function","functions":["sendEmail"]}]}]}}