LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. Prior to 1.6.52, an out-of-bounds read vulnerability in libpng's simplified API allows reading up to 1012 bytes beyond the pngsRGBbase[512] array when processing valid palette PNG images with partial transparency and gamma correction. The PNG files that trigger this vulnerability are valid per the PNG specification; the bug is in libpng's internal state management. Upgrade to libpng 1.6.52 or later.
{
"cwe_ids": [
"CWE-125"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66293.json",
"cna_assigner": "GitHub_M"
}"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-66293.json"
[
{
"source": "https://github.com/glennrp/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "pngtest.c"
},
"id": "CVE-2025-66293-1c0bb128",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"226278435900183309042818230187401432350",
"87133448745501730107989263351817388797",
"261504106203917971632436042185650635174",
"96915034627752997194399565987887230236"
]
}
},
{
"source": "https://github.com/glennrp/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "png_get_copyright",
"file": "png.c"
},
"id": "CVE-2025-66293-20c85e04",
"signature_type": "Function",
"digest": {
"function_hash": "46948716049554014172244892925593370708",
"length": 481.0
}
},
{
"source": "https://github.com/glennrp/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "png.c"
},
"id": "CVE-2025-66293-6680835f",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"47073152949364962369861090096126731773",
"288151299466246462167992061204006899761",
"210305172250034716953159367551327640319",
"269186107582912240335944251486659581364",
"208708600996260486851797060700199558941",
"98942535793701360371500714449713090723"
]
}
},
{
"source": "https://github.com/glennrp/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "png.h"
},
"id": "CVE-2025-66293-8fe70a24",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"166375070723291529406421301066248769034",
"275647010778297936193963675511576832388",
"256826767335212246520616614652191899280",
"279336807821086835335477021495116274772",
"203183669222293599460722964148178217304",
"35307519453120089155494266760457606742",
"19174725693447036515934418080443497527",
"52554931054347631511668834753074918781"
]
}
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-66293.json"
[
{
"source": "https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "png_init_read_transformations",
"file": "pngrtran.c"
},
"id": "CVE-2025-66293-0679f78f",
"signature_type": "Function",
"digest": {
"function_hash": "178214916148992773440650634714263199889",
"length": 11920.0
}
},
{
"source": "https://github.com/pnggroup/libpng/commit/788a624d7387a758ffd5c7ab010f1870dea753a1",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "png_image_read_composite",
"file": "pngread.c"
},
"id": "CVE-2025-66293-593abf08",
"signature_type": "Function",
"digest": {
"function_hash": "329042801547095150720313951941452339475",
"length": 1533.0
}
},
{
"source": "https://github.com/pnggroup/libpng/commit/788a624d7387a758ffd5c7ab010f1870dea753a1",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "pngread.c"
},
"id": "CVE-2025-66293-75012829",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"100996889663950688702363540546045727374",
"151273185200898701085497015189708940663",
"217258249712897293022856727917113654750"
]
}
},
{
"source": "https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "pngrtran.c"
},
"id": "CVE-2025-66293-a6c11414",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"122111431868341237429899483179684791598",
"146522851431437783389063222280952770124",
"159825630669513991505125843423281212441",
"67067004520024991818773911918825321898"
]
}
}
]