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"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66293.json"
}[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"226278435900183309042818230187401432350",
"87133448745501730107989263351817388797",
"261504106203917971632436042185650635174",
"96915034627752997194399565987887230236"
]
},
"id": "CVE-2025-66293-1c0bb128",
"source": "https://github.com/glennrp/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"signature_type": "Line",
"target": {
"file": "pngtest.c"
},
"signature_version": "v1",
"deprecated": false
},
{
"digest": {
"length": 481.0,
"function_hash": "46948716049554014172244892925593370708"
},
"id": "CVE-2025-66293-20c85e04",
"source": "https://github.com/glennrp/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"signature_type": "Function",
"target": {
"file": "png.c",
"function": "png_get_copyright"
},
"signature_version": "v1",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"47073152949364962369861090096126731773",
"288151299466246462167992061204006899761",
"210305172250034716953159367551327640319",
"269186107582912240335944251486659581364",
"208708600996260486851797060700199558941",
"98942535793701360371500714449713090723"
]
},
"id": "CVE-2025-66293-6680835f",
"source": "https://github.com/glennrp/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"signature_type": "Line",
"target": {
"file": "png.c"
},
"signature_version": "v1",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"166375070723291529406421301066248769034",
"275647010778297936193963675511576832388",
"256826767335212246520616614652191899280",
"279336807821086835335477021495116274772",
"203183669222293599460722964148178217304",
"35307519453120089155494266760457606742",
"19174725693447036515934418080443497527",
"52554931054347631511668834753074918781"
]
},
"id": "CVE-2025-66293-8fe70a24",
"source": "https://github.com/glennrp/libpng/commit/fbed16182b92eeb3a06d96e49f0836d450318098",
"signature_type": "Line",
"target": {
"file": "png.h"
},
"signature_version": "v1",
"deprecated": false
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-66293.json"
[
{
"digest": {
"length": 11920.0,
"function_hash": "178214916148992773440650634714263199889"
},
"id": "CVE-2025-66293-0679f78f",
"source": "https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a",
"signature_type": "Function",
"target": {
"file": "pngrtran.c",
"function": "png_init_read_transformations"
},
"signature_version": "v1",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"317733304423347647054352431386606848278",
"136951930184604380321848287112401029471",
"91261766242902364409824899207674857204",
"246927027163692084105371779996012517116",
"83044205636169080697033014007812777178",
"146756777791927442971228874827957146633",
"109756088015344444145891566158288030358",
"247589547161336576280064750684359352141",
"143766942568258746756319183621680809134",
"54914716082173041305133796016252431739",
"36471781586938443286805101250618541072",
"23083169995731697506643613113829514875"
]
},
"id": "CVE-2025-66293-395c02fa",
"source": "https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a",
"signature_type": "Line",
"target": {
"file": "pngread.c"
},
"signature_version": "v1",
"deprecated": false
},
{
"digest": {
"length": 1533.0,
"function_hash": "329042801547095150720313951941452339475"
},
"id": "CVE-2025-66293-593abf08",
"source": "https://github.com/pnggroup/libpng/commit/788a624d7387a758ffd5c7ab010f1870dea753a1",
"signature_type": "Function",
"target": {
"file": "pngread.c",
"function": "png_image_read_composite"
},
"signature_version": "v1",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"100996889663950688702363540546045727374",
"151273185200898701085497015189708940663",
"217258249712897293022856727917113654750"
]
},
"id": "CVE-2025-66293-75012829",
"source": "https://github.com/pnggroup/libpng/commit/788a624d7387a758ffd5c7ab010f1870dea753a1",
"signature_type": "Line",
"target": {
"file": "pngread.c"
},
"signature_version": "v1",
"deprecated": false
},
{
"digest": {
"length": 1578.0,
"function_hash": "41122192086887503838217940973741776942"
},
"id": "CVE-2025-66293-81534f71",
"source": "https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a",
"signature_type": "Function",
"target": {
"file": "pngread.c",
"function": "png_image_read_composite"
},
"signature_version": "v1",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"122111431868341237429899483179684791598",
"146522851431437783389063222280952770124",
"159825630669513991505125843423281212441",
"67067004520024991818773911918825321898"
]
},
"id": "CVE-2025-66293-a6c11414",
"source": "https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a",
"signature_type": "Line",
"target": {
"file": "pngrtran.c"
},
"signature_version": "v1",
"deprecated": false
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-66293.json"