CVE-2020-28248 Integer Overflow in png-img
An integer overflow in the png-img library leads to heap buffer overflow, allowing remote code execution via crafted PNG files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-28248?
CVE-2020-28248 is a high-severity vulnerability in n/a, published on 19 Feb 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
An integer overflow in the PngImg::InitStorage_() function of png-img before 3.1.0 leads to an under-allocation of heap memory and subsequently an exploitable heap-based buffer overflow when loading a crafted PNG file.
Which versions are affected by CVE-2020-28248?
2 open source packages ship an affected version, including png-img. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
png-img npm | All versions | 3.1.0 |
png-img npm | All versions | 3.1.0 |
Products include Png-Img Project Png-Img.
How do I fix CVE-2020-28248?
Upgrade png-img to 3.1.0 or later.
Is CVE-2020-28248 being exploited?
There is no known exploitation of CVE-2020-28248 in the wild and no public exploit code.
Sources
Also known as GHSA-q5wr-fvpq-p67g.