CVE-2024-52815
NoneSynapse allows a a malformed invite to break the invitee's `/sync`
CVSS
—
EPSS
0.6%
Published
Dec 3, 2024
CISA due date
—
Cloudanix analysis
A flaw in the chat server lets another server send bad data that stops users from getting their messages and updates until the server is fixed.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper validation of federation invites allows a malicious remote server to submit a crafted invite event that corrupts the invited user's /sync response stream.
Why it matters to the business
Disrupted user synchronization can prevent Matrix clients from receiving messages or state updates, causing operational outages for homeserver users and increasing support load until the server is updated.
How an attack unfolds
An attacker running a malicious Matrix server fabricates an invite event containing malformed data, sends it over federation to the target Synapse instance, and the receiving server stores the invite without validation, causing subsequent /sync requests for the invited user to fail or return errors.
How to fix it
Upgrade element-hq/synapse to a build containing commit fe3d88b833f76742874642c119b14b788341c905 (version 1.120.1 or later). Restart the server after the upgrade and verify federation invite processing resumes normally.
How to confirm the fix worked
Confirm the running binary or container image contains the fixed commit hash, then send a test federation invite from a controlled server and verify the invited user's /sync completes without error.
Typical attack path
- Deploy or control a Matrix homeserver that participates in federation
- Craft an invite event with invalid or malicious content targeting a user on the victim server
- Transmit the invite over the federation protocol
- Trigger or wait for the victim user to perform a /sync that processes the stored invite
How to detect it
Review Synapse federation and sync logs for repeated errors or malformed invite events originating from remote servers; correlate with user reports of /sync failures.
What your security team should do
- Immediately schedule upgrade of all Synapse instances to 1.120.1 or newer
- Monitor federation logs for unusual invite volumes during the rollout window
- Test invite and sync functionality in a staging environment before production deployment
The record
Synapse versions before 1.120.1 fail to properly validate invites received over federation. This vulnerability allows a malicious server to send a specially crafted invite that disrupts the invited user's `/sync` functionality.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| PyPI | matrix-synapse | 0 | 1.120.1 |
| Debian:13 | matrix-synapse | 0 | 1.121.0-1 |
| Ubuntu:20.04:LTS | matrix-synapse | 0 | No fix |
| Ubuntu:22.04:LTS | matrix-synapse | 0 | No fix |
| Ubuntu:24.04:LTS | matrix-synapse | 0 | No fix |
| Ubuntu:24.10 | matrix-synapse | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | matrix-synapse | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | matrix-synapse | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | matrix-synapse | 0 | No fix |
| openSUSE:Tumbleweed | matrix-synapse | 0 | 1.120.2-1.1 |
Related vulnerabilities
- CVE-2024-53867 Synapse is an open-source Matrix homeserver. Also affects matrix-synapse
- CVE-2024-37302 Synapse denial of service through media disk space consumption Also affects matrix-synapse
- CVE-2024-37303 Synapse's unauthenticated writes to the media repository allow planting of problematic… Also affects matrix-synapse
- CVE-2024-53863 Synapse can be forced to thumbnail unexpected file formats, invoking external… Also affects matrix-synapse
- CVE-2024-52805 Synapse allows unsupported content types to lead to memory exhaustion Also affects matrix-synapse
- CVE-2026-45078 Synapse is an open source Matrix homeserver implementation. Also affects matrix-synapse
- CVE-2026-45076 Synapse is an open source Matrix homeserver implementation. Also affects matrix-synapse
- CVE-2026-24044 Element Server Suite Community Edition (ESS Community) deploys a Matrix stack using the… Also affects matrix-synapse