{"id":"CVE-2020-28248","aliases":["EUVD-2021-2566","GHSA-q5wr-fvpq-p67g"],"status":"published","title":"Integer Overflow in png-img","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.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.02216,"percentile":0.82898,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190","CWE-787"],"published":"2021-02-19T23:05:09Z","modified":"2026-10-20T13:59:07Z","fixes":[{"ecosystem":"npm","package":"png-img","fixed_in":["3.1.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"png-img","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.0"}]}]},{"source":"osv","ecosystem":"npm","package":"png-img","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.1.0"}]}]}],"products":[{"vendor":"png-img_project","product":"png-img"}],"references":[{"url":"https://github.com/gemini-testing/png-img","tags":["x_refsource_MISC","x_transferred","Product","package","web"]},{"url":"https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/gemini-testing/png-img/compare/v3.0.0...v3.1.0","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://securitylab.github.com/advisories/GHSL-2020-142-gemini-png-img","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-28248","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-q5wr-fvpq-p67g"}],"sources":{"cve":[{"id":"CVE-2020-28248","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.","status":"published","published":"2021-02-19T23:05:09Z","modified":"2024-08-04T16:33:58.211Z","updated_at":"2026-11-02T14:35:57.017407Z"}],"euvd":[{"id":"EUVD-2021-2566","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.","status":"published","published":"2021-02-19T23:05:09Z","modified":"2024-08-04T16:33:58Z","updated_at":"2026-11-03T03:07:10.123634Z"}],"ghsa":[{"id":"GHSA-q5wr-fvpq-p67g","title":"Integer Overflow in png-img","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.","status":"published","published":"2021-12-10T17:23:30Z","modified":"2023-02-01T05:05:54Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-190","CWE-787"],"updated_at":"2026-11-02T14:36:35.781528Z"}],"nvd":[{"id":"CVE-2020-28248","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.","status":"published","published":"2021-02-20T00:15:12.483Z","modified":"2026-06-17T03:10:14.54Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-190","CWE-787"],"updated_at":"2026-11-02T14:06:34.188486Z"}],"osv":[{"id":"CVE-2020-28248","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.","status":"published","published":"2021-02-20T00:15:12.483Z","modified":"2026-10-20T13:59:07.727670104Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:16.248747Z"},{"id":"GHSA-q5wr-fvpq-p67g","title":"Integer Overflow in png-img","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.","status":"published","published":"2021-12-10T17:23:30Z","modified":"2023-11-08T04:03:24.222139Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-190","CWE-787"],"updated_at":"2026-11-02T15:46:54.055966Z"}]}}
