PHP Group PHP
Information Leak of Memory in getimagesize
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 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
Fixed in 8.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1
Mitigation
Upgrade PHP to 8.1.34 or 8.2.30 or 8.3.29 or 8.4.16 or 8.5.1 or later.
References
- Vendor advisory github.com/php/php-src/security/advisories/GHS…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 pending · 1 informational
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 34zY/CVE-2025-14177 | 18 May 2026 +142 d | 1 | Pending · mkdir /quarantine/34zY__CVE-2025-14177-8677960edb82: permission denied |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| gl1tch0x1/PHP_8.1.x_Exploit | 29 Apr 2026 +122 d | 1 | Informational · detection
Flags · score 35
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.