{"answers":{"affected":"3 open source packages ship an affected version, including github.com/matrix-org/gomatrixserverlib.","exploited":"There is no known exploitation of CVE-2024-52594 in the wild and no public exploit code.","fix":"Upgrade github.com/matrix-org/gomatrixserverlib to 0.0.0-20250116181547-c4f1e01eab0d or later.","what":"CVE-2024-52594 is a medium-severity server-side request forgery vulnerability in matrix-org gomatrixserverlib, published on 16 Jan 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-52594 and fix it if it is affected.\n\nWhat it is: CVE-2024-52594 is a medium-severity server-side request forgery vulnerability in matrix-org gomatrixserverlib, published on 16 Jan 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-52594 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/matrix-org/gomatrixserverlib (Go): affected all versions; fixed in 0.0.0-20250116181547-c4f1e01eab0d\n- github.com/matrix-org/gomatrixserverlib (Go): affected all versions; fixed in 0.0.0-20250116181547-c4f1e01eab0d\n- github.com/matrix-org/gomatrixserverlib (Go): affected all versions; fixed in 0.0.0-20250116181547-c4f1e01eab0d\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-52594/ (Markdown: https://insights.sbomify.com/CVE-2024-52594/index.md)","id":"CVE-2024-52594","markdown":"https://insights.sbomify.com/CVE-2024-52594/index.md","name":"CVE-2024-52594","record":{"aliases":["GHSA-4ff6-858j-r822","GO-2025-3396"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Go matrix federation library","requires_auth":"low_privilege","summary":"An attacker can exploit Server-Side Request Forgery in gomatrixserverlib to access private network resources via redirects or federation.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Server-Side Request Forgery (SSRF) on redirects and federation in gomatrixserverlib","id":"CVE-2024-52594","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"ssrf","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"HTML Cleaner allows crafted scripts in special contexts like svg or math to pass through","id":"CVE-2024-52595"},"packages":[{"ecosystem":"Go","fixed":["0.0.0-20250116181547-c4f1e01eab0d"],"introduced":["0"],"last_affected":[],"package":"github.com/matrix-org/gomatrixserverlib","purl":null,"source":"GHSA-4ff6-858j-r822"},{"ecosystem":"Go","fixed":["0.0.0-20250116181547-c4f1e01eab0d"],"introduced":["0"],"last_affected":[],"package":"github.com/matrix-org/gomatrixserverlib","purl":"pkg:golang/github.com/matrix-org/gomatrixserverlib","source":"GHSA-4ff6-858j-r822"},{"ecosystem":"Go","fixed":["0.0.0-20250116181547-c4f1e01eab0d"],"introduced":["0"],"last_affected":[],"package":"github.com/matrix-org/gomatrixserverlib","purl":"pkg:golang/github.com/matrix-org/gomatrixserverlib","source":"GO-2025-3396"}],"prev":{"headline":"Missing validation allows spoofed \"origin\" links in Misskey","id":"CVE-2024-52593"},"products":["gomatrixserverlib"],"published":"2025-01-16","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-12","vendors":["matrix-org"]},"summary":"An attacker can exploit Server-Side Request Forgery in gomatrixserverlib to access private network resources via redirects or federation.","url":"https://insights.sbomify.com/CVE-2024-52594/"}