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 package | Versions | Reported by |
|---|---|---|
| matrix-org synapse | < 1.28.0 | CVE List |
| matrix-synapse (PyPI) | before 1.28.0rc1, before 1.28.0 | GitHub Advisory Database, PyPA Advisory Database |
| matrix synapse | before 1.28.0 | NVD |
| fedoraproject fedora | 34 | NVD |
All scores
| GitHub_M | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N |
| GitHub | 6.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N |
| NVD | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N |
| NVD | 4.9medium CVSS:2.0 | AV: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). Matrix es un ecosistema para VoIP y mensajería instantánea federada abierta. 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. 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. Esto podría causar que Synapse realice peticiones a la infraestructura interna en redes de doble pila. Consulte el aviso de seguridad de GitHub al que se hace referencia para obtener detalles y soluciones
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21392 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5wrh-4jwv-5w78 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-21392 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-25 changed 2023-11-08 | CC-BY-4.0 |