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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-125"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66293.json"
}{
"source": [
"CPE_RANGE",
"REFERENCES"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.6.52"
}
],
"cpe": "cpe:2.3:a:libpng:libpng:*:*:*:*:*:*:*:*"
}[
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a",
"target": {
"file": "pngrtran.c",
"function": "png_init_read_transformations"
},
"id": "CVE-2025-66293-0679f78f",
"digest": {
"function_hash": "178214916148992773440650634714263199889",
"length": 11920.0
},
"deprecated": false
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a",
"target": {
"file": "pngread.c"
},
"id": "CVE-2025-66293-395c02fa",
"digest": {
"line_hashes": [
"317733304423347647054352431386606848278",
"136951930184604380321848287112401029471",
"91261766242902364409824899207674857204",
"246927027163692084105371779996012517116",
"83044205636169080697033014007812777178",
"146756777791927442971228874827957146633",
"109756088015344444145891566158288030358",
"247589547161336576280064750684359352141",
"143766942568258746756319183621680809134",
"54914716082173041305133796016252431739",
"36471781586938443286805101250618541072",
"23083169995731697506643613113829514875"
],
"threshold": 0.9
},
"deprecated": false
},
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/pnggroup/libpng/commit/788a624d7387a758ffd5c7ab010f1870dea753a1",
"target": {
"file": "pngread.c",
"function": "png_image_read_composite"
},
"id": "CVE-2025-66293-593abf08",
"digest": {
"function_hash": "329042801547095150720313951941452339475",
"length": 1533.0
},
"deprecated": false
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/pnggroup/libpng/commit/788a624d7387a758ffd5c7ab010f1870dea753a1",
"target": {
"file": "pngread.c"
},
"id": "CVE-2025-66293-75012829",
"digest": {
"line_hashes": [
"100996889663950688702363540546045727374",
"151273185200898701085497015189708940663",
"217258249712897293022856727917113654750"
],
"threshold": 0.9
},
"deprecated": false
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/pnggroup/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"target": {
"file": "pngtest.c"
},
"id": "CVE-2025-66293-801707f1",
"digest": {
"line_hashes": [
"226278435900183309042818230187401432350",
"87133448745501730107989263351817388797",
"261504106203917971632436042185650635174",
"96915034627752997194399565987887230236"
],
"threshold": 0.9
},
"deprecated": false
},
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a",
"target": {
"file": "pngread.c",
"function": "png_image_read_composite"
},
"id": "CVE-2025-66293-81534f71",
"digest": {
"function_hash": "41122192086887503838217940973741776942",
"length": 1578.0
},
"deprecated": false
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a",
"target": {
"file": "pngrtran.c"
},
"id": "CVE-2025-66293-a6c11414",
"digest": {
"line_hashes": [
"122111431868341237429899483179684791598",
"146522851431437783389063222280952770124",
"159825630669513991505125843423281212441",
"67067004520024991818773911918825321898"
],
"threshold": 0.9
},
"deprecated": false
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/pnggroup/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"target": {
"file": "png.h"
},
"id": "CVE-2025-66293-abaf0322",
"digest": {
"line_hashes": [
"166375070723291529406421301066248769034",
"275647010778297936193963675511576832388",
"256826767335212246520616614652191899280",
"279336807821086835335477021495116274772",
"203183669222293599460722964148178217304",
"35307519453120089155494266760457606742",
"19174725693447036515934418080443497527",
"52554931054347631511668834753074918781"
],
"threshold": 0.9
},
"deprecated": false
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/pnggroup/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"target": {
"file": "png.c"
},
"id": "CVE-2025-66293-ad0b72e5",
"digest": {
"line_hashes": [
"47073152949364962369861090096126731773",
"288151299466246462167992061204006899761",
"210305172250034716953159367551327640319",
"269186107582912240335944251486659581364",
"208708600996260486851797060700199558941",
"98942535793701360371500714449713090723"
],
"threshold": 0.9
},
"deprecated": false
},
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/pnggroup/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"target": {
"file": "png.c",
"function": "png_get_copyright"
},
"id": "CVE-2025-66293-e088f5e7",
"digest": {
"function_hash": "46948716049554014172244892925593370708",
"length": 481.0
},
"deprecated": false
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-66293.json"
"2026-06-18T18:18:26Z"