FFmpeg · Ffmpeg · CVE-2024-56515
**Name of the Vulnerable Software and Affected Versions**
Matrix Media Repo versions prior to 1.3.8
**Description**
The issue arises when SVG or JPEGXL thumbnailers are enabled, allowing a user to upload a file that claims to be one of these types and request a thumbnail, potentially invoking a different decoder in ImageMagick. This may include the capability to run Ghostscript to decode the image/file in some ImageMagick installations. Similarly, if MP4 thumbnailers are enabled, the same issue may occur with the ffmpeg installation. Matrix Media Repo uses various decoders for other file types when preparing thumbnails, and while theoretical issues are possible with these decoders, they were not found to be exploitable in testing.
**Recommendations**
For versions prior to 1.3.8, disable the SVG, JPEGXL, and MP4 thumbnail types in the Matrix Media Repo config to prevent the decoders from being invoked.
Further disable uncommon file types on the server to limit the risk surface.
Consider using containers or similar technologies to limit the impact of vulnerabilities in external decoders like ImageMagick and ffmpeg.
If possible, replicate the option to disable "unsafe" file types, like PDFs, in other environments as needed.
Note that the Docker image for Matrix Media Repo disables PDFs and similar formats by default.