CVE-2024-52594 is a medium-severity (CVSS 4.3) Server-Side Request Forgery (SSRF) vulnerability in github.com/matrix-org/gomatrixserverlib. A fix is available for github.com/matrix-org/gomatrixserverlib — see the affected versions and patch details below.
Server-Side Request Forgery (SSRF) on redirects and federation in gomatrixserverlib
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-52594.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
github.com/matrix-org/gomatrixserverlibReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/matrix-org/gomatrixserverlib | all versions | 0.0.0-20250116181547-c4f1e01eab0dgo get github.com/matrix-org/gomatrixserverlib@v0.0.0-20250116181547-c4f1e01eab0d |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/matrix-org/gomatrixserverlib, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/matrix-org/gomatrixserverlib to 0.0.0-20250116181547-c4f1e01eab0d or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-52594 is resolved across your whole dependency graph.
Workarounds
Restrict outbound requests from the affected component to an allowlist of hosts, block access to link-local and internal address ranges at the network layer, and require authentication on internal services so a forged request cannot reach them unauthenticated.
Frequently Asked Questions
Is CVE-2024-52594 in your dependencies?
Find it across Go, including transitive dependencies.