CVE-2025-65018
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, there is a heap buffer overflow vulnerability in the libpng simplified API function png_image_finish_read when processing 16-bit interlaced PNGs with 8-bit output format. Attacker-crafted interlaced PNG files cause heap writes beyond allocated buffer bounds. 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 |
|---|---|---|
| firefox | Amazon Linux | 140.5.0-1.amzn2023.0.2 |
| libpng | Chainguard | 1.6.51-r0 |
| thunderbird | Amazon Linux | 140.4.0-1.amzn2.0.3 |
| libpng-devel | Amazon Linux | 2:1.6.37-10.amzn2023.0.7 |
| libpng-static | Amazon Linux | 2:1.6.37-10.amzn2023.0.7 |
| libpng | Wolfi | 1.6.51-r0 |
| libpng-tools | Amazon Linux | 2:1.6.37-10.amzn2023.0.7 |
| libpng | Amazon Linux | 2:1.6.37-10.amzn2023.0.7 |
| libpng | libpng | 1.6.51 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| pnggroup | libpng | >= 1.6.0, < 1.6.51 |
| amazon:2023 | firefox | 0 |
| chainguard | libpng | 0 |
| amazon:2 | thunderbird | 0 |
| amazon:2023 | libpng-devel | 0 |
| amazon:2023 | libpng-static | 0 |
| wolfi | libpng | 0 |
| amazon:2023 | libpng-tools | 0 |
| amazon:2023 | libpng | 0 |
| pnggroup | libpng | 1.6.0 |
| alpine | libpng | 0, 0 |
Timeline
- Nov 23, 2025 CVE Published
- Nov 25, 2025 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (85 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (41 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-65018
vulnetix vdb fixes CVE-2025-65018
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-65018/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-7wv6-48j4-hj3g x_refsource_CONFIRM
- https://github.com/pnggroup/libpng/issues/755 x_refsource_MISC
- https://github.com/pnggroup/libpng/pull/757 x_refsource_MISC
- https://github.com/pnggroup/libpng/commit/16b5e3823918840aae65c0a6da57c78a5a496a4d x_refsource_MISC
- https://github.com/pnggroup/libpng/commit/218612ddd6b17944e21eda56caf8b4bf7779d1ea x_refsource_MISC