# CVE-2024-56515: Untrusted file formats can be thumbnailed, invoking potentially further untrusted decoders in Matrix Media Repo

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 52% of CVEs (2026-12-01)
- Published: 2025-01-16T19:11:02.868Z
- Modified: 2026-06-17T08:12:16.820Z
- Also known as: GHSA-rcxc-wjgw-579r, GO-2025-3400
- Weaknesses: CWE-434, CWE-502
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- t2bot matrix-media-repo: < 1.3.8; before 1.3.8
- github.com/t2bot/matrix-media-repo (Go): before 1.3.8

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/t2bot/matrix-media-repo/security/advisories/GHSA-rcxc-wjgw-579r> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/t2bot/matrix-media-repo/releases/tag/v1.3.8> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-56515> (advisory)
- <https://github.com/t2bot/matrix-media-repo> (package)
- <https://pkg.go.dev/vuln/GO-2025-3400> (web)

## Sources

- CVE List: [CVE-2024-56515](https://www.cve.org/CVERecord?id=CVE-2024-56515), CVE Terms of Use, modified 2025-02-12
- GitHub Advisory Database: [GHSA-rcxc-wjgw-579r](https://github.com/advisories/GHSA-rcxc-wjgw-579r), CC-BY-4.0, modified 2025-08-20
- Go Vulnerability Database: [GO-2025-3400](https://pkg.go.dev/vuln/GO-2025-3400), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-56515](https://nvd.nist.gov/vuln/detail/CVE-2024-56515), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56515 · Whole record: https://cve.day/CVE-2024-56515.json · Rebuilt by cve.day 2026-11-25T22:58:51.094Z
