Vulnerability · Published Dec 3, 2024 · Assigned by GitHub_M
CVE-2024-37303Synapse unauthenticated writes to the media repository allow planting of problematic content
Medium 5.3
In plain English
A medium-severity missing authentication in synapse from element-hq. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Synapse is an open-source Matrix homeserver. Synapse before version 1.106 allows, by design, unauthenticated remote participants to trigger a download and caching of remote media from a remote homeserver to the local media repository. Such content then also becomes available for download from the local homeserver in an unauthenticated way. The implication is that unauthenticated remote adversaries can use this functionality to plant problematic content into the media repository. Synapse 1.106 introduces a partial mitigation in the form of new endpoints which require authentication for media downloads. The unauthenticated endpoints will be frozen in a future release, closing the attack vector.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | synapse | 1.110.0-r0 | ALPINE-CVE-2024-37303 |
| Alpine:v3.21 | synapse | 1.110.0-r0 | ALPINE-CVE-2024-37303 |
| Alpine:v3.22 | synapse | 1.110.0-r0 | ALPINE-CVE-2024-37303 |
| Alpine:v3.23 | synapse | 1.110.0-r0 | ALPINE-CVE-2024-37303 |
| Alpine:v3.24 | synapse | 1.110.0-r0 | ALPINE-CVE-2024-37303 |
| Debian:14 | matrix-synapse | 1.116.0-1 | DEBIAN-CVE-2024-37303 |
| PyPI | matrix-synapse | 1.106 | GHSA-gjgr-7834-rhxr |
| PyPI | matrix-synapse | 1.106.0 | PYSEC-2024-287 |
| Ubuntu:24.04:LTS | matrix-synapse | no fix listed | UBUNTU-CVE-2024-37303 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| element-hq | synapse | < 1.106 |
Weakness: CWE-306 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
References
- https://github.com/element-hq/synapse/security/advisories/GHSA-gjgr-7834-rhxr x_refsource_CONFIRM
- https://github.com/matrix-org/matrix-spec-proposals/pull/3916 x_refsource_MISC