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.
https://github.com/gemini-testing/png-img/compare/v3.0.0...v3.1.0
https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d
https://securitylab.github.com/advisories/GHSL-2020-142-gemini-png-img
https://github.com/gemini-testing/png-img
Source: Mitre, NVD
Published: 2021-02-20
Updated: 2026-06-17
Base Score: 6.8
Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P
Severity: Medium
Base Score: 8.8
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Severity: High
EPSS: 0.01001