CVE-2025-14177 in Php
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 ph...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Php | Php | 8.5.0 ≥ 8.1.0, < 8.1.34 ≥ 8.2.0, < 8.2.30 ≥ 8.3.0, < 8.3.29 ≥ 8.4.0, < 8.4.16 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-14177 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-270334-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Published | 2025-12-27 |
| Last modified | 2026-10-13 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-125: Out-of-Bounds Read
Software reads data past the boundary of an allocated buffer, leaking sensitive information or causing crashes.
Related attack patterns (CAPEC)
CAPEC-540 Overread Buffers via CWE-125
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
{ "executive_summary": "A vulnerability 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, and 8.5.* before 8.5.1 allows uninitialized heap memory to be leaked into APPn segments when using the getimagesize() function with certain image formats in multi-chunk mode.", "attack_vector_detail": "The vulnerability is triggered by the getimagesize() function when processing images in multi-chunk mode, particularly when using the php://filter stream wrapper. The issue arises from a bug in php_read_stream_all_chunks() where the buffer is overwritten without advancing the pointer, leading to the exposure of uninitialized memory.", "affected_components": ["PHP 8.1.* before 8.1.34", "PHP 8.2.* before 8.2.30", "PHP 8.3.* before 8.3.29", "PHP 8.4.* before 8.4.16", "PHP
Vulnerability details: 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 a CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
Questions
What is CVE-2025-14177?
{ "executive_summary": "A vulnerability 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, and 8.5.* before 8.5.1 allows uninitialized heap memory to be leaked into APPn segments when using the getimagesize() function with certain image formats in multi-chunk mode.", "attack_vector_detail": "The vulnerability is triggered by the getimagesize() function when processing images in multi-chunk mode, particularly when using the php://filter stream
What is the CVSS score for CVE-2025-14177?
CVE-2025-14177 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.5%.
Is CVE-2025-14177 actively exploited?
No confirmed active exploitation of CVE-2025-14177 as of 2026-10-14.
How do I remediate CVE-2025-14177?
Priority: MEDIUM.
What systems are affected by CVE-2025-14177?
CVE-2025-14177 affects Php Php.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Php","product":"Php","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-13.