SCA: security update for github.com/t2bot/matrix-media-repo (GHSA-vc2m-hw89-qjxf)

high Tenable Cloud Security Plugin ID 419249

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2024-36403)

See Also

https://github.com/advisories/GHSA-vc2m-hw89-qjxf

Plugin Details

Severity: High

ID: 419249

Version: Revision 1.11

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.51

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2024-36403

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 1/16/2025

Vulnerability Publication Date: 1/16/2025

Reference Information

CVE: CVE-2024-36403

cwe: CWE-770