GHSA-8vmr-h7h5-cqhg

Suggest an improvement
Source
https://github.com/advisories/GHSA-8vmr-h7h5-cqhg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-8vmr-h7h5-cqhg/GHSA-8vmr-h7h5-cqhg.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-8vmr-h7h5-cqhg
Aliases
Published
2025-01-16T19:05:01Z
Modified
2025-01-17T15:37:55Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
matrix-media-repo (MMR) allows unauthenticated writes to the media repository, which may allow planting of problematic content
Details

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

Database specific
{
    "nvd_published_at": "2025-01-16T20:15:32Z",
    "cwe_ids": [
        "CWE-287"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-01-16T19:05:01Z"
}
References

Affected packages

Go / github.com/t2bot/matrix-media-repo

Package

Name
github.com/t2bot/matrix-media-repo
View open source insights on deps.dev
Purl
pkg:golang/github.com/t2bot/matrix-media-repo

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.3.5