# CVE-2020-28248: Integer Overflow in png-img

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.24%, higher than 83% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-19T23:05:09.000Z
- Modified: 2026-06-17T03:10:14.540Z
- Also known as: GHSA-q5wr-fvpq-p67g
- Weaknesses: CWE-190, CWE-787
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- png-img (npm): before 3.1.0
- png-img_project png-img: before 3.1.0

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://securitylab.github.com/advisories/GHSL-2020-142-gemini-png-img> (exploit, advisory, third-party-advisory)
- <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://nvd.nist.gov/vuln/detail/CVE-2020-28248> (advisory)

## Sources

- CVE List: [CVE-2020-28248](https://www.cve.org/CVERecord?id=CVE-2020-28248), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-q5wr-fvpq-p67g](https://github.com/advisories/GHSA-q5wr-fvpq-p67g), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-28248](https://nvd.nist.gov/vuln/detail/CVE-2020-28248), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-28248 · Whole record: https://cve.day/CVE-2020-28248.json · Rebuilt by cve.day 2026-11-25T22:57:57.394Z
