CVE-2025-14177CWE-125

CVE-2025-14177

High · published December 28, 2025

CVSS v3.1
7.5
EPSS
1%
Percentile
42.5
In the wild
Unconfirmed
What it is

⚠️ A tiny oversight in the getimagesize() function could leak sensitive information from memory! This bug affects various PHP versions, so let’s dive in! 🔍 Think of it like a restaurant kitchen where a chef accidentally leaves some ingredients out on the counter while preparing a dish. If a nosy diner could reach over and grab those ingredients, they might discover something they shouldn't — just like an attacker might extract sensitive data from this uninitialized memory! 🍽️ This vulnerability may allow attackers to peek into sensitive heap data, potentially exposing critical information that should be tightly secured. It's not catastrophic, but it definitely raises eyebrows and could undermine the confidentiality of your server. If left unattended, it could turn into a bigger problem down the line!

Put simply

Think of it like a restaurant kitchen where a chef accidentally leaves some ingredients out on the counter while preparing a dish. If a nosy diner could reach over and grab those ingredients, they might discover something they shouldn't — just like an attacker might extract sensitive data from this uninitialized memory! 🍽️ The flaw exists in PHP's getimagesize() function, where uninitialized heap memory can be inadvertently disclosed due to a mismanaged buffer in the php_read_stream_all_chunks() function. This mishandling allows sensitive data to leak when reading images in multi-chunk mode.

What to do

This vulnerability may allow attackers to peek into sensitive heap data, potentially exposing critical information that should be tightly secured. It's not catastrophic, but it definitely raises eyebrows and could undermine the confidentiality of your server. If left unattended, it could turn into a bigger problem down the line! To protect your applications, upgrade PHP to version 8.1.34, 8.2.30, 8.3.29, 8.4.16, or 8.5.1, depending on your installed version. Always ensure to test your applications after the upgrade for any unexpected behaviors. Regular audits can also help in identifying and mitigating such issues in the future! You've got this! With these updates, you'll keep your server secure and running smoothly! 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00508 · 42.5th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2025-12-28T01:15Z
Affected products (5)
ProductVersionsFixed in
php/php≥ 8.1.0, < 8.1.348.1.34
php/php≥ 8.2.0, < 8.2.308.2.30
php/php≥ 8.3.0, < 8.3.298.3.29
php/php≥ 8.4.0, < 8.4.168.4.16
php/phpall versions—
References (1)
EPSS history
Timeline
  • 27 DEC 19:33Z
    Information Leak of Memory in getimagesize
    cvelistv5