Skip to content
OpenAdvisories
Medium · 6.3 Public exploit CVE-2025-14177 EUVD-2025-205484

Information Leak of Memory in getimagesize

Published Dec 27, 2025 · Updated Dec 29, 2025 · Assigned by php

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.

Affected products

VendorProductAffectedFixed
PHP Group PHP 8.1.* – < 8.1.34, 8.2.* – < 8.2.30, 8.3.* – < 8.3.29, 8.4.* – < 8.4.16, 8.5.* – < 8.5.1 8.1.34

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 php8.4 8.4.16-1 —
Debian 13 php8.4 8.4.16-1~deb13u1 DSA-6088-1
Debian 12 php8.2 8.2.30-1~deb12u1 DSA-6154-1
ReleasePackageFixed inAdvisory
Ubuntu 25.10 php8.4 8.4.11-1ubuntu1.1 USN-7953-1
Ubuntu 24.04 LTS php8.3 8.3.6-0ubuntu0.24.04.6 USN-7953-1
Ubuntu 22.04 LTS php8.1 8.1.2-1ubuntu2.23 USN-7953-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS php7.4 7.4.3-4ubuntu2.29+esm3 USN-7953-1
Ubuntu Pro 18.04 LTS php7.2 7.2.24-0ubuntu0.18.04.17+esm12 USN-7953-1
ReleasePackageFixed inAdvisory
RHEL 10 php +23 8.3.29-1.el10_1 RHSA-2026:1628
RHEL 9 apcu-panel +2 5.1.23-1.module+el9.4.0+20748+b46899d2 RHSA-2026:1429, RHSA-2026:1409
RHEL 9 php +23 8.0.30-5.el9_7 RHSA-2026:2799, RHSA-2026:1429, RHSA-2026:1409
RHEL 9 php-pecl-redis6 6.1.0-2.module+el9.6.0+22647+1741ae35 RHSA-2026:1429
RHEL 9 php-pecl-rrd 2.0.3-4.module+el9.4.0+20748+b46899d2 RHSA-2026:1429, RHSA-2026:1409
RHEL 9 php-pecl-xdebug3 3.2.2-2.module+el9.4.0+20796+bd4564df RHSA-2026:1429, RHSA-2026:1409
RHEL 9 php-pecl-zip 1.22.3-1.module+el9.4.0+20748+b46899d2 RHSA-2026:1429, RHSA-2026:1409
RHEL 8 apcu-panel +2 5.1.18-1.module+el8.10.0+22485+a3539972 RHSA-2026:2470, RHSA-2026:1412
RHEL 8 libzip +2 1.6.1-1.module+el8.10.0+22485+a3539972 RHSA-2026:2470, RHSA-2026:1412
RHEL 8 php +25 7.4.33-3.module+el8.10.0+23902+d3c8dd8f RHSA-2026:2470, RHSA-2026:1412
RHEL 8 php-pear 1:1.10.13-1.module+el8.10.0+22485+a3539972 RHSA-2026:2470, RHSA-2026:1412
RHEL 8 php-pecl-rrd 2.0.1-1.module+el8.10.0+22485+a3539972 RHSA-2026:2470, RHSA-2026:1412
RHEL 8 php-pecl-xdebug 2.9.5-1.module+el8.10.0+22485+a3539972 RHSA-2026:2470
RHEL 8 php-pecl-xdebug3 3.2.2-2.module+el8.10.0+20798+00eaeb41 RHSA-2026:1412
RHEL 8 php-pecl-zip 1.18.2-1.module+el8.10.0+22485+a3539972 RHSA-2026:2470, RHSA-2026:1412
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 php +26 8.5.5-1.1.hum1 RHSA-2026:7614

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 php +23 8.3.29-1.el10_1 ALSA-2026:1628
AlmaLinux 9 apcu-panel +2 5.1.23-1.module_el9.4.0+65+49ff6472 ALSA-2026:1429, ALSA-2026:1409
AlmaLinux 9 php +23 8.0.30-5.el9_7 ALSA-2026:2799, ALSA-2026:1429, ALSA-2026:1409
AlmaLinux 9 php-pecl-redis6 6.1.0-2.module_el9.6.0+151+5f31e576 ALSA-2026:1429
AlmaLinux 9 php-pecl-rrd 2.0.3-4.module_el9.4.0+65+49ff6472 ALSA-2026:1429, ALSA-2026:1409
AlmaLinux 9 php-pecl-xdebug3 3.2.2-2.module_el9.4.0+65+49ff6472 ALSA-2026:1429, ALSA-2026:1409
AlmaLinux 9 php-pecl-zip 1.22.3-1.module_el9.4.0+65+49ff6472 ALSA-2026:1429, ALSA-2026:1409
AlmaLinux 8 apcu-panel +2 5.1.18-1.module_el8.6.0+2750+78feabcb ALSA-2026:2470, ALSA-2026:1412
AlmaLinux 8 libzip +1 1.6.1-1.module_el8.6.0+2750+78feabcb ALSA-2026:2470, ALSA-2026:1412
AlmaLinux 8 libzip-devel 1.6.1-1.module_el8.6.0+3239+bedf0508 ALSA-2026:2470, ALSA-2026:1412
AlmaLinux 8 php +25 7.4.33-3.module_el8.10.0+4114+3b36c618 ALSA-2026:2470, ALSA-2026:1412
AlmaLinux 8 php-pear 1:1.10.13-1.module_el8.10.0+3935+28808425 ALSA-2026:2470, ALSA-2026:1412
AlmaLinux 8 php-pecl-rrd 2.0.1-1.module_el8.6.0+2750+78feabcb ALSA-2026:2470, ALSA-2026:1412
AlmaLinux 8 php-pecl-xdebug 2.9.5-1.module_el8.6.0+2750+78feabcb ALSA-2026:2470
AlmaLinux 8 php-pecl-xdebug3 3.2.2-2.module_el8.10.0+3796+30ed3ef7 ALSA-2026:1412
AlmaLinux 8 php-pecl-zip 1.18.2-1.module_el8.6.0+2750+78feabcb ALSA-2026:2470, ALSA-2026:1412

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 php 8.3.29-1.el10_1 RLSA-2026:1628
Rocky Linux 9 php 8.0.30-5.el9_7 RLSA-2026:2799
Rocky Linux 9 php-pecl-apcu 5.1.23-1.module+el9.7.0+40004+bf50a568 RLSA-2026:1429, RLSA-2026:1409
Rocky Linux 9 php-pecl-redis6 6.1.0-2.module+el9.7.0+40005+715283ec RLSA-2026:1429
Rocky Linux 9 php-pecl-rrd 2.0.3-4.module+el9.7.0+40003+454ed3c4 RLSA-2026:1429, RLSA-2026:1409
Rocky Linux 9 php-pecl-xdebug3 3.2.2-2.module+el9.7.0+40004+bf50a568 RLSA-2026:1429, RLSA-2026:1409
Rocky Linux 9 php-pecl-zip 1.22.3-1.module+el9.7.0+40004+bf50a568 RLSA-2026:1429, RLSA-2026:1409
Rocky Linux 8 libzip 1.6.1-1.module+el8.10.0+1912+72767185 RLSA-2026:2470, RLSA-2026:1412
Rocky Linux 8 php 8.2.30-1.module+el8.10.0+40072+7124940c RLSA-2026:1412
Rocky Linux 8 php-pear 1:1.10.13-1.module+el8.10.0+1605+02e07af7 RLSA-2026:2470, RLSA-2026:1412
Rocky Linux 8 php-pecl-apcu 5.1.18-1.module+el8.10.0+1912+72767185 RLSA-2026:2470, RLSA-2026:1412
Rocky Linux 8 php-pecl-rrd 2.0.1-1.module+el8.4.0+414+2e7afcdd RLSA-2026:2470, RLSA-2026:1412
Rocky Linux 8 php-pecl-xdebug 2.9.5-1.module+el8.10.0+1912+72767185 RLSA-2026:2470
Rocky Linux 8 php-pecl-xdebug3 3.2.2-2.module+el8.10.0+1596+477f03f8 RLSA-2026:1412
Rocky Linux 8 php-pecl-zip 1.18.2-1.module+el8.10.0+1912+72767185 RLSA-2026:2470, RLSA-2026:1412
ReleasePackageFixed inAdvisory
SLES 15 SP7 php8 +5 8.3.29-150700.3.9.1 SUSE-SU-2026:0086-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 php8 +4 8.4.16-160000.1.1 SUSE-SU-2026:20146-1
SLES 16.0 php8 +4 8.4.16-160000.1.1 SUSE-SU-2026:20146-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php8 8.4.16-1.1 openSUSE-SU-2025:15837-1
openSUSE Leap 16.0 php8 +5 8.4.16-160000.1.1 openSUSE-SU-2026:20113-1
openSUSE Leap 15.6 php8 +5 8.2.30-150600.3.25.1 SUSE-SU-2026:0071-1
ReleasePackageFixed inAdvisory
Alpine v3.24 php83 8.3.29-r0 —
Alpine v3.24 php84 8.4.16-r0 —
Alpine v3.24 php85 8.5.1-r0 —
Alpine v3.23 php83 8.3.29-r0 —
Alpine v3.23 php84 8.4.16-r0 —
Alpine v3.23 php85 8.5.1-r0 —
Alpine v3.22 php82 8.2.30-r0 —
Alpine v3.22 php83 8.3.29-r0 —
Alpine v3.22 php84 8.4.16-r0 —
Alpine v3.19 php81 8.1.34-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 php8.1 +26 8.1.34-1.amzn2023.0.1 ALAS2023-2025-1355
Amazon Linux 2023 php8.2 +27 8.2.30-1.amzn2023.0.1 ALAS2023-2025-1354
Amazon Linux 2023 php8.3 +28 8.3.29-1.amzn2023.0.1 ALAS2023-2025-1353
Amazon Linux 2023 php8.4 +27 8.4.16-1.amzn2023.0.1 ALAS2023-2025-1352

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 php 8.3.29-1 —
Azure Linux 2 (CBL-Mariner) php 8.1.34-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 php +23 8.3.29-1.el10_1 ELSA-2026-1628
Oracle Linux 9 apcu-panel +2 5.1.23-1.module+el9.4.0+90261+af5cc950 ELSA-2026-1429, ELSA-2026-1409
Oracle Linux 9 php +23 8.0.30-5.el9_7 ELSA-2026-2799, ELSA-2026-1429, ELSA-2026-1409
Oracle Linux 9 php-pecl-redis6 6.1.0-2.module+el9.6.0+90525+5083e899 ELSA-2026-1429
Oracle Linux 9 php-pecl-rrd 2.0.3-4.module+el9.4.0+90261+af5cc950 ELSA-2026-1429, ELSA-2026-1409
Oracle Linux 9 php-pecl-xdebug3 3.2.2-2.module+el9.4.0+90261+af5cc950 ELSA-2026-1429, ELSA-2026-1409
Oracle Linux 9 php-pecl-zip 1.22.3-1.module+el9.4.0+90261+af5cc950 ELSA-2026-1429, ELSA-2026-1409
Oracle Linux 8 apcu-panel +2 5.1.18-1.module+el8.10.0+90472+f810484b ELSA-2026-2470, ELSA-2026-1412
Oracle Linux 8 libzip +2 1.6.1-1.module+el8.10.0+90472+f810484b ELSA-2026-2470, ELSA-2026-1412
Oracle Linux 8 php +25 7.4.33-3.module+el8.10.0+90781+f71ba651 ELSA-2026-2470, ELSA-2026-1412
Oracle Linux 8 php-pear 1:1.10.13-1.module+el8.10.0+90472+f810484b ELSA-2026-2470, ELSA-2026-1412
Oracle Linux 8 php-pecl-rrd 2.0.1-1.module+el8.10.0+90472+f810484b ELSA-2026-2470, ELSA-2026-1412
Oracle Linux 8 php-pecl-xdebug 2.9.5-1.module+el8.10.0+90472+f810484b ELSA-2026-2470
Oracle Linux 8 php-pecl-xdebug3 3.2.2-2.module+el8.10.0+90469+8883f508 ELSA-2026-1412
Oracle Linux 8 php-pecl-zip 1.18.2-1.module+el8.10.0+90472+f810484b ELSA-2026-2470, ELSA-2026-1412

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

  • 34zY/CVE-2025-14177 ★ 1 · May 18, 2026

    PHP getimagesize() CVE-2025-14177 - Heap Memory Leak Exploit Generator Fully functional exploit chain in Python

  • gl1tch0x1/PHP_8.1.x_Exploit ★ 1 · Apr 29, 2026

    Automated detection & exploitation of critical PHP vulnerabilities (CVE-2024-4577 bypass, CVE-2025-14177, CVE-2025-14180, CVE-2025-14178)

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 39

References