Advisory

PYSEC-2023-139

Also known as: CVE-2023-38686, GHSA-p6hw-wm59-3g5g

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2023-08-04 16:15 UTC
Modified
2023-11-08 04:13 UTC

Affected packages and fixes

matrix-sydent

PyPI · All systems

Affected

  • introduced 0, fixed 2.5.6 (ecosystem)

Fixed versions

2.5.6

Fix

  • Fixed version 2.5.6
    pip install --upgrade matrix-sydent==2.5.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences