CVE-2021-29453 Denial of service through memory exhaustion
A malicious user can cause denial of service by uploading crafted images that exhaust server memory during thumbnailing in matrix-media-repo.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-29453?
CVE-2021-29453 is a medium-severity denial of service vulnerability in turt2live matrix-media-repo, published on 19 Apr 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
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.
Which versions are affected by CVE-2021-29453?
It affects 1 product.
Products include Matrix-Media-Repo Project Matrix-Media-Repo.
How do I fix CVE-2021-29453?
No fix has been published for CVE-2021-29453 yet. Limit exposure of the affected software until one is available.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2021-29453 being exploited?
There is no known exploitation of CVE-2021-29453 in the wild and no public exploit code.
Sources
Also known as GHSA-j889-h476-hh9h.