GitHub Advisoryadvisory · Go

GHSA-gp86-q8hg-fpxj matrix-media-repo (MMR) allows a denial of service through memory exhaustion

MEDIUM Published 2025-01-16 Modified 2025-08-20 Official page ↗
Aliases
CVE-2024-52791
Ecosystem
Go
Packages
github.com/t2bot/matrix-media-repo
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weaknesses
CWE-789
Reviewed
2025-01-16

Affected packages

• Go github.com/t2bot/matrix-media-repo: < 1.3.8 → fixed in 1.3.8

Description

Impact 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. Patches This is fixed in MMR v1.3.8. Workarounds 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.

Related

Alias · CVE (1)

  • CVE-2024-52791 Matrix Media Repo (MMR) is a highly configurable multi-homeserver media repository for Matrix. vulnerability

Weakness · CWE (1)

  • CWE-789 Memory Allocation with Excessive Size Value weakness

References