CVE-2025-66293
LIBPNG has an out-of-bounds read in png_image_read_composite
Reported by github_m · Published December 3, 2025
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 png_sRGB_base[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.
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 | Alpine | 1.6.53-r0 |
| firefox | Amazon Linux | 140.6.0-1.amzn2023.0.1 |
| libpng-tools | Amazon Linux | 2:1.6.37-10.amzn2023.0.8 |
| libpng | libpng | 1.6.52 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| pnggroup | libpng | < 1.6.52 |
| alpine | libpng | 0 |
| amazon:2023 | firefox | 0 |
| amazon:2023 | libpng-tools | 0 |
| pnggroup | libpng | 0 |
| amazon:2023 | libpng-static | 0 |
| amazon:2 | thunderbird | 0 |
| amazon:2023 | libpng | 0 |
| amazon:2023 | libpng-devel | 0 |
| wolfi | libpng | 0 |
| chainguard | libpng | 0 |
Timeline
- Dec 3, 2025 CVE Published
- Dec 4, 2025 EPSS Score (30 in total, the first dated here)
- Dec 4, 2025 CVE Updated
- Mar 21, 2026 Distribution Patch (27 in total, the first dated here)
- Mar 21, 2026 Security Advisory (74 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-66293
vulnetix vdb fixes CVE-2025-66293
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-66293/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-9mpm-9pxh-mg4f x_refsource_CONFIRM
- https://github.com/pnggroup/libpng/issues/764 x_refsource_MISC
- https://github.com/pnggroup/libpng/commit/788a624d7387a758ffd5c7ab010f1870dea753a1 x_refsource_MISC
- https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2025/12/03/6 url
- http://www.openwall.com/lists/oss-security/2025/12/03/7 url
- http://www.openwall.com/lists/oss-security/2025/12/03/8 url