CVE-2020-28248 json
Integer Overflow in png-img
published 2021-02-19 5 y ago modified 2026-06-17 4 mo ago also GHSA-q5wr-fvpq-p67g , EUVD-2021-2566
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.2%
- EPSS 2.2% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Exploit prediction
2.22% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- securitylab.github.com https://securitylab.github.com/advisories/GHSL-2020-142-gemini-png-img referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | png-img | <3.1.0 |
3.1.0 |
Classification
References
-
github.com
/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d
web, patch, third-party-advisory
-
securitylab.github.com
/advisories/GHSL-2020-142-gemini-png-img
advisory, exploit, third-party-advisory
-
github.com
/gemini-testing/png-img
web, product
-
github.com
/gemini-testing/png-img/compare/v3.0.0...v3.1.0
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-28248
advisory
Sources
- CVE List CVE-2020-28248
- GitHub Advisory GHSA-q5wr-fvpq-p67g
- NVD CVE-2020-28248
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.