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

Published Dec 9, 2020
·
Updated

Impact

A malicious or poorly-implemented homeserver can inject malformed events into a room by specifying a different room id in the path of a /sendjoin, /sendleave, /invite or /exchangethirdpartyinvite 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.

Patches

Issue is resolved by https://github.com/matrix-org/synapse/pull/8776.

Workarounds

Homeserver administrators could limit access to the federation API to trusted servers (for example via federationdomainwhitelist).

Other sources

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 /sendjoin, /sendleave, /invite or /exchangethirdpartyinvite 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 federationdomainwhitelist).

Affected Software

16 affected componentsFixes available
pip/matrix-synapse<1.23.1
1.23.1
matrix synapse<1.23.1
Fedoraproject Fedora=32
Fedoraproject Fedora=33
alpine/synapse<1.24.0-r0
1.24.0-r0
alpine/synapse<1.24.0-r0
1.24.0-r0
alpine/synapse<1.24.0-r0
1.24.0-r0
alpine/synapse<1.24.0-r0
1.24.0-r0
alpine/synapse<1.24.0-r0
1.24.0-r0
alpine/synapse<1.24.0-r0
1.24.0-r0
alpine/synapse<1.24.0-r0
1.24.0-r0
alpine/synapse<1.24.0-r0
1.24.0-r0
alpine/synapse<1.24.0-r0
1.24.0-r0
alpine/synapse<1.24.0-r0
1.24.0-r0
alpine/synapse<1.24.0-r0
1.24.0-r0
alpine/synapse<1.24.0-r0
1.24.0-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/matrix-synapse to a version that resolves this vulnerability.

    Fixed in 1.23.1
  2. Upgrade

    Upgrade alpine/synapse to a version that resolves this vulnerability.

    Fixed in 1.24.0-r0
  3. Upgrade

    Upgrade Matrix Synapse to a version that resolves this vulnerability.

    Fixed in 1.23.1
  4. Configuration

    Limit access to the federation API to trusted servers using federation_domain_whitelist.

    Synapse federation API federation_domain_whitelist = trusted servers

Event History

Dec 9, 2020
Advisory Published
via GitHub·06:21 PM
CVE Published
via MITRE·06:25 PM
Data Sourced
via MITRE·06:25 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·07:15 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2020-26257?

CVE-2020-26257 has a severity rating that can lead to Denial of Service attacks.

2

How do I fix CVE-2020-26257?

To fix CVE-2020-26257, update your Matrix Synapse to version 1.23.1 or later.

3

What software is affected by CVE-2020-26257?

CVE-2020-26257 affects Matrix Synapse versions prior to 1.23.1, as well as Fedora 32 and 33.

4

What causes CVE-2020-26257?

CVE-2020-26257 is caused by a malicious or poorly-implemented homeserver injecting malformed events by specifying a different room ID.

5

Can CVE-2020-26257 lead to data breaches?

CVE-2020-26257 primarily leads to denial of service rather than direct data breaches.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203