CVE-2023-38686
Sydent does not verify email server certificates
Also known as GHSA-p6hw-wm59-3g5g, PYSEC-2023-139
Mitigation
- Upgrade matrix-sydent to 2.5.6 or later.
Who should check
- Projects that depend on PyPI package matrix-sydent (< 2.5.6)
- Anyone running matrix-org sydent < 2.5.6
Vulnerability facts
- Affected
- matrix-sydent < 2.5.6
- Fixed in
- 2.5.6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 9.3 (v3.1, CNA)CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Adjacent network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.32% chance of exploitation in 30 days (percentile 17, 2026-11-26)
- CWE
- CWE-295
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI matrix-sydent | < 2.5.6 | 2.5.6 | osv |
| matrix-org sydent | < 2.5.6 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-38686. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-38686.md Affected: matrix-sydent < 2.5.6 Fixed in: 2.5.6 Steps: 1. Search this machine and project for matrix-sydent (PyPI), matrix-org sydent: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
- https://github.com/python/cpython/issues/91826
- https://docs.python.org/3/library/ssl.html?highlight=ssl#security-considerations
- https://github.com/matrix-org/sydent/releases/tag/v2.5.6
- https://peps.python.org/pep-0476/
- https://github.com/matrix-org/sydent
- https://github.com/pypa/advisory-database/tree/main/vulns/matrix-sydent/PYSEC-2023-139.yaml
- https://peps.python.org/pep-0476
FAQ
Is CVE-2023-38686 being exploited?
There is no confirmed exploitation: CVE-2023-38686 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-38686?
Critical: CVSS 9.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2023-38686?
matrix-sydent < 2.5.6.
Is there a fix for CVE-2023-38686?
Yes. Fixed in 2.5.6. Upgrade matrix-sydent to 2.5.6 or later.
How do I check if I'm affected by CVE-2023-38686?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.