matrix-media-repo is an open-source multi-domain media repository for Matrix. Versions 1.2.6 and earlier of matrix-media-repo do not properly handle malicious images which are crafted to be small in file size, but large in complexity. A malicious user could upload a relatively small image in terms of file size, using particular image formats, which expands to have extremely large dimensions during the process of thumbnailing. The server can be exhausted of memory in the process of trying to load the whole image into memory for thumbnailing, leading to denial of service. Version 1.2.7 has a fix for the vulnerability.
The product does not properly control the allocation and maintenance of a limited resource.
The product allocates a reusable resource or group of resources on behalf of an actor without imposing any restrictions on the size or number of resources that can be allocated, in violation of the intended security policy for that actor.
Link | Tags |
---|---|
https://github.com/turt2live/matrix-media-repo/security/advisories/GHSA-j889-h476-hh9h | third party advisory patch |
https://hub.docker.com/r/turt2live/matrix-media-repo/tags?page=1&ordering=last_updated | third party advisory |
https://github.com/turt2live/matrix-media-repo/releases/tag/v1.2.7 | third party advisory release notes |