CVE-2024-52602: Github.com/t2bot/matrix media repo Matrix Media Repo (MMR) Allows Vulnerability
MODERATECVE-2024-52602 is a MODERATE (CVSS 5.0) matrix media repo (mmr) allows vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Github.com/t2bot/matrix media repo libraries in the Go ecosystem. The issue involves matrix media repo (mmr) allows server-side request forgery (ssrf) on redirects and federation. Remediation is available by upgrading affected packages to version 1.3.8.
CVE-2024-52602 at a Glance
Security Impact
CVSS: 5.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N).
How to Fix CVE-2024-52602
To remediate this vulnerability, upgrade all affected Github.com/t2bot/matrix media repo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/t2bot/matrix-media-repo to 1.3.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/t2bot/matrix-media-repo
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-52602, inspect your project dependencies for Github.com/t2bot/matrix media repo:
inspect dependencies for github.com/t2bot/matrix-media-repo
Analyze the terminal output to locate any version of Github.com/t2bot/matrix media repo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.8), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Github.com/t2bot/matrix media repo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-52602 Affected Github.com/t2bot/matrix media repo Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/t2bot/matrix-media-repo
|
Go |
< 1.3.8
|
1.3.8
|
References
Frequently Asked Questions
What is CVE-2024-52602?
Which Github.com/t2bot/matrix media repo versions are affected?
What version fixes CVE-2024-52602?
Is github.com/t2bot/matrix-media-repo affected?
What is the CVSS score of CVE-2024-52602?
What CWE is associated with CVE-2024-52602?
How can I check Go dependencies for CVE-2024-52602?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r6jg-jfv6-2fjv",
"modified" : "2025-08-20T17:40:09Z",
"published" : "2025-01-16T19:35:02Z",
"aliases" : [ "CVE-2024-52602" ],
"summary" : "Matrix Media Repo (MMR) allows Server-Side Request Forgery (SSRF) on redirects and federation",
"details" : "### Impact\nMatrix Media Repo (MMR) is vulnerable to server-side request forgery, serving content from a private network it can access, under certain conditions.\n\n### Patches\nThis is fixed in [MMR v1.3.8](https://github.com/t2bot/matrix-media-repo/releases/tag/v1.3.8).\n\n### Workarounds\nRestricting which hosts MMR is allowed to contact via (local) firewall rules or a transparent proxy.\n\n### References\nhttps://owasp.org/www-community/attacks/Server_Side_Request_Forgery\nhttps://learn.snyk.io/lesson/ssrf-server-side-request-forgery/\nhttps://www.agwa.name/blog/post/preventing_server_side_request_forgery_in_golang",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/t2bot/matrix-media-repo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.3.7"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/t2bot/matrix-media-repo/security/advisories/GHSA-r6jg-jfv6-2fjv"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-52602"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/t2bot/matrix-media-repo"
}, {
"type" : "WEB",
"url" : "https://github.com/t2bot/matrix-media-repo/releases/tag/v1.3.8"
}, {
"type" : "WEB",
"url" : "https://learn.snyk.io/lesson/ssrf-server-side-request-forgery"
}, {
"type" : "WEB",
"url" : "https://owasp.org/www-community/attacks/Server_Side_Request_Forgery"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2025-3399"
}, {
"type" : "WEB",
"url" : "https://www.agwa.name/blog/post/preventing_server_side_request_forgery_in_golang"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-01-16T19:35:02Z",
"nvd_published_at" : "2025-01-16T20:15:32Z"
}
}