CVE-2024-52805: Synapse allows unsupported content types to lead to memory exhaustion
8.2
CVSS Score
4.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.30308%
CWE
Published
12/3/2024
Updated
12/3/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| matrix-synapse | pip | < 1.120.1 | 1.120.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of multipart/form-data requests. Synapse's media upload endpoint (MediaRepositoryResource) likely processes these requests using Twisted's HTTP stack. The high-confidence entry points to Synapse's own media handling code where Content-Type validation was missing before processing. The medium-confidence Twisted function shows the underlying framework behavior that exacerbates the issue when unsupported content types are allowed. The CWE-770 alignment and references to Twisted's multipart processing issues (#4688) support this analysis.