CVE-2024-56515
Untrusted file formats can be thumbnailed, invoking potentially further untrusted decoders in Matrix Media Repo
Also known as GHSA-rcxc-wjgw-579r, GO-2025-3400
Mitigation
- Upgrade github.com/t2bot/matrix-media-repo to 1.3.8 or later.
Who should check
- Projects that depend on Go package github.com/t2bot/matrix-media-repo (< 1.3.8)
- Anyone running t2bot matrix-media-repo < 1.3.8
Vulnerability facts
- Affected
- github.com/t2bot/matrix-media-repo < 1.3.8
- Fixed in
- 1.3.8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 6.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.81% chance of exploitation in 30 days (percentile 54, 2026-11-26)
- CWE
- CWE-502
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/t2bot/matrix-media-repo | < 1.3.8 | 1.3.8 | osv |
| t2bot matrix-media-repo | < 1.3.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-56515. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-56515.md Affected: github.com/t2bot/matrix-media-repo < 1.3.8 Fixed in: 1.3.8 Steps: 1. Search this machine and project for github.com/t2bot/matrix-media-repo (Go), t2bot matrix-media-repo: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2024-56515 being exploited?
There is no confirmed exploitation: CVE-2024-56515 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.81% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-56515?
Medium: CVSS 6.8 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2024-56515?
github.com/t2bot/matrix-media-repo < 1.3.8.
Is there a fix for CVE-2024-56515?
Yes. Fixed in 1.3.8. Upgrade github.com/t2bot/matrix-media-repo to 1.3.8 or later.
How do I check if I'm affected by CVE-2024-56515?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.