What’s Vulnerable › Vulnerabilities
CVE-2020-28248
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-02-20 · updated 2026-06-17
- Weakness: CWE-190
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.
Affected products
- Png-Img Project Png-Img: before 3.1.0 — fixed in 3.1.0
How to fix
Upgrade to a fixed version: Png-Img Project Png-Img 3.1.0. Check the vendor advisory for mitigations.
References
- https://github.com/gemini-testing/png-img
- https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d
- https://github.com/gemini-testing/png-img/compare/v3.0.0...v3.1.0
- https://securitylab.github.com/advisories/GHSL-2020-142-gemini-png-img
- https://github.com/gemini-testing/png-img
- https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d
- https://github.com/gemini-testing/png-img/compare/v3.0.0...v3.1.0
- https://securitylab.github.com/advisories/GHSL-2020-142-gemini-png-img
Get alerted when CVE-2020-28248 or the next vulnerability affects your stack