CVE-2023-38686 json
Sydent does not verify email server certificates
published 2023-07-31 3 y ago modified 2026-09-10 1 mo ago also GHSA-p6hw-wm59-3g5g , PYSEC-2023-139 , EUVD-2023-0132
- cvss
- 9.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 18%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi matrix-sydent 2.5.6
- matrix sydent 2.5.6
- github.com/matrix-org/sydent@1cd7483 commit
- github.com/matrix-org/sydent#574 pull request
- github.com/matrix-org/sydent/releases/tag/v2.5.6 release
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.27% chance of exploitation in the next 30 days, higher than 18% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.3 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | 3.1 | 5.3 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 9.3 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | matrix-sydent | <2.5.6 |
2.5.6 |
Affected products
- matrix-org sydent
- matrix sydent
Classification
- Weakness
-
- CWE-295 Improper Certificate Validation
References
-
github.com
/matrix-org/sydent/pull/574
web, issue-tracking, patch
-
github.com
/matrix-org/sydent/commit/1cd748307c6b168b66154e6c4db715d4b9551261
web, patch
-
github.com
/matrix-org/sydent/security/advisories/GHSA-p6hw-wm59-3g5g
web, vendor-advisory, advisory
-
github.com
/python/cpython/issues/91826
web, issue-tracking, report
-
docs.python.org
/3/library/ssl.html?highlight=ssl#security-considerations
web, technical-description
-
github.com
/matrix-org/sydent/releases/tag/v2.5.6
web, release-notes
-
peps.python.org
/pep-0476/
third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2023-38686
advisory
-
github.com
/matrix-org/sydent
package
-
github.com
/pypa/advisory-database/tree/main/vulns/matrix-sydent/PYSEC-2023-139.yaml
web
-
peps.python.org
/pep-0476
web
Sources
- CVE List CVE-2023-38686
- GitHub Advisory GHSA-p6hw-wm59-3g5g
- NVD CVE-2023-38686
- OSV PYSEC-2023-139
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.