CVE-2024-52594
JSON

4.3medium

Server-Side Request Forgery (SSRF) on redirects and federation in gomatrixserverlib

Severity
4.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.35% (higher than 31% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-4ff6-858j-r822GO-2025-3396

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

Product or packageVersionsReported by
matrix-org gomatrixserverlib< c4f1e01eab0dd435709ad15463ed38a079ad6128CVE List
github.com/matrix-org/gomatrixserverlib (Go)before 0.0.0-20250116181547-c4f1e01eab0dGitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
GitHub4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-918

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

Gomatrixserverlib is vulnerable to server-side request forgery, serving content from a private network it can access, under certain conditions.

Patches

c4f1e01eab0dd435709ad15463ed38a079ad6128 fixes this issue.

Workarounds

Use a local firewall to limit the network segments and hosts the service using gomatrixserverlib can access.

References

N/A

Go Vulnerability Database

Server-Side Request Forgery (SSRF) on redirects and federation in github.com/matrix-org/gomatrixserverlib

NVD (es)

Gomatrixserverlib es una librería Go para la federación de matrices. Gomatrixserverlib es vulnerable a server-side request forgery, ya que ofrece contenido desde una red privada a la que puede acceder, bajo ciertas condiciones. La confirmación `c4f1e01` soluciona este problema. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar deben usar un firewall local para limitar los segmentos de red y los hosts a los que puede acceder el servicio que usa gomatrixserverlib.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-52594 changed 2025-02-12CVE Terms of Use
GitHub Advisory DatabaseGHSA-4ff6-858j-r822 changed 2025-01-17CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3396 changed 2025-01-16CC-BY-4.0
NVDCVE-2024-52594 changed 2026-06-17Public domain