Skip to content

CVE-2025-66293 LIBPNG has an out-of-bounds read in png_image_read_composite

HighCVSS 7.1 EPSS 0.38%
Published
Updated
Exploit status
No public exploit known

Description

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.

Affected products

ProductAffected versionsFixed in
cbl-mariner libpng(CBL-Mariner:2.0) < 1.6.52-1 1.6.52-1
azure linux libpng(Azure Linux:3.0) < 1.6.52-1 1.6.52-1
cbl-mariner qt5-qtbase(CBL-Mariner:2.0) < 5.12.11-19 5.12.11-19
debian/libpng1.6(Debian:12) < 1.6.39-2+deb12u1 1.6.39-2+deb12u1
debian/libpng1.6(Debian:12) = 1.6.39-2 No fix listed
debian/libpng1.6(Debian:13) < 1.6.48-1+deb13u1 1.6.48-1+deb13u1
debian/libpng1.6(Debian:13) = 1.6.48-1 No fix listed
debian/libpng1.6(Debian:14) < 1.6.52-1 1.6.52-1
debian/libpng1.6(Debian:14) = 1.6.48-1 No fix listed
debian/libpng1.6(Debian:14) = 1.6.49-1~exp1 No fix listed
debian/libpng1.6(Debian:14) = 1.6.50-1 No fix listed
debian/libpng1.6(Debian:14) = 1.6.50-1~exp1 No fix listed
debian/libpng1.6(Debian:14) = 1.6.51-1 No fix listed
pnggroup libpng = < 1.6.52 No fix listed
ubuntu/libpng1.6(Ubuntu:22.04) < 1.6.37-3ubuntu0.3 1.6.37-3ubuntu0.3
alpine/libpng(Alpine:v3.20) < 1.6.53-r0 1.6.53-r0
alpine/libpng(Alpine:v3.21) < 1.6.53-r0 1.6.53-r0
alpine/libpng(Alpine:v3.22) < 1.6.53-r0 1.6.53-r0
alpine/libpng(Alpine:v3.23) < 1.6.53-r0 1.6.53-r0
alpine/libpng(Alpine:v3.24) < 1.6.53-r0 1.6.53-r0
redhat/java-11-openjdk-portable(Red Hat:openjdk_els:11) All versions No fix listed
redhat/java-17-openjdk-portable(Red Hat:openjdk:17) All versions No fix listed
redhat/java-21-openjdk-portable(Red Hat:openjdk:21) All versions No fix listed
redhat/java-25-openjdk-portable(Red Hat:openjdk:25) All versions No fix listed
redhat/java-1.8.0-openjdk-portable(Red Hat:openjdk:1.8) All versions No fix listed
Show 31 more
ProductAffected versionsFixed in
redhat libpng(Red Hat:enterprise_linux:10.1) < 2:1.6.40-8.el10_1.1 2:1.6.40-8.el10_1.1
redhat libpng(Red Hat:enterprise_linux_eus:10.0) < 2:1.6.40-8.el10_0.1 2:1.6.40-8.el10_0.1
redhat/mingw-libpng(Red Hat:enterprise_linux:8::crb) < 1.6.34-1.el8_10 1.6.34-1.el8_10
redhat libpng(Red Hat:enterprise_linux:8) < 2:1.6.34-9.el8_10 2:1.6.34-9.el8_10
redhat libpng(Red Hat:rhel_aus:8.2) < 2:1.6.34-8.el8_2.1 2:1.6.34-8.el8_2.1
redhat libpng(Red Hat:rhel_aus:8.4) < 2:1.6.34-8.el8_4.1 2:1.6.34-8.el8_4.1
redhat libpng(Red Hat:rhel_eus_long_life:8.4) < 2:1.6.34-8.el8_4.1 2:1.6.34-8.el8_4.1
redhat libpng(Red Hat:rhel_aus:8.6) < 2:1.6.34-8.el8_6.1 2:1.6.34-8.el8_6.1
redhat libpng(Red Hat:rhel_tus:8.6) < 2:1.6.34-8.el8_6.1 2:1.6.34-8.el8_6.1
redhat libpng(Red Hat:rhel_e4s:8.6) < 2:1.6.34-8.el8_6.1 2:1.6.34-8.el8_6.1
redhat libpng(Red Hat:rhel_tus:8.8) < 2:1.6.34-8.el8_8.1 2:1.6.34-8.el8_8.1
redhat libpng(Red Hat:rhel_e4s:8.8) < 2:1.6.34-8.el8_8.1 2:1.6.34-8.el8_8.1
redhat libpng(Red Hat:enterprise_linux:9) < 2:1.6.37-12.el9_7.1 2:1.6.37-12.el9_7.1
redhat libpng(Red Hat:rhel_e4s:9.0) < 2:1.6.37-12.el9_0.1 2:1.6.37-12.el9_0.1
redhat libpng(Red Hat:rhel_e4s:9.2) < 2:1.6.37-12.el9_2.1 2:1.6.37-12.el9_2.1
redhat libpng(Red Hat:rhel_eus:9.4) < 2:1.6.37-12.el9_4.1 2:1.6.37-12.el9_4.1
redhat libpng(Red Hat:rhel_eus:9.6) < 2:1.6.37-12.el9_6.1 2:1.6.37-12.el9_6.1
redhat/openshift/ose-rhel-coreos(Red Hat:openshift:4.12::el8) < 8:412.86.202603041314-0 8:412.86.202603041314-0
redhat/openshift/ose-rhel-coreos(Red Hat:openshift:4.13::el9) < 9:413.92.202602240113-0 9:413.92.202602240113-0
redhat/openshift/ose-rhel-coreos(Red Hat:openshift:4.14::el9) < 9:414.92.202602171627-0 9:414.92.202602171627-0
redhat/openshift/ose-rhel-coreos(Red Hat:openshift:4.15::el9) < 9:415.92.202603101737-0 9:415.92.202603101737-0
redhat/openshift/ose-rhel-coreos(Red Hat:openshift:4.16::el9) < 9:416.94.202602101357-0 9:416.94.202602101357-0
redhat/openshift/ose-rhel-coreos(Red Hat:openshift:4.17::el9) < 9:417.94.202602090846-0 9:417.94.202602090846-0
redhat/openshift/ose-rhel-coreos(Red Hat:openshift:4.18::el9) < 9:418.94.202602022246-0 9:418.94.202602022246-0
redhat/openshift/ose-rhel-coreos(Red Hat:openshift:4.19::el9) < 9:4.19.9.6.202602112047-0 9:4.19.9.6.202602112047-0
redhat/discovery/discovery-ui-rhel9:1767904573(Red Hat:discovery:2::el9) All versions No fix listed
redhat/libpng-main(Red Hat:hummingbird:1) < 1.6.56-1.hum1 1.6.56-1.hum1
redhat/libpng-main(Red Hat:hummingbird:1) < 1.6.58-2.1.hum1 1.6.58-2.1.hum1
redhat libpng(Red Hat:rhel_els:6) All versions No fix listed
ubuntu/libpng1.6(Ubuntu:24.04) < 1.6.43-5ubuntu0.3 1.6.43-5ubuntu0.3
libpng < 1.6.52 1.6.52

References