CVE-2016-5770

Integer overflow in the SplFileObject::fread function in spl_directory.c in the SPL extension in PHP before 5.5.37 and 5.6.x before 5.6.23 allows remote…

published August 7, 2016

CVSS
—
EPSS
7%
Percentile
94.3
In the wild
Unconfirmed
What it is

⚠️ An integer overflow in PHP’s SplFileObject::fread function could turn a large request into a denial of service, like a restaurant that can't handle an enormous order of pizza! 🍕 Imagine a restaurant that gets overwhelmed by a single massive order, causing chaos in the kitchen. This vulnerability works similarly—sending a large integer to the fread function can cause it to crash, leading to service denial for everyone. If exploited, attackers can trigger a denial of service, leaving your application unresponsive—akin to patrons being left hungry and waiting endlessly for their meals! While there are no confirmed exploits, this could lead to performance issues that should not be ignored.

Put simply

Imagine a restaurant that gets overwhelmed by a single massive order, causing chaos in the kitchen. This vulnerability works similarly—sending a large integer to the fread function can cause it to crash, leading to service denial for everyone. This vulnerability arises from an integer overflow in the SplFileObject::fread function in PHP versions prior to 5.5.37 and 5.6.23. It allows attackers to supply a large integer argument, which can lead to unexpected behavior and service disruption.

What to do

If exploited, attackers can trigger a denial of service, leaving your application unresponsive—akin to patrons being left hungry and waiting endlessly for their meals! While there are no confirmed exploits, this could lead to performance issues that should not be ignored. To mitigate this issue, upgrade your PHP installation to version 5.5.37 or 5.6.23 or later. Implement input validation to limit the range of integers accepted by the fread function. Regularly audit your applications to ensure they are running secure versions of libraries. You've got this! Patch those vulnerabilities and keep your application running smoothly. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.07337 · 94.3th percentile
Published
2016-08-07T10:00Z
EPSS history
Timeline
  • 07 AUG 10:00Z
    Integer overflow in the SplFileObject::fread function in spl_directory.c in the SPL extension in PHP before 5.5.37 and 5.6.x before 5.6.23 allows remote…
    cvelistv5