CVE-2024-52791
T2bot Matrix-media-repo vulnerability
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
Matrix-media-repo. The exact versions are in the references.
What to do now
- Check your exposureFind out whether T2bot Matrix-media-repo runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/t2bot/matrix-media-repo/security/advisories/GHSA-gp86-q8hg-fpxj · Vendor Advisory
- github.com/t2bot/matrix-media-repo/releases/tag/v1.3.8
- nvd.nist.gov/vuln/detail/CVE-2024-52791
- pkg.go.dev/vuln/GO-2025-3398
- github.com/advisories/GHSA-gp86-q8hg-fpxj
- nvd.nist.gov/vuln/detail/CVE-2024-52791
- cve.org/CVERecord?id=CVE-2024-52791
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.