Skip to content

CVE-2025-14177 Information Leak of Memory in getimagesize

MediumCVSS 6.3 EPSS 0.50% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
PHPUbuntuDebianRed Hat

Description

In PHP versions:8.1.* before 8.1.34, 8.2.* before 8.2.30, 8.3.* before 8.3.29, 8.4.* before 8.4.16, 8.5.* before 8.5.1, the getimagesize() function may leak uninitialized heap memory into the APPn segments (e.g., APP1) when reading images in multi-chunk mode (such as via php://filter). This occurs due to a bug in php_read_stream_all_chunks() that overwrites the buffer without advancing the pointer, leaving tail bytes uninitialized. This may lead to information disclosure of sensitive heap data and affect the confidentiality of the target server.

Upgrade path

28 packages: 19 fixed, 9 with no fix yet.

PackageAffectedFixed inStatus
PHP(Azure Linux 3.0) All versions No fix listed No fix yet
redhat/devspaces-tech-preview/idea-rhel9(Red Hat openshift_devspaces 3) All versions No fix listed No fix yet
redhat/devspaces/code-rhel9(Red Hat openshift_devspaces 3) All versions No fix listed No fix yet
redhat/php8.4(Red Hat enterprise_linux 10) All versions No fix listed No fix yet
redhat/php:7.4-8100020260119075152.f7998665(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
redhat/php:8.2-8100020260106091451.f7998665(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
redhat/php:8.2-9070020260107073439.9(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/php:8.3-9070020260108073701.9(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
alpine/php81(Alpine v3.19) < 8.1.34-r0 8.1.34-r0 Fixed
alpine/php82(Alpine v3.22) < 8.2.30-r0 8.2.30-r0 Fixed
alpine/php83(Alpine v3.22) < 8.3.29-r0 8.3.29-r0 Fixed
alpine/php83(Alpine v3.23) < 8.3.29-r0 8.3.29-r0 Fixed
alpine/php83(Alpine v3.24) < 8.3.29-r0 8.3.29-r0 Fixed
alpine/php84(Alpine v3.22) < 8.4.16-r0 8.4.16-r0 Fixed
alpine/php84(Alpine v3.23) < 8.4.16-r0 8.4.16-r0 Fixed
alpine/php84(Alpine v3.24) < 8.4.16-r0 8.4.16-r0 Fixed
alpine/php85(Alpine v3.23) < 8.5.1-r0 8.5.1-r0 Fixed
alpine/php85(Alpine v3.24) < 8.5.1-r0 8.5.1-r0 Fixed
debian/php8.2(Debian 12) < 8.2.30-1~deb12u1; = 8.2.5-2; = 8.2.7-1; = 8.2.7-1.1 +22 more 8.2.30-1~deb12u1 Fixed
debian/php8.4(Debian 13) < 8.4.16-1~deb13u1; = 8.4.11-1 8.4.16-1~deb13u1 Fixed
debian/php8.4(Debian 14) < 8.4.16-1; = 8.4.11-1; = 8.4.16-1~deb13u1 8.4.16-1 Fixed
PHP < 8.1.34; < 8.2.30; < 8.3.29; < 8.4.16 +6 more 8.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1 Fixed
PHP(CBL-Mariner 2.0) < 8.1.34-1 8.1.34-1 Fixed
redhat/php(Red Hat enterprise_linux 10.1) < 8.3.29-1.el10_1 8.3.29-1.el10_1 Fixed
redhat/php(Red Hat enterprise_linux 9) < 8.0.30-5.el9_7 8.0.30-5.el9_7 Fixed
redhat/php-main(Red Hat hummingbird 1) < 8.5.5-1.1.hum1 8.5.5-1.1.hum1 Fixed
ubuntu/php8.3(Ubuntu 24.04) < 8.3.6-0ubuntu0.24.04.6 8.3.6-0ubuntu0.24.04.6 Fixed

Affected products

ProductAffected versionsFixed in
PHP(Azure Linux:3.0) All versions No fix listed
PHP(CBL-Mariner:2.0) < 8.1.34-1 8.1.34-1
debian/php8.2(Debian:12) < 8.2.30-1~deb12u1 8.2.30-1~deb12u1
debian/php8.2(Debian:12) = 8.2.10-1 No fix listed
debian/php8.2(Debian:12) = 8.2.10-2 No fix listed
debian/php8.2(Debian:12) = 8.2.12-1 No fix listed
debian/php8.2(Debian:12) = 8.2.16-1 No fix listed
debian/php8.2(Debian:12) = 8.2.16-2 No fix listed
debian/php8.2(Debian:12) = 8.2.17-1 No fix listed
debian/php8.2(Debian:12) = 8.2.18-1 No fix listed
debian/php8.2(Debian:12) = 8.2.18-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.20-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.20-2 No fix listed
debian/php8.2(Debian:12) = 8.2.20-3 No fix listed
debian/php8.2(Debian:12) = 8.2.21-1 No fix listed
debian/php8.2(Debian:12) = 8.2.23-1 No fix listed
debian/php8.2(Debian:12) = 8.2.24-1 No fix listed
debian/php8.2(Debian:12) = 8.2.24-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.26-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.26-4 No fix listed
debian/php8.2(Debian:12) = 8.2.27-1 No fix listed
debian/php8.2(Debian:12) = 8.2.28-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.29-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.5-2 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1 No fix listed
Show 41 more
ProductAffected versionsFixed in
debian/php8.2(Debian:12) = 8.2.7-1.1 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1.2 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1~deb12u1 No fix listed
debian/php8.4(Debian:13) < 8.4.16-1~deb13u1 8.4.16-1~deb13u1
debian/php8.4(Debian:13) = 8.4.11-1 No fix listed
debian/php8.4(Debian:14) < 8.4.16-1 8.4.16-1
debian/php8.4(Debian:14) = 8.4.11-1 No fix listed
debian/php8.4(Debian:14) = 8.4.16-1~deb13u1 No fix listed
PHP < 8.1.34 8.1.34
PHP < 8.2.30 8.2.30
PHP < 8.3.29 8.3.29
PHP < 8.4.16 8.4.16
PHP < 8.5.1 8.5.1
redhat/php(Red Hat:enterprise_linux:10.1) < 8.3.29-1.el10_1 8.3.29-1.el10_1
redhat/php:8.2-8100020260106091451.f7998665(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/php:7.4-8100020260119075152.f7998665(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/php:8.2-9070020260107073439.9(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/php:8.3-9070020260108073701.9(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/php(Red Hat:enterprise_linux:9) < 8.0.30-5.el9_7 8.0.30-5.el9_7
redhat/php-main(Red Hat:hummingbird:1) < 8.5.5-1.1.hum1 8.5.5-1.1.hum1
redhat/php8.4(Red Hat:enterprise_linux:10) All versions No fix listed
redhat/php(Red Hat:rhel_els:6) All versions No fix listed
redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/devspaces/code-rhel9(Red Hat:openshift_devspaces:3) All versions No fix listed
redhat/devspaces-tech-preview/idea-rhel9(Red Hat:openshift_devspaces:3) All versions No fix listed
alpine/php81(Alpine:v3.19) < 8.1.34-r0 8.1.34-r0
alpine/php82(Alpine:v3.22) < 8.2.30-r0 8.2.30-r0
alpine/php83(Alpine:v3.22) < 8.3.29-r0 8.3.29-r0
alpine/php83(Alpine:v3.23) < 8.3.29-r0 8.3.29-r0
alpine/php83(Alpine:v3.24) < 8.3.29-r0 8.3.29-r0
alpine/php84(Alpine:v3.22) < 8.4.16-r0 8.4.16-r0
alpine/php84(Alpine:v3.23) < 8.4.16-r0 8.4.16-r0
alpine/php84(Alpine:v3.24) < 8.4.16-r0 8.4.16-r0
alpine/php85(Alpine:v3.23) < 8.5.1-r0 8.5.1-r0
alpine/php85(Alpine:v3.24) < 8.5.1-r0 8.5.1-r0
ubuntu/php8.3(Ubuntu:24.04) < 8.3.6-0ubuntu0.24.04.6 8.3.6-0ubuntu0.24.04.6
PHP >= 8.1.0, < 8.1.34 8.1.34
PHP >= 8.2.0, < 8.2.30 8.2.30
PHP >= 8.3.0, < 8.3.29 8.3.29
PHP >= 8.4.0, < 8.4.16 8.4.16
PHP = 8.5.0 No fix listed

References