Live threats

All CVEs / Png-img Project

CVE-2020-28248Png-img Project Png-img

High 8.8 No auth needed

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
Weakness (CWE)
CWE-190, CWE-787
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Png-img.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
png-img_projectpng-img< 3.1.0

Official sources

References

Links published by the sources. Open them with care.