CVE-2021-21392
JSON

6.3medium

Open redirect via transitional IPv6 addresses on dual-stack networks

Severity
6.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.94% (higher than 62% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-5wrh-4jwv-5w78PYSEC-2021-25

Description

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

Product or packageVersionsReported by
matrix-org synapse< 1.28.0CVE List
matrix-synapse (PyPI)before 1.28.0rc1, before 1.28.0GitHub Advisory Database, PyPA Advisory Database
matrix synapsebefore 1.28.0NVD
fedoraproject fedora34NVD

All scores

GitHub_M6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N
GitHub6.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N
NVD6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N
NVD4.9medium CVSS:2.0AV:N/AC:M/Au:S/C:P/I:P/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Patches

This issue is fixed by #9240.

Workarounds

Outbound requests to the following address ranges can be blocked by a firewall, if unused for internal communication between systems:

  • ::ffff/80
  • ::0000/80 (note that this IP range is considered deprecated by the IETF)
  • 2002::/16 (note that this IP range is considered deprecated by the IETF)
References
NVD (es)

Synapse es un servidor doméstico de referencia de Matrix escrito en python (paquete pypi matrix-synapse).&#xa0;Matrix es un ecosistema para VoIP y mensajería instantánea federada abierta.&#xa0;En Synapse, versiones anteriores a 1.28.0, las peticiones a los dominios proporcionados por el usuario no estaban restringidas a direcciones IP externas cuando se usaban direcciones IPv6 de transición.&#xa0;Las peticiones salientes a la federación, los servidores de identidad, al calcular la validez de la clave para eventos de invitación de terceros, el envío de notificaciones push y la generación de vistas previas de URL están afectadas.&#xa0;Esto podría causar que Synapse realice peticiones a la infraestructura interna en redes de doble pila.&#xa0;Consulte el aviso de seguridad de GitHub al que se hace referencia para obtener detalles y soluciones

References

https://pypi.org/project/matrix-synapse/package, product, third-party-advisory
https://github.com/matrix-org/synapse/security/advisories/GHSA-5wrh-4jwv-5w78advisory, patch, third-party-advisory, web
https://github.com/matrix-org/synapse/pull/9240patch, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY/vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2021-21392advisory
https://github.com/matrix-org/synapse/commit/4ca054a4eaa714d0befb4fc30b19a1131e52c9ccweb
https://github.com/matrix-org/synapsepackage
https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-25.yamlweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEYweb
https://pypi.org/project/matrix-synapseweb

Sources

SourceRecordLicence
CVE ListCVE-2021-21392 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-5wrh-4jwv-5w78 changed 2026-07-08CC-BY-4.0
NVDCVE-2021-21392 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-25 changed 2023-11-08CC-BY-4.0