{"answers":{"affected":"3 open source packages ship an affected version, including github.com/t2bot/matrix-media-repo. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-36403 in the wild and no public exploit code.","fix":"Upgrade github.com/t2bot/matrix-media-repo to 1.3.5 or later.","what":"CVE-2024-36403 is a medium-severity denial of service 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-36403 and fix it if it is affected.\n\nWhat it is: CVE-2024-36403 is a medium-severity denial of service 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: There is no known exploitation of CVE-2024-36403 in the wild and no public exploit code.\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-36403/ (Markdown: https://insights.sbomify.com/CVE-2024-36403/index.md)","id":"CVE-2024-36403","markdown":"https://insights.sbomify.com/CVE-2024-36403/index.md","name":"CVE-2024-36403","record":{"aliases":["GHSA-vc2m-hw89-qjxf","GO-2025-3401"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service","other"],"network_reachable":"yes","non_default_config":true,"product_category":"Matrix media repository","requires_auth":"none","summary":"Unauthenticated attackers can exhaust disk space or incur high cloud costs by triggering unbounded media downloads in Matrix Media Repo.","user_interaction":"not_required","vuln_class":"denial_of_service"},"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-770","name":"Allocation of Resources Without Limits or Throttling"}],"description":"Matrix Media Repo (MMR) is a highly configurable multi-homeserver media repository for Matrix. MMR before version 1.3.5 is vulnerable to unbounded disk consumption, where an unauthenticated adversary can induce it to download and cache large amounts of remote media files. MMR's typical operating environment uses S3-like storage as a backend, with file-backed store as an alternative option. Instances using a file-backed store or those which self-host an S3 storage system are therefore vulnerable to a disk fill attack. Once the disk is full, authenticated users will be unable to upload new media, resulting in denial of service. For instances configured to use a cloud-based S3 storage option, this could result in high service fees instead of a denial of service. MMR 1.3.5 introduces a new default-on \"leaky bucket\" rate limit to reduce the amount of data a user can request at a time. This does not fully address the issue, but does limit an unauthenticated user's ability to request large amounts of data. Operators should note that the leaky bucket implementation introduced in MMR 1.3.5 requires the IP address associated with the request to be forwarded, to avoid mistakenly applying the rate limit to the reverse proxy instead. To avoid this issue, the reverse proxy should populate the X-Forwarded-For header when sending the request to MMR. Operators who cannot update may wish to lower the maximum file size they allow and implement harsh rate limits, though this can still lead to a large amount of data to be downloaded.","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":"Denial of service/high operating costs through unauthenticated downloads in Matrix Media Repo","id":"CVE-2024-36403","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"GeoTools Remote Code Execution (RCE) vulnerability in evaluating XPath expressions","id":"CVE-2024-36404"},"packages":[{"ecosystem":"Go","fixed":["1.3.5"],"introduced":["0"],"last_affected":[],"package":"github.com/t2bot/matrix-media-repo","purl":null,"source":"GHSA-vc2m-hw89-qjxf"},{"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-vc2m-hw89-qjxf"},{"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-3401"}],"prev":{"headline":"Unauthenticated writes to the media repository allow planting of problematic content in Matrix Media Repo","id":"CVE-2024-36402"},"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":"Unauthenticated writes to the media repository allow planting of problematic content in Matrix Media Repo","id":"CVE-2024-36402","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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-12","vendors":["t2bot"]},"summary":"Unauthenticated attackers can exhaust disk space or incur high cloud costs by triggering unbounded media downloads in Matrix Media Repo.","url":"https://insights.sbomify.com/CVE-2024-36403/"}