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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 57% of CVEs (2026-12-01)
- Published: 2025-01-16T19:07:43.000Z
- Modified: 2026-06-17T08:07:38.180Z
- Also known as: GHSA-gp86-q8hg-fpxj, GO-2025-3398
- Weaknesses: CWE-789
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- t2bot matrix-media-repo: < 1.3.8; before 1.3.8
- github.com/t2bot/matrix-media-repo (Go): before 1.3.8

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/t2bot/matrix-media-repo/security/advisories/GHSA-gp86-q8hg-fpxj> (advisory, vendor-advisory, web)
- <https://github.com/t2bot/matrix-media-repo/releases/tag/v1.3.8> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-52791> (advisory)
- <https://github.com/t2bot/matrix-media-repo> (package)
- <https://pkg.go.dev/vuln/GO-2025-3398> (web)

## Sources

- CVE List: [CVE-2024-52791](https://www.cve.org/CVERecord?id=CVE-2024-52791), CVE Terms of Use, modified 2025-02-12
- GitHub Advisory Database: [GHSA-gp86-q8hg-fpxj](https://github.com/advisories/GHSA-gp86-q8hg-fpxj), CC-BY-4.0, modified 2025-08-20
- Go Vulnerability Database: [GO-2025-3398](https://pkg.go.dev/vuln/GO-2025-3398), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-52791](https://nvd.nist.gov/vuln/detail/CVE-2024-52791), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-52791 · Whole record: https://cve.day/CVE-2024-52791.json · Rebuilt by cve.day 2026-11-25T22:58:51.093Z
