Vulnerabilities · 2021 · Matrix
CVE-2021-21392
Matrix Synapse vulnerability
Synapse is a Matrix reference homeserver written in python (pypi package matrix-synapse). Matrix is an ecosystem for open federated Instant Messaging and VoIP. In Synapse before version 1.28.0 requests to user provided domains were not restricted to external IP addresses when transitional IPv6 addresses were used. Outbound requests to federation, identity servers, when calculating the key validity for third-party invite events, sending push notifications, and generating URL previews are affected. This could cause Synapse to make requests to internal infrastructure on dual-stack networks. See referenced GitHub security advisory for details and workarounds.
Affected products
Synapse, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Matrix Synapse runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/matrix-org/synapse/pull/9240 · Patch
- github.com/matrix-org/synapse/security/advisories/GHSA-5wrh-4jwv-5w78 · Patch
- pypi.org/project/matrix-synapse/ · Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/T
- nvd.nist.gov/vuln/detail/CVE-2021-21392
- github.com/matrix-org/synapse/commit/4ca054a4eaa714d0befb4fc30b19a1131e52c9cc
- github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-25.yaml
- lists.fedoraproject.org/archives/list/[email protected]/message/TNN
- nvd.nist.gov/vuln/detail/CVE-2021-21392
- cve.org/CVERecord?id=CVE-2021-21392
More vulnerabilities in Matrix products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.