Skip to content

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

HighCVSS 7.5 EPSS 0.79%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
t2bot github.com/t2bot/matrix-media-repo < 1.3.8; = < 1.3.8 1.3.8 Fixed
t2bot github.com/t2bot/matrix-media-repo(Go) < 1.3.8; <= 1.3.7 1.3.8 Fixed

Affected products

ProductAffected versionsFixed in
t2bot github.com/t2bot/matrix-media-repo(Go) < 1.3.8 1.3.8
t2bot github.com/t2bot/matrix-media-repo(Go) <= 1.3.7 No fix listed
t2bot github.com/t2bot/matrix-media-repo = < 1.3.8 No fix listed
t2bot github.com/t2bot/matrix-media-repo < 1.3.8 1.3.8

References