Vulnerability · Published Jan 16, 2025 · Assigned by GitHub_M

CVE-2024-52791Denial of service through memory exhaustion in Matrix Media Repo

Medium 5.3

In plain English

A medium-severity security flaw in matrix-media-repo from t2bot. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

Matrix Media Repo (MMR) is a highly configurable multi-homeserver media repository for Matrix. MMR makes requests to other servers as part of normal operation, and these resource owners can return large amounts of JSON back to MMR for parsing. In parsing, MMR can consume large amounts of memory and exhaust available memory. This is fixed in MMR v1.3.8. Users are advised to upgrade. For users unable to upgrade; forward proxies can be configured to block requests to unsafe hosts. Alternatively, MMR processes can be configured with memory limits and auto-restart. Running multiple MMR processes concurrently can help ensure a restart does not overly impact users.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/t2bot/matrix-media-repo1.3.8GO-2025-3398
Gogithub.com/t2bot/matrix-media-repo1.3.8GHSA-gp86-q8hg-fpxj

Affected products (as reported)

VendorProductVersions
t2bot matrix-media-repo < 1.3.8

Weakness: CWE-789 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References