Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/t2bot/matrix-media-repo
  4. ›
  5. CVE-2024-56515

CVE-2024-56515: Matrix Media Repo (MMR) allows untrusted file formats can be thumbnailed, invoking potentially further untrusted decoders

January 16, 2025 (updated January 17, 2025)

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.

References

  • github.com/advisories/GHSA-rcxc-wjgw-579r
  • github.com/t2bot/matrix-media-repo
  • github.com/t2bot/matrix-media-repo/releases/tag/v1.3.8
  • github.com/t2bot/matrix-media-repo/security/advisories/GHSA-rcxc-wjgw-579r
  • nvd.nist.gov/vuln/detail/CVE-2024-56515
  • pkg.go.dev/vuln/GO-2025-3400

Code Behaviors & Features

Detect and mitigate CVE-2024-56515 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.8

Fixed versions

  • 1.3.8

Solution

Upgrade to version 1.3.8 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-434: Unrestricted Upload of File with Dangerous Type
  • CWE-502: Deserialization of Untrusted Data

Source file

go/github.com/t2bot/matrix-media-repo/CVE-2024-56515.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:34 +0000.