CVE-2024-52791: matrix-media-repo (MMR) allows a denial of service through memory exhaustion
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.
Published Jan 16, 2025 · Updated Aug 20, 2025
Affected packages
github.com/t2bot/matrix-media-repo
- Ecosystem
- Go
- Affected
- <= 1.3.7
- Fixed in
- 1.3.8
- Check
go list -m github.com/t2bot/matrix-media-repo
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2024-36402
matrix-media-repo (MMR) allows unauthenticated writes to the media repository, which may allow planting of problematic content
medium5.3Jan 16, 2025CVE-2024-36403
matrix-media-repo (MMR) allows denial of service/high operating costs through unauthenticated downloads
medium5.3Jan 16, 2025CVE-2024-52602
Matrix Media Repo (MMR) allows Server-Side Request Forgery (SSRF) on redirects and federation
medium5.0Jan 16, 2025CVE-2024-56515
Matrix Media Repo (MMR) allows untrusted file formats can be thumbnailed, invoking potentially further untrusted decoders
medium6.8Jan 16, 2025
