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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/t2bot/matrix-media-repo | 1.3.8 | GO-2025-3398 |
| Go | github.com/t2bot/matrix-media-repo | 1.3.8 | GHSA-gp86-q8hg-fpxj |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/t2bot/matrix-media-repo/security/advisories/GHSA-gp86-q8hg-fpxj x_refsource_CONFIRM
- https://github.com/t2bot/matrix-media-repo/releases/tag/v1.3.8 x_refsource_MISC