{"id":"CVE-2020-28248","aliases":["CVE-2020-28248","GHSA-q5wr-fvpq-p67g"],"related":[],"kind":"vulnerability","state":"published","title":"Integer Overflow in png-img","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Un desbordamiento de enteros en la función PngImg::InitStorage_ () de png-img versiones anteriores a 3.1.0, conlleva a una subasignación de la memoria de la pila y, posteriormente, a un desbordamiento del búfer explotable en la región heap de la memoria al cargar un archivo PNG diseñado","source":"nvd"}],"published":"2021-02-19T23:05:09.000Z","modified":"2026-06-17T03:10:14.540Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-190","CWE-787"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.1.0"}],"ecosystem":"npm","package":"png-img","purl":"pkg:npm/png-img","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.1.0"}],"vendor":"png-img_project","product":"png-img","cpe":"cpe:2.3:a:png-img_project:png-img:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/gemini-testing/png-img","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/gemini-testing/png-img/compare/v3.0.0...v3.1.0","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://securitylab.github.com/advisories/GHSL-2020-142-gemini-png-img","tags":["advisory","exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-28248","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-28248","url":"https://www.cve.org/CVERecord?id=CVE-2020-28248","licence":"CVE Terms of Use","modified":"2024-08-04T16:33:58.211Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q5wr-fvpq-p67g","url":"https://github.com/advisories/GHSA-q5wr-fvpq-p67g","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:24.222Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-28248","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-28248","licence":"Public domain","modified":"2026-06-17T03:10:14.540Z"}],"updatedAt":"2026-11-25T22:57:57.394Z","epss":{"score":0.02244,"percentile":0.83384,"date":"2026-12-02T12:00:21.000Z"}}