{"answers":{"affected":"3 open source packages ship an affected version, including github.com/t2bot/matrix-media-repo. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-36402 exists.","fix":"Upgrade github.com/t2bot/matrix-media-repo to 1.3.5 or later.","what":"CVE-2024-36402 is a medium-severity missing authorization vulnerability in t2bot matrix-media-repo, published on 16 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-36402 and fix it if it is affected.\n\nWhat it is: CVE-2024-36402 is a medium-severity missing authorization vulnerability in t2bot matrix-media-repo, published on 16 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-36402 exists.\n\nAffected packages and fixed versions:\n- github.com/t2bot/matrix-media-repo (Go): affected all versions; fixed in 1.3.5\n- github.com/t2bot/matrix-media-repo (Go): affected all versions; fixed in 1.3.5\n- github.com/t2bot/matrix-media-repo (Go): affected all versions; fixed in 1.3.5\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-36402/ (Markdown: https://insights.sbomify.com/CVE-2024-36402/index.md)","id":"CVE-2024-36402","markdown":"https://insights.sbomify.com/CVE-2024-36402/index.md","name":"CVE-2024-36402","record":{"aliases":["GHSA-8vmr-h7h5-cqhg","GO-2025-3397"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Matrix Media Repository","requires_auth":"none","summary":"Unauthenticated attackers can plant malicious content in the Matrix Media Repository by exploiting unauthenticated media download endpoints.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"matrix-media-repo","vendor":"t2bot"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"description":"Matrix Media Repo (MMR) is a highly configurable multi-homeserver media repository for Matrix. MMR 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. MMR 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. Though extremely limited, server operators can use more strict rate limits based on IP address as a partial workaround.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Unauthenticated writes to the media repository allow planting of problematic content in Matrix Media Repo","id":"CVE-2024-36402","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"missing_authorization","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"Denial of service/high operating costs through unauthenticated downloads in Matrix Media Repo","id":"CVE-2024-36403"},"packages":[{"ecosystem":"Go","fixed":["1.3.5"],"introduced":["0"],"last_affected":[],"package":"github.com/t2bot/matrix-media-repo","purl":null,"source":"GHSA-8vmr-h7h5-cqhg"},{"ecosystem":"Go","fixed":["1.3.5"],"introduced":["0"],"last_affected":[],"package":"github.com/t2bot/matrix-media-repo","purl":"pkg:golang/github.com/t2bot/matrix-media-repo","source":"GHSA-8vmr-h7h5-cqhg"},{"ecosystem":"Go","fixed":["1.3.5"],"introduced":["0"],"last_affected":[],"package":"github.com/t2bot/matrix-media-repo","purl":"pkg:golang/github.com/t2bot/matrix-media-repo","source":"GO-2025-3397"}],"prev":{"headline":"OSGeo GeoServer GeoTools Eval Injection","id":"CVE-2024-36401"},"products":["matrix-media-repo"],"published":"2025-01-16","related":[{"cvss_score":6.8,"headline":"Untrusted file formats can be thumbnailed, invoking potentially further untrusted decoders in Matrix Media Repo","id":"CVE-2024-56515","kev_date_added":null,"published":"2025-01-16"},{"cvss_score":5.3,"headline":"Denial of service/high operating costs through unauthenticated downloads in Matrix Media Repo","id":"CVE-2024-36403","kev_date_added":null,"published":"2025-01-16"},{"cvss_score":5.3,"headline":"Denial of service through memory exhaustion in Matrix Media Repo","id":"CVE-2024-52791","kev_date_added":null,"published":"2025-01-16"},{"cvss_score":5,"headline":"Server-Side Request Forgery (SSRF) on redirects and federation in Matrix Media Repo","id":"CVE-2024-52602","kev_date_added":null,"published":"2025-01-16"}],"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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-12","vendors":["t2bot"]},"summary":"Unauthenticated attackers can plant malicious content in the Matrix Media Repository by exploiting unauthenticated media download endpoints.","url":"https://insights.sbomify.com/CVE-2024-36402/"}