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.
[ { "digest": { "length": 253.0, "function_hash": "247540405358534864148916063282642105731" }, "deprecated": false, "signature_version": "v1", "signature_type": "Function", "id": "CVE-2020-28248-0a0dfe46", "source": "https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d", "target": { "function": "PngImg::InitStorage_", "file": "src/PngImg.cc" } }, { "digest": { "line_hashes": [ "236923606706807126852737180229274119136", "239734977927648997720820885809752257972", "289798947922595080307175432979138576455", "238842229380349258414681969259940006383", "3128312757959955466674962830250232240", "305968787605953264195244417358628798401" ], "threshold": 0.9 }, "deprecated": false, "signature_version": "v1", "signature_type": "Line", "id": "CVE-2020-28248-e7d4e48e", "source": "https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d", "target": { "file": "src/PngImg.cc" } } ]