Home / matrix-org / sydent / CVE-2023-38686
CVE-2023-38686: is it exploited, and which versions of matrix-org sydent are affected and fixed?
CVE-2023-38686 is an improper certificate validation vulnerability in matrix-org sydent. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: matrix-sydent before 2.5.6 (GitHub advisory GHSA-p6hw-wm59-3g5g). Fixed in 2.5.6 (GitHub advisory GHSA-p6hw-wm59-3g5g). Severity: Critical (9.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:37 UTC.
What is CVE-2023-38686?
Sydent does not verify email server certificates
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.
From the CVE record by GitHub_M, last updated October 8, 2024, 17:50 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| matrix-org | sydent | < 2.5.6 |
As the CVE record by GitHub_M states it, last updated October 8, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | matrix-sydent | < 2.5.6 | 2.5.6 | GHSA-p6hw-wm59-3g5g |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 4, 2023. Summary: Sydent does not verify email server certificates.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| matrix | sydent | before 2.5.6 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:10 UTC.
How severe is CVE-2023-38686?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.3 | CVSS 3.1 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N | GitHub_M |
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-38686 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, October 8, 2024)
- EPSS
- 0.27% probability of exploitation activity in the next 30 days, percentile 19.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-295 Improper Certificate Validation
Where are the vendor advisories and references?
- https://github.com/matrix-org/sydent/security/advisories/GHSA-p6hw-wm59-3g5g x_refsource_CONFIRM
- https://github.com/python/cpython/issues/91826 x_refsource_MISC
- https://github.com/matrix-org/sydent/pull/574 x_refsource_MISC
- https://github.com/matrix-org/sydent/commit/1cd748307c6b168b66154e6c4db715d4b9551261 x_refsource_MISC
- https://docs.python.org/3/library/ssl.html?highlight=ssl#security-considerations x_refsource_MISC
- https://github.com/matrix-org/sydent/releases/tag/v2.5.6 x_refsource_MISC
- https://peps.python.org/pep-0476/ x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- July 24, 2023
- Published
- August 4, 2023, 15:57 UTC
- CVE record updated
- October 8, 2024, 17:50 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 06:10 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:37 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect sydent?
- Apr 15, 2021CVE-2021-29431 matrix-org sydent: improper input validation
- Apr 15, 2021CVE-2021-29432 matrix-org sydent: improper input validation
- Apr 15, 2021CVE-2021-29430 matrix-org sydent: improper input validation
- Apr 15, 2021CVE-2021-29433 matrix-org sydent: improper input validation
Questions about CVE-2023-38686
Is CVE-2023-38686 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.27% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of matrix-org sydent are affected by CVE-2023-38686?
matrix-sydent before 2.5.6, per the GitHub advisory GHSA-p6hw-wm59-3g5g. The tables above give every range the sources list.
Which version fixes CVE-2023-38686?
2.5.6, per the GitHub advisory GHSA-p6hw-wm59-3g5g. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-38686?
Critical (9.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-38686?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.