High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-28248
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:36 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-28248
Complete source record
{
"id": "d8985136327cfa68e3cef7ec7e3c3e907526477c036beae454b75f4ad0f31854",
"url": "https://osv.dev/vulnerability/CVE-2020-28248",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-28248",
"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.",
"evidence": "osv:CVE-2020-28248",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2020-28248",
"aliases": [
"CVE-2020-28248",
"GHSA-q5wr-fvpq-p67g"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gemini-testing/png-img",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "3665569bac8aaa01014add5cb79801645fd94e3c"
},
{
"fixed": "14ac462a32ca4b3b78f56502ac976d5b0222ce3d"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:png-img_project:png-img:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.1.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "14ac462a32ca4b3b78f56502ac976d5b0222ce3d"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v3.0.0",
"v2.3.0",
"v2.2.0",
"v2.1.1",
"v2.1.0",
"v2.0.0",
"v1.1.4",
"v1.1.3",
"v1.1.2",
"v1.1.1",
"v1.1.0",
"v1.0.0",
"v0.4.1",
"v0.4.0",
"v0.3.0",
"v0.2.1",
"v0.2.0",
"v0.1.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-28248.json",
"vanir_signatures": [
{
"id": "CVE-2020-28248-0a0dfe46",
"digest": {
"length": 253,
"function_hash": "247540405358534864148916063282642105731"
},
"source": "https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d",
"target": {
"file": "src/PngImg.cc",
"function": "PngImg::InitStorage_"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2020-28248-e7d4e48e",
"digest": {
"threshold": 0.9,
"line_hashes": [
"236923606706807126852737180229274119136",
"239734977927648997720820885809752257972",
"289798947922595080307175432979138576455",
"238842229380349258414681969259940006383",
"3128312757959955466674962830250232240",
"305968787605953264195244417358628798401"
]
},
"source": "https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d",
"target": {
"file": "src/PngImg.cc"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:59:07Z"
}
}
],
"modified": "2026-10-20T13:59:07.727670104Z",
"provider": "osv",
"references": [
"https://github.com/gemini-testing/png-img/compare/v3.0.0...v3.1.0",
"https://github.com/gemini-testing/png-img/commit/14ac462a32ca4b3b78f56502ac976d5b0222ce3d",
"https://github.com/gemini-testing/png-img",
"https://securitylab.github.com/advisories/GHSL-2020-142-gemini-png-img"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-28248",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388466,
"published_at": "2021-02-20T00:15:12.483+00:00"
}