Impact
matrix-media-repo does 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.
Patches
Patched by 96d23d4
Workarounds
There are no known workarounds for preventing memory expanding
References
n/a
For more information
If you have any questions or comments about this advisory, DM @travis:t2l.io on Matrix or email [email protected] (note that email responses may be delayed).
Impact
matrix-media-repo does 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.
Patches
Patched by 96d23d4
Workarounds
There are no known workarounds for preventing memory expanding
References
n/a
For more information
If you have any questions or comments about this advisory, DM @travis:t2l.io on Matrix or email [email protected] (note that email responses may be delayed).