CVE-2025-64720
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. From version 1.6.0 to before 1.6.51, an out-of-bounds read vulnerability exists in png_image_read_composite when processing palette images with PNG_FLAG_OPTIMIZE_ALPHA enabled. The palette compositing code in png_init_read_transformations incorrectly applies background compositing during premultiplication, violating the invariant component ≤ alpha × 257 required by the simplified PNG API. 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-devel | Amazon Linux | 2:1.6.37-10.amzn2023.0.7, 2:1.5.13-8.amzn2.0.6 |
| libpng-static | Amazon Linux | 2:1.6.37-10.amzn2023.0.7 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| pnggroup | libpng | >= 1.6.0, < 1.6.51 |
| amazon:2 | libpng-devel | 0 |
| amazon:2023 | libpng-devel | 0 |
| amazon:2023 | libpng-static | 0 |
| pnggroup | libpng | 1.6.0 |
| amazon:2023 | libpng | 0 |
| amazon:2 | thunderbird | 0 |
| alpine | libpng | 0, 0 |
| amazon:2 | libpng12 | 0 |
| chainguard | libpng | 0 |
| amazon:2023 | firefox | 0 |
| amazon:2 | libpng12-devel | 0 |
| wolfi | libpng | 0 |
| amazon:2023 | libpng-tools | 0 |
| amazon:2 | libpng | 0 |
| amazon:2 | libpng-static | 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 (72 in total, the first dated here)
- Sep 16, 2026 Distribution Patch (31 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-64720
vulnetix vdb fixes CVE-2025-64720
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-64720/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-hfc7-ph9c-wcww x_refsource_CONFIRM
- https://github.com/pnggroup/libpng/issues/686 x_refsource_MISC
- https://github.com/pnggroup/libpng/pull/751 x_refsource_MISC
- https://github.com/pnggroup/libpng/commit/08da33b4c88cfcd36e5a706558a8d7e0e4773643 x_refsource_MISC