Vulnerability · Published Jan 16, 2025 · Assigned by GitHub_M
CVE-2024-36402Unauthenticated writes to the media repository allow planting of problematic content in Matrix Media Repo
Medium 5.3
In plain English
A medium-severity improper authentication in matrix-media-repo from t2bot. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Matrix Media Repo (MMR) is a highly configurable multi-homeserver media repository for Matrix. MMR before version 1.3.5 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. MMR 1.3.5 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. Though extremely limited, server operators can use more strict rate limits based on IP address as a partial workaround.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/t2bot/matrix-media-repo | 1.3.5 | GO-2025-3397 |
| Go | github.com/t2bot/matrix-media-repo | 1.3.5 | GHSA-8vmr-h7h5-cqhg |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| t2bot | matrix-media-repo | < 1.3.5 |
Weakness: CWE-287 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/t2bot/matrix-media-repo/security/advisories/GHSA-8vmr-h7h5-cqhg x_refsource_CONFIRM
- https://github.com/matrix-org/matrix-spec-proposals/pull/3916 x_refsource_MISC