Vulnerabilities in pkg:golang/github.com/t2bot/matrix-media-repo
PACKAGECVE-2024-36402 is a MODERATE (CVSS 5.3) matrix-media-repo (mmr) allows unauthenticated writes vulnerability (CWE-287: Improper Authentication) affecting Github.com/t2bot/matrix media repo libraries in the Go ecosystem. The issue involves matrix-media-repo (mmr) allows unauthenticated writes to the media repository, which may allow planting of problematic content. Remediation is available by upgrading affected packages to version 1.3.5.
pkg:golang/github.com/t2bot/matrix-media-repo
Vulnerability advisories affecting package pkg:golang/github.com/t2bot/matrix-media-repo. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8vmr-h7h5-cqhg | CVE-2024-36402 | MODERATE | matrix-media-repo (MMR) allows unauthenticated writes to the media repository, which may allow planting of problematic content |
| GHSA-rcxc-wjgw-579r | CVE-2024-56515 | MODERATE | Matrix Media Repo (MMR) allows untrusted file formats can be thumbnailed, invoking potentially further untrusted decoders |
| GHSA-gp86-q8hg-fpxj | CVE-2024-52791 | MODERATE | matrix-media-repo (MMR) allows a denial of service through memory exhaustion |
| GHSA-r6jg-jfv6-2fjv | CVE-2024-52602 | MODERATE | Matrix Media Repo (MMR) allows Server-Side Request Forgery (SSRF) on redirects and federation |
| GHSA-vc2m-hw89-qjxf | CVE-2024-36403 | MODERATE | matrix-media-repo (MMR) allows denial of service/high operating costs through unauthenticated downloads |
CVE-2024-36402 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2024-36402
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.5
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-36402, 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.5), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. 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-36402 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.5
|
1.3.5
|
References
Frequently Asked Questions
What is CVE-2024-36402?
Which Github.com/t2bot/matrix media repo versions are affected?
What version fixes CVE-2024-36402?
Is github.com/t2bot/matrix-media-repo affected?
What is the CVSS score of CVE-2024-36402?
What CWE is associated with CVE-2024-36402?
How can I check Go dependencies for CVE-2024-36402?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8vmr-h7h5-cqhg",
"modified" : "2025-08-20T19:13:42Z",
"published" : "2025-01-16T19:05:01Z",
"aliases" : [ "CVE-2024-36402" ],
"summary" : "matrix-media-repo (MMR) allows unauthenticated writes to the media repository, which may allow planting of problematic content",
"details" : "### Impact\n\nMMR before version 1.3.5 allows, by design, unauthenticated remote participants to trigger a download and caching of remote media from a remote homeserver to the local media repository. Such content then also becomes available for download from the local homeserver in an unauthenticated way. The implication is that unauthenticated remote adversaries can use this functionality to plant problematic content into the media repository.\n\n### Patches\n\nMMR 1.3.5 introduces a partial mitigation in the form of new endpoints which require authentication for media downloads. The unauthenticated endpoints will be frozen in a future release, closing the attack vector.\n\n### Workarounds\n\nThough extremely limited, server operators can use more strict rate limits based on IP address.\n\n### References\n\nhttps://github.com/matrix-org/matrix-spec-proposals/pull/3916",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/t2bot/matrix-media-repo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/t2bot/matrix-media-repo/security/advisories/GHSA-8vmr-h7h5-cqhg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-36402"
}, {
"type" : "WEB",
"url" : "https://github.com/matrix-org/matrix-spec-proposals/pull/3916"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/t2bot/matrix-media-repo"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2025-3397"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-01-16T19:05:01Z",
"nvd_published_at" : "2025-01-16T20:15:32Z"
}
}