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.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.6%top 52.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogithub.com/t2bot/matrix-media-repo1.3.5GO-2025-3397
Gogithub.com/t2bot/matrix-media-repo1.3.5GHSA-8vmr-h7h5-cqhg

Affected products (as reported)

VendorProductVersions
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