Vulnerability · Published Dec 9, 2020 · Assigned by GitHub_M

CVE-2020-26257Denial of service attack via incorrect parameters to federation APIs

Medium 6.5

In plain English

A medium-severity uncontrolled resource consumption in synapse from matrix-org. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.4% (higher than 84% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)2.4%top 16.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

Matrix is an ecosystem for open federated Instant Messaging and VoIP. Synapse is a reference "homeserver" implementation of Matrix. A malicious or poorly-implemented homeserver can inject malformed events into a room by specifying a different room id in the path of a `/send_join`, `/send_leave`, `/invite` or `/exchange_third_party_invite` request. This can lead to a denial of service in which future events will not be correctly sent to other servers over federation. This affects any server which accepts federation requests from untrusted servers. The Matrix Synapse reference implementation before version 1.23.1 the implementation is vulnerable to this injection attack. Issue is fixed in version 1.23.1. As a workaround homeserver administrators could limit access to the federation API to trusted servers (for example via `federation_domain_whitelist`).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20synapse1.24.0-r0ALPINE-CVE-2020-26257
Alpine:v3.21synapse1.24.0-r0ALPINE-CVE-2020-26257
Alpine:v3.22synapse1.24.0-r0ALPINE-CVE-2020-26257
Alpine:v3.23synapse1.24.0-r0ALPINE-CVE-2020-26257
Alpine:v3.24synapse1.24.0-r0ALPINE-CVE-2020-26257
Debian:14matrix-synapse1.24.0-1DEBIAN-CVE-2020-26257
PyPImatrix-synapse1.23.1GHSA-hxmp-pqch-c8mm
PyPImatrix-synapse1.23.1PYSEC-2020-236

Affected products (as reported)

VendorProductVersions
matrix-org synapse < 1.23.1

Weakness: CWE-400, CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References