CVE-2020-28248
HIGH 8.8CVSS 3.1Integer Overflow in png-img
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.
- Published
- 20 Feb 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-190CWE-787
- Also known as
- GHSA-q5wr-fvpq-p67g
- Sources
- NVDJSONOSV GHSA-q5wr-fvpq-p67gJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | png-img_project | png-imgcpe:2.3:a:png-img_project:png-img:*:*:*:*:*:*:*:* |
< 3.1.0 | 3.1.0 |
| OSV | npm | png-img | < 3.1.0 | 3.1.0 |
References
- https://github.com/gemini-testing/png-img · Product, WEB
- https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d · Patch, Third Party Advisory, WEB
- https://github.com/gemini-testing/png-img/compare/v3.0.0...v3.1.0 · Release Notes, Third Party Advisory, WEB
- https://securitylab.github.com/advisories/GHSL-2020-142-gemini-png-img · Exploit, Third Party Advisory, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-28248 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 20 Feb 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Dec 2021)