CVE-2025-64506: libpng Out-of-bounds Read
Vulnerability summary
CVE-2025-64506 is a medium (CVSS 6.1) Out-of-bounds Read vulnerability in libpng. EPSS estimates a 0.14% chance of exploitation in the next 30 days, higher than 2.9% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 16 · Related 13Timeline
- 24-11-2025PublishedVulnerability first disclosed.
- 25-11-2025Last modifiedVulnerability information updated.
Description
LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. From version 1.6.0 to before 1.6.51, a heap buffer over-read vulnerability exists in libpng's png_write_image_8bit function when processing 8-bit images through the simplified write API with convert_to_8bit enabled. The vulnerability affects 8-bit grayscale+alpha, RGB/RGBA, and images with incomplete row data. A conditional guard incorrectly allows 8-bit input to enter code expecting 16-bit input, causing reads up to 2 bytes beyond allocated buffer boundaries. This issue has been patched in version 1.6.51.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · AlpineEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
- NVDNIST6.1MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
EPSS trend
Probability
0.14%
Chance of exploitation in the next 30 days
Percentile
3%
Versus all other CVEs
30-day change
0.00 pp
From 0.14% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Alpine1 product
- libpng≥ 1.6.0, < 1.6.53-r0 | ≥ 1.6.0, < 1.6.51-r0
Chainguard1 product
- libpng< 1.6.51-r0
Debian1 product
- libpng1.6< 1.6.39-2+deb12u1 | < 1.6.48-1+deb13u1 | < 1.6.51-1
Libpng1 product
- libpng≥ 1.6.0, < 1.6.51
Pnggroup1 product
- libpng≥ 1.6.0, < 1.6.51
Ubuntu1 product
- libpng1.6< 1.6.20-2ubuntu0.1~esm2 | < 1.6.34-1ubuntu0.18.04.2+esm1 | < 1.6.37-2ubuntu0.1~esm1 | < 1.6.37-3ubuntu0.1 | < 1.6.43-5ubuntu0.1 | < 1.6.50-1ubuntu0.1
Wolfi1 product
- libpng< 1.6.51-r0
7 vendors · 7 products
References
11 links- github.com/pnggroup/libpng/security/advisories/GHSA-qpr4-xm66-hww6X Refsource CONFIRMREPORTAdvisoryVendor Advisory
- github.com/pnggroup/libpng/commit/2bd84c019c300b78e811743fbcddb67c9d9bf821X Refsource MISCREPORTFIXPatch