CVE-2023-38686 Sydent does not verify email server certificates
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- Ubuntu
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.
Upgrade path
5 packages: 2 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/matrix-sydent(Ubuntu 22.04) | = 2.5.1-1; All versions | No fix listed | No fix yet |
| ubuntu/matrix-sydent(Ubuntu 24.04) | = 2.5.1-1.1; = 2.5.1-1.1ubuntu0.1; All versions | No fix listed | No fix yet |
| matrix sydent | < 2.5.6 | 2.5.6 | Fixed |
| pypi matrix-sydent(PyPI) | < 2.5.6; = 2.0.0; = 2.0.1; = 2.1.0 +15 more | 2.5.6 | Fixed |
| matrix-org sydent | = < 2.5.6 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi matrix-sydent(PyPI) | < 2.5.6 | 2.5.6 |
| pypi matrix-sydent(PyPI) | = 2.0.0 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.0.1 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.1.0 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.2.0 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.3.0 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.4.0 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.4.1 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.4.2 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.4.3 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.4.4 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.4.5 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.4.6 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.5.0 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.5.1 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.5.2 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.5.3 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.5.4 | No fix listed |
| pypi matrix-sydent(PyPI) | = 2.5.5 | No fix listed |
| matrix-org sydent | = < 2.5.6 | No fix listed |
| matrix sydent | < 2.5.6 | 2.5.6 |
| ubuntu/matrix-sydent(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/matrix-sydent(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/matrix-sydent(Ubuntu:22.04) | = 2.5.1-1 | No fix listed |
| ubuntu/matrix-sydent(Ubuntu:24.04) | = 2.5.1-1.1 | No fix listed |
Show 1 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/matrix-sydent(Ubuntu:24.04) | = 2.5.1-1.1ubuntu0.1 | No fix listed |
References
- https://github.com/matrix-org/sydent/security/advisories/GHSA-p6hw-wm59-3g5g issue-tracking vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/python/cpython/issues/91826 issue-tracking
- https://github.com/matrix-org/sydent/pull/574 issue-tracking patch
- https://github.com/matrix-org/sydent/commit/1cd748307c6b168b66154e6c4db715d4b9551261 issue-tracking patch
- https://docs.python.org/3/library/ssl.html?highlight=ssl#security-considerations issue-tracking technical-description
- github.com product
- https://github.com/matrix-org/sydent/releases/tag/v2.5.6 issue-tracking release-notes
- github.com
- https://peps.python.org/pep-0476/ issue-tracking third-party-advisory
- github.com
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking