Read the docs
TI-2025-12955 Aliases CVE-2025-14177

Information Leak of Memory in getimagesize

Priority MEDIUM 61CWE-125Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
Information disclosure
Confidentiality · integrity · availability
Low · None · None
Fix status
Partial Red Hat: 4 fixed, 4 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-125 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00504 43rd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial PHP (PHP Group): 8.1.34, 8.2.30, 8.3.29 +2Red Hat: 7 advisoriesRed Hat: 4 fixed, 4 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
PHP GroupPHPbefore 8.1.34; before 8.2.30; before 8.3.29; before 8.4.16; before 8.5.18.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1Patch availableCNA
  • PHP VendorPHP Group Affected before 8.1.34; before 8.2.30; before 8.3.29; before 8.4.16; before 8.5.1 Fixed in 8.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1 Patch available CNA

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*8.1.0 to before 8.1.34; 8.2.0 to before 8.2.30; 8.3.0 to before 8.3.29; 8.4.0 to before 8.4.16VulnerablePHP
cpe:2.3:a:php:php:8.5.0:*:*:*:*:*:*:*8.5.0VulnerablePHP
  • cpe:2.3:a:php:php:*:*:*:*:*:*:*:* Versions 8.1.0 to before 8.1.34; 8.2.0 to before 8.2.30; 8.3.0 to before 8.3.29; 8.4.0 to before 8.4.16 Vulnerable ·PHP
  • cpe:2.3:a:php:php:8.5.0:*:*:*:*:*:*:* Versions 8.5.0 Vulnerable ·PHP

Remediation

  • Fix · CNA PHP (PHP Group) Fixed in 8.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1

Red Hat 7 advisories

  • RHSA-2026:7614 Released 2026-04-10 · Red Hat rating Important
    Red Hat Hardened Images RPMs bug fix and enhancement update
    • Red Hat Hardened Images php-8.5.5-1.1.hum1@aarch64, php-8.5.5-1.1.hum1@src, php-8.5.5-1.1.hum1@x86_64 +47
  • RHSA-2026:2799 Released 2026-02-17 · Red Hat rating Moderate
    php security update
    • Red Hat Enterprise Linux AppStream (v. 9) php-8.0.30-5.el9_7, php-bcmath-8.0.30-5.el9_7, php-cli-8.0.30-5.el9_7 +22
  • RHSA-2026:2470 Released 2026-02-10 · Red Hat rating Moderate
    php:7.4 security update
    • Red Hat Enterprise Linux AppStream (v. 8) apcu-panel-5.1.18-1.module+el8.10.0+22485+a3539972.noarch::php:7.4, libzip-1.6.1-1.module+el8.10.0+22485+a3539972.aarch64::php:7.4, libzip-1.6.1-1.module+el8.10.0+22485+a3539972.ppc64le::php:7.4 +47
Show 4 more Red Hat advisories
  • RHSA-2026:1628 Released 2026-02-02 · Red Hat rating Important
    php security update
    • Red Hat Enterprise Linux AppStream (v. 10) php-8.3.29-1.el10_1, php-bcmath-8.3.29-1.el10_1, php-cli-8.3.29-1.el10_1 +22
  • RHSA-2026:1429 Released 2026-01-27 · Red Hat rating Important
    php:8.3 security update
    • Red Hat Enterprise Linux AppStream (v. 9) apcu-panel-5.1.23-1.module+el9.6.0+22647+1741ae35.noarch::php:8.3, php-8.3.29-1.module+el9.7.0+23852+76de6b03.aarch64::php:8.3, php-8.3.29-1.module+el9.7.0+23852+76de6b03.ppc64le::php:8.3 +47
  • RHSA-2026:1409 Released 2026-01-27 · Red Hat rating Important
    php:8.2 security update
    • Red Hat Enterprise Linux AppStream (v. 9) apcu-panel-5.1.23-1.module+el9.4.0+20748+b46899d2.noarch::php:8.2, php-8.2.30-1.module+el9.7.0+23849+7b831f17.aarch64::php:8.2, php-8.2.30-1.module+el9.7.0+23849+7b831f17.ppc64le::php:8.2 +47
  • RHSA-2026:1412 Released 2026-01-27 · Red Hat rating Important
    php:8.2 security update
    • Red Hat Enterprise Linux AppStream (v. 8) apcu-panel-5.1.23-1.module+el8.10.0+20770+a5eca186.noarch::php:8.2, libzip-1.7.3-1.module+el8.10.0+20770+a5eca186.aarch64::php:8.2, libzip-1.7.3-1.module+el8.10.0+20770+a5eca186.ppc64le::php:8.2 +47

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    PHP 8.1.34, 8.2.30 and 3 more versions

    3 records Highest priority Priority HIGH 2 HIGH, 1 MEDIUM

    Other records, highest priority first

    • TI-2025-12958 NULL Pointer Dereference in PDO quotingPriority HIGH 69
    • TI-2025-12956 Heap buffer overflow in array_merge()Priority HIGH 69

Vendor assessments

Red Hat

Red Hat rating: Low. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 10AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat OpenShift AI (RHOAI)AffectedNo fix yet: Fix deferred
Red Hat OpenShift Dev SpacesAffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux AppStream (v. 10)Fixed RHSA-2026:1628
Red Hat Enterprise Linux AppStream (v. 8)Fixed RHSA-2026:1412, RHSA-2026:2470
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2026:1409, RHSA-2026:1429, RHSA-2026:2799
Red Hat Hardened ImagesFixed RHSA-2026:7614
Not affected: 1 product
  • Red Hat Enterprise Linux 7

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-14177

References

  • TI-2024-04260 Argument Injection in PHP-CGI KEVCVSS 3.1CRITICAL 9.8
  • TI-2026-78794 PHP remote code execution via stale global state KEVCVSS 4.0CRITICAL 9.2
  • TI-2026-78793 Out-of-memory handling flaw in PHP allows remote code execution KEVCVSS 4.0CRITICAL 9.2
  • TI-2024-01743 Command injection via array-ish $command parameter of proc_open() CVSS 3.1CRITICAL 9.4
  • TI-2022-13555 PDO::quote() may return unquoted string CVSS 3.1CRITICAL 9.1
  • TI-2024-10408 Reference counting in php_request_shutdown causes Use-After-Free CVSS 4.0CRITICAL 9.2
See all 107 →

Sources