CVE-2025-64505
Reported by github_m · Published November 24, 2025
LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. Prior to version 1.6.51, a heap buffer over-read vulnerability exists in libpng's png_do_quantize function when processing PNG files with malformed palette indices. The vulnerability occurs when palette_lookup array bounds are not validated against externally-supplied image data, allowing an attacker to craft a PNG file with out-of-range palette indices that trigger out-of-bounds memory access. This issue has been patched in version 1.6.51.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libpng | Amazon Linux | 2:1.6.37-10.amzn2023.0.7 |
| thunderbird | Amazon Linux | 140.4.0-1.amzn2.0.3 |
| libpng-static | Amazon Linux | 2:1.6.37-10.amzn2023.0.7, 2:1.5.13-8.amzn2.0.6 |
| libpng-tools | Amazon Linux | 2:1.6.37-10.amzn2023.0.7 |
| firefox | Amazon Linux | 140.5.0-1.amzn2023.0.2 |
| libpng12-devel | Amazon Linux | 1.2.50-10.amzn2.0.3 |
| libpng-devel | Amazon Linux | 2:1.6.37-10.amzn2023.0.7, 2:1.5.13-8.amzn2.0.6 |
| libpng | libpng | 1.6.51 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| pnggroup | libpng | < 1.6.51 |
| amazon:2023 | libpng | 0 |
| amazon:2 | thunderbird | 0 |
| amazon:2 | libpng-static | 0 |
| amazon:2023 | libpng-tools | 0 |
| amazon:2023 | firefox | 0 |
| amazon:2 | libpng12-devel | 0 |
| amazon:2023 | libpng-static | 0 |
| amazon:2023 | libpng-devel | 0 |
| amazon:2 | libpng-devel | 0 |
| pnggroup | libpng | 0 |
| chainguard | libpng | 0 |
| amazon:2 | libpng12 | 0 |
| wolfi | libpng | 0 |
| alpine | libpng | 0, 0 |
| amazon:2 | libpng | 0 |
Timeline
- Nov 23, 2025 CVE Published
- Nov 25, 2025 EPSS Score (30 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Mar 29, 2026 Security Advisory (70 in total, the first dated here)
- Sep 16, 2026 Distribution Patch (29 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-64505
vulnetix vdb fixes CVE-2025-64505
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-64505/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/pnggroup/libpng/security/advisories/GHSA-4952-h5wq-4m42 x_refsource_CONFIRM
- https://github.com/pnggroup/libpng/pull/748 x_refsource_MISC
- https://github.com/pnggroup/libpng/commit/6a528eb5fd0dd7f6de1c39d30de0e41473431c37 x_refsource_MISC