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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66293.json",
"cwe_ids": [
"CWE-125"
],
"cna_assigner": "GitHub_M"
}[
{
"target": {
"file": "pngtest.c"
},
"signature_version": "v1",
"id": "CVE-2025-66293-801707f1",
"signature_type": "Line",
"source": "https://github.com/pnggroup/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"deprecated": false,
"digest": {
"line_hashes": [
"226278435900183309042818230187401432350",
"87133448745501730107989263351817388797",
"261504106203917971632436042185650635174",
"96915034627752997194399565987887230236"
],
"threshold": 0.9
}
},
{
"target": {
"file": "png.h"
},
"signature_version": "v1",
"id": "CVE-2025-66293-abaf0322",
"signature_type": "Line",
"source": "https://github.com/pnggroup/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"deprecated": false,
"digest": {
"line_hashes": [
"166375070723291529406421301066248769034",
"275647010778297936193963675511576832388",
"256826767335212246520616614652191899280",
"279336807821086835335477021495116274772",
"203183669222293599460722964148178217304",
"35307519453120089155494266760457606742",
"19174725693447036515934418080443497527",
"52554931054347631511668834753074918781"
],
"threshold": 0.9
}
},
{
"target": {
"file": "png.c"
},
"signature_version": "v1",
"id": "CVE-2025-66293-ad0b72e5",
"signature_type": "Line",
"source": "https://github.com/pnggroup/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"deprecated": false,
"digest": {
"line_hashes": [
"47073152949364962369861090096126731773",
"288151299466246462167992061204006899761",
"210305172250034716953159367551327640319",
"269186107582912240335944251486659581364",
"208708600996260486851797060700199558941",
"98942535793701360371500714449713090723"
],
"threshold": 0.9
}
},
{
"target": {
"function": "png_get_copyright",
"file": "png.c"
},
"signature_version": "v1",
"id": "CVE-2025-66293-e088f5e7",
"signature_type": "Function",
"source": "https://github.com/pnggroup/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"deprecated": false,
"digest": {
"length": 481.0,
"function_hash": "46948716049554014172244892925593370708"
}
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-66293.json"