Untrusted file formats can be thumbnailed, invoking potentially further untrusted decoders in Matrix Media Repo
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-502.
Summary
Matrix Media Repo (MMR) is a highly configurable multi-homeserver media repository for Matrix. If SVG or JPEGXL thumbnailers are enabled (they are disabled by default), a user may upload a file which claims to be either of these types and request a thumbnail to invoke a different decoder in ImageMagick. In some ImageMagick installations, this includes the capability to run Ghostscript to decode the image/file. If MP4 thumbnailers are enabled (also disabled by default), the same issue as above may occur with the ffmpeg installation instead. MMR uses a number of other decoders for all other file types when preparing thumbnails. Theoretical issues are possible with these decoders, however in testing they were not possible to exploit. This is fixed in MMR v1.3.8. MMR now inspects the mimetype of media prior to thumbnailing, and picks a thumbnailer based on those results instead of relying on user-supplied values. This may lead to fewer thumbnails when obscure file shapes are used. This also helps narrow scope of theoretical issues with all decoders MMR uses for thumbnails. Users are advised to upgrade. Users unable to upgrade may disable the SVG, JPEGXL, and MP4 thumbnail types in the MMR config which prevents the decoders from being invoked. Further disabling uncommon file types on the server is recommended to limit risk surface. Containers and other similar technologies may also be used to limit the impact of vulnerabilities in external decoders, like ImageMagick and ffmpeg. Some installations of ImageMagick may disable "unsafe" file types, like PDFs, already. This option can be replicated to other environments as needed. ffmpeg may be compiled with limited decoders/codecs. The Docker image for MMR disables PDFs and similar formats by default.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| t2bot | matrix-media-repo | before 1.3.8 | 1.3.8 | Patch available | CNA |
| — | github.com/t2bot/matrix-media-repo (Go) | before 1.3.8 | 1.3.8 | Patch available | GHSA-rcxc-wjgw-579r |
- matrix-media-repo Vendort2bot Affected before 1.3.8 Fixed in 1.3.8 Patch available CNA
- github.com/t2bot/matrix-media-repo (Go) Vendor— Affected before 1.3.8 Fixed in 1.3.8 Patch available GHSA-rcxc-wjgw-579r
Remediation
- Fix · CNA matrix-media-repo (t2bot) Fixed in 1.3.8
- Fix · GHSA-rcxc-wjgw-579r github.com/t2bot/matrix-media-repo (Go) Fixed in 1.3.8 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-56515
- 2026-10-03 Alias added: GHSA-rcxc-wjgw-579r
- 2026-10-21 EPSS moved to the 50th–90th percentile
References
More t2bot Matrix-media-repo vulnerabilities
- TI-2024-24188 Unauthenticated writes to the media repository allow planting of problematic content in Matrix Media Repo CVSS 3.1MEDIUM 5.3
- TI-2024-35262 Server-Side Request Forgery (SSRF) on redirects and federation in Matrix Media Repo CVSS 3.1MEDIUM 5.3
- TI-2024-35305 Denial of service through memory exhaustion in Matrix Media Repo CVSS 3.1HIGH 7.5
- TI-2024-24189 Denial of service/high operating costs through unauthenticated downloads in Matrix Media Repo CVSS 3.1HIGH 7.5
Sources
- CVE-2024-56515 · CVE Program
- CVE-2024-56515 · NVD
- FIRST EPSS
- GHSA-rcxc-wjgw-579r · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences