CVE-2016-5114

sapi/fpm/fpm/fpm_log.c in PHP before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2 misinterprets the semantics of the snprintf return value, which allows…

published August 7, 2016

CVSS
—
EPSS
4%
Percentile
91.4
In the wild
Unconfirmed
What it is

⚠️ Watch out for sneaky strings! An unexpected long input in PHP could lead to leaking sensitive data or crashing your server. 🔥 This vulnerability is like a restaurant where a customer orders an excessively large meal that spills over onto neighboring tables — sensitive data spills out of the memory, or worse, the kitchen (server) gets overwhelmed and shuts down completely! An attacker can exploit this by sending a long URI, potentially revealing sensitive information from process memory or causing a denial of service. This may lead to system instability, impacting users and operations. The consequences can be significant if left unaddressed!

Put simply

This vulnerability is like a restaurant where a customer orders an excessively large meal that spills over onto neighboring tables — sensitive data spills out of the memory, or worse, the kitchen (server) gets overwhelmed and shuts down completely! The flaw in PHP's handling of snprintf return values in earlier versions allows for out-of-bounds reads and buffer overflows, creating a path for attackers to manipulate the process memory with a crafted long string. This affects PHP versions before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2.

What to do

An attacker can exploit this by sending a long URI, potentially revealing sensitive information from process memory or causing a denial of service. This may lead to system instability, impacting users and operations. The consequences can be significant if left unaddressed! Upgrade PHP to version 5.5.31 or higher, 5.6.17 or higher, or 7.0.2 or higher to patch this vulnerability. Additionally, review configuration settings, especially those involving logging, to ensure they are not susceptible to long input strings. Stay vigilant! You’ve got this! Follow these steps, and you’ll be the hero your server needs! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.04489 · 91.4th percentile
Published
2016-08-07T10:00Z
EPSS history
Timeline
  • 07 AUG 10:00Z
    sapi/fpm/fpm/fpm_log.c in PHP before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2 misinterprets the semantics of the snprintf return value, which allows…
    cvelistv5