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