CVE-2024-52602: Matrix Media Repo (MMR) allows Server-Side Request Forgery (SSRF) on redirects and federation
Impact Matrix Media Repo (MMR) is vulnerable to server-side request forgery, serving content from a private network it can access, under certain conditions. Patches This is fixed in MMR v1.3.8. Workarounds Restricting which hosts MMR is allowed to contact via (local) firewall rules or a transparent proxy.
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
Matrix Media Repo (MMR) is vulnerable to server-side request forgery, serving content from a private network it can access, under certain conditions.
Patches
This is fixed in MMR v1.3.8.
Workarounds
Restricting which hosts MMR is allowed to contact via (local) firewall rules or a transparent proxy.
References
https://owasp.org/www-community/attacks/Server_Side_Request_Forgery https://learn.snyk.io/lesson/ssrf-server-side-request-forgery/ https://www.agwa.name/blog/post/preventing_server_side_request_forgery_in_golang
Credited to S7evinK.
References
- https://github.com/t2bot/matrix-media-repo/security/advisories/GHSA-r6jg-jfv6-2fjv
- https://github.com/t2bot/matrix-media-repo/releases/tag/v1.3.8
- https://nvd.nist.gov/vuln/detail/CVE-2024-52602
- https://learn.snyk.io/lesson/ssrf-server-side-request-forgery
- https://owasp.org/www-community/attacks/Server_Side_Request_Forgery
- https://www.agwa.name/blog/post/preventing_server_side_request_forgery_in_golang
- https://pkg.go.dev/vuln/GO-2025-3399
- https://github.com/advisories/GHSA-r6jg-jfv6-2fjv
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-52791
matrix-media-repo (MMR) allows a denial of service through memory exhaustion
medium5.3Jan 16, 2025CVE-2024-56515
Matrix Media Repo (MMR) allows untrusted file formats can be thumbnailed, invoking potentially further untrusted decoders
medium6.8Jan 16, 2025
