CVE-2020-28248Png-img Project Png-img
High 8.8 No auth needed
Follow: this CVE · Png-img Project · Png-img Project Png-img We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- 2.2% probability of exploitation in 30 days · percentile 84
- Auth required
- No
- Published
- Feb 20, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Png-img.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | png-img |
< 3.1.0 |
3.1.0 |
npm install png-img@3.1.0 |
Per OSV / GitHub Advisories (GHSA-q5wr-fvpq-p67g). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| png-img_project | png-img | < 3.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- securitylab.github.com Exploit Third Party Advisory