Skip to content
OpenAdvisories
Medium · 5.3 CVE-2024-52791 EUVD-2025-0098GHSA-gp86-q8hg-fpxjGO-2025-3398

Denial of service through memory exhaustion in Matrix Media Repo

Published Jan 16, 2025 · Updated Feb 12, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
t2bot matrix-media-repo < 1.3.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES 15 SP6 govulncheck-vulndb 0.0.20250128T150132-150000.1.29.1 SUSE-SU-2025:0297-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250117T214834-1.1 openSUSE-SU-2025:14704-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20250128T150132-150000.1.29.1 SUSE-SU-2025:0297-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/t2bot/matrix-media-repo < 1.3.8 1.3.8 GHSA-gp86-q8hg-fpxj

Advisories 2

References