Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. matrix-sydent
  4. ›
  5. CVE-2023-38686

CVE-2023-38686: Improper Certificate Validation

July 31, 2023 (updated August 17, 2023)

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.

References

  • docs.python.org/3/library/ssl.html?highlight=ssl
  • github.com/advisories/GHSA-p6hw-wm59-3g5g
  • github.com/matrix-org/sydent/commit/1cd748307c6b168b66154e6c4db715d4b9551261
  • github.com/matrix-org/sydent/pull/574
  • github.com/matrix-org/sydent/releases/tag/v2.5.6
  • github.com/matrix-org/sydent/security/advisories/GHSA-p6hw-wm59-3g5g
  • github.com/pypa/advisory-database/tree/main/vulns/matrix-sydent/PYSEC-2023-139.yaml
  • github.com/python/cpython/issues/91826
  • nvd.nist.gov/vuln/detail/CVE-2023-38686
  • peps.python.org/pep-0476/

Code Behaviors & Features

Detect and mitigate CVE-2023-38686 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.5.6

Fixed versions

  • 2.5.6

Solution

Upgrade to version 2.5.6 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-295: Improper Certificate Validation

Source file

pypi/matrix-sydent/CVE-2023-38686.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:00 +0000.