CVE-2023-38686Matrix Sydent
Medium 5.3 No auth needed
Follow: this CVE · Matrix · Matrix Sydent We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 0.3% probability of exploitation in 30 days · percentile 17
- Auth required
- No
- Published
- Aug 4, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-295
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Sydent.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | matrix-sydent |
< 2.5.6 |
2.5.6 |
pip install "matrix-sydent>=2.5.6" |
| PyPI | matrix-sydent |
< 2.5.6 |
2.5.6 |
pip install "matrix-sydent>=2.5.6" |
Per OSV / GitHub Advisories (GHSA-p6hw-wm59-3g5g, PYSEC-2023-139). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| matrix | sydent | < 2.5.6 |
Official sources
References
Links published by the sources. Open them with care.
- docs.python.org Technical Description
- github.com Patch
- github.com Issue Tracking Patch
- github.com Release Notes
- github.com Vendor Advisory
- github.com Issue Tracking
- peps.python.org Third Party Advisory