Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS04dm1yLWg3aDUtY3FoZ84ABDcQ

matrix-media-repo (MMR) allows unauthenticated writes to the media repository, which may allow planting of problematic content

Impact

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.

Patches

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.

Workarounds

Though extremely limited, server operators can use more strict rate limits based on IP address.

References

https://github.com/matrix-org/matrix-spec-proposals/pull/3916

Permalink: https://github.com/advisories/GHSA-8vmr-h7h5-cqhg
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04dm1yLWg3aDUtY3FoZ84ABDcQ
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 1 day ago
Updated: about 1 hour ago


CVSS Score: 5.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

EPSS Percentage: 0.00043
EPSS Percentile: 0.1136

Identifiers: GHSA-8vmr-h7h5-cqhg, CVE-2024-36402
References: Repository: https://github.com/t2bot/matrix-media-repo
Blast Radius: 1.0

Affected Packages

go:github.com/t2bot/matrix-media-repo
Dependent packages: 0
Dependent repositories: 0
Downloads:
Affected Version Ranges: < 1.3.5
Fixed in: 1.3.5
All affected versions: 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 1.2.9, 1.2.10, 1.2.11, 1.2.12, 1.2.13, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4
All unaffected versions: 1.3.5, 1.3.6, 1.3.7