{"schemaVersion":4,"id":"CVE-2023-38686","aliases":["GHSA-p6hw-wm59-3g5g","PYSEC-2023-139","UBUNTU-CVE-2023-38686"],"status":"published","duplicateOf":null,"title":"Sydent does not verify email server certificates","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.","dates":{"published":"2023-08-04T15:57:15.760Z","modified":"2024-10-08T17:50:55.903Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.3,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.3,"severity":"critical","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":4.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":4.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00265,"percentile":0.19606,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00265},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00319,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00319,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00319,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00319,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00319,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00319,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00265,"percentile":0.19606}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00319,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00319,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00319,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00319,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00319,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00319,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00265,"percentile":0.19606}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-295","name":"Improper Certificate Validation","description":"The product does not validate, or incorrectly validates, a certificate.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/295.html"}],"affected":[{"vendor":"ubuntu","product":"matrix-sydent","name":"matrix-sydent","label":"matrix-sydent","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/matrix-sydent","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"matrix-org","product":"sydent","name":"sydent","label":"sydent","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.5.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.5.6","endInclusive":false}}],"versionsText":"< 2.5.6","eol":null,"hubHref":"/vendor/matrix-org/sydent"},{"vendor":"matrix","product":"sydent","name":"sydent","label":"sydent","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.5.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.5.6","endInclusive":false}}],"versionsText":"< 2.5.6","eol":null,"hubHref":"/vendor/matrix/sydent"},{"vendor":"PyPI","product":"matrix-sydent","name":"matrix-sydent","label":"matrix-sydent","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/matrix-sydent","purlType":"pypi","versions":[{"text":"< 1cd748307c6b168b66154e6c4db715d4b9551261","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1cd748307c6b168b66154e6c4db715d4b9551261","endInclusive":false}},{"text":"< 2.5.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.5.6","endInclusive":false}}],"versionsText":"< 1cd748307c6b168b66154e6c4db715d4b9551261 | < 2.5.6","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/matrix-org/sydent/security/advisories/GHSA-p6hw-wm59-3g5g","label":"github.com/matrix-org/sydent/security/advisories/GHSA-p6hw-wm59-3g5g","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","REPORT","Vendor Advisory"]},{"url":"https://github.com/python/cpython/issues/91826","label":"github.com/python/cpython/issues/91826","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Issue Tracking"]},{"url":"https://github.com/matrix-org/sydent/pull/574","label":"github.com/matrix-org/sydent/pull/574","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","REPORT","Issue Tracking","Patch"]},{"url":"https://github.com/matrix-org/sydent/commit/1cd748307c6b168b66154e6c4db715d4b9551261","label":"github.com/matrix-org/sydent/commit/1cd748307c6b168b66154e6c4db715d4b9551261","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","REPORT","Patch"]},{"url":"https://docs.python.org/3/library/ssl.html?highlight=ssl#security-considerations","label":"docs.python.org/3/library/ssl.html?highlight=ssl","hostname":"docs.python.org","tags":["X Refsource MISC","WEB","REPORT","Technical Description"]},{"url":"https://github.com/matrix-org/sydent/releases/tag/v2.5.6","label":"github.com/matrix-org/sydent/releases/tag/v2.5.6","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Release Notes"]},{"url":"https://peps.python.org/pep-0476/","label":"peps.python.org/pep-0476/","hostname":"peps.python.org","tags":["X Refsource MISC","WEB","REPORT","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38686","label":"nvd.nist.gov/vuln/detail/CVE-2023-38686","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/matrix-org/sydent","label":"github.com/matrix-org/sydent","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/matrix-sydent/PYSEC-2023-139.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/matrix-sydent/PYSEC-2023-139.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://peps.python.org/pep-0476","label":"peps.python.org/pep-0476","hostname":"peps.python.org","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2023-38686","label":"ubuntu.com/security/CVE-2023-38686","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-38686","label":"www.cve.org/CVERecord?id=CVE-2023-38686","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-08-04T15:57:15.760Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-10-08T17:50:55.903Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 9.3 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)","nextStep":"Check applicability: affected before 2.5.6 (CNA); fix release not confirmed","rank":[0,0,0,0,0,93],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00265,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2024-10-08T17:50:55.903Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.3,"vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","version":"3.1","headline":true},{"type":"cvss","source":"osv_pypi","date":"2024-10-08T17:50:55.903Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2024-10-08T17:50:55.903Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-10-08T17:50:55.903Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2024-10-08T17:45:32.889Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00265,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T06:02:28.822Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T06:02:29.295Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T06:02:29.506Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T06:00:56.363Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T06:02:27.202Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T06:02:26.240Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T06:08:48.562Z","stale":false,"partial":false}}