CVE-2016-4541

The grapheme_strpos function in ext/intl/grapheme/grapheme_string.c in PHP before 5.5.35, 5.6.x before 5.6.21, and 7.x before 7.0.6 allows remote attackers to…

published May 22, 2016

CVSS
—
EPSS
6%
Percentile
93.3
In the wild
Unconfirmed
What it is

⚠️ Just a negative offset can trigger chaos! The grapheme_strpos function in PHP is vulnerable to an out-of-bounds read, opening the door for a denial of service. 🛑 Think of it like a waiter who accidentally serves a dish that isn’t on the menu — it causes confusion and makes the kitchen slow down as they scramble to fix the mistake. In this case, the waiter (the function) is reading from a menu (data) that’s gone awry due to a negative number. This little hiccup can lead to a denial of service, where legitimate users are left waiting in frustration as the system struggles to handle the mishap. In the worst-case scenario, this could also open the door to other unspecified impacts that could leave users at risk.

Put simply

Think of it like a waiter who accidentally serves a dish that isn’t on the menu — it causes confusion and makes the kitchen slow down as they scramble to fix the mistake. In this case, the waiter (the function) is reading from a menu (data) that’s gone awry due to a negative number. The grapheme_strpos function has a flaw that allows remote attackers to cause an out-of-bounds read by sending a negative offset, which can disrupt normal operation.

What to do

This little hiccup can lead to a denial of service, where legitimate users are left waiting in frustration as the system struggles to handle the mishap. In the worst-case scenario, this could also open the door to other unspecified impacts that could leave users at risk. Upgrade PHP to at least version 5.5.35, 5.6.21, or 7.0.6 to eliminate this vulnerability. Make it a habit to keep your system updated, and ensure to review your code for similar issues to bolster your defenses! You've got this! Following these steps will help you maintain a solid security posture. 🦸‍♀️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.06063 · 93.3th percentile
Published
2016-05-22T01:00Z
EPSS history
Timeline
  • 22 MAY 01:00Z
    The grapheme_strpos function in ext/intl/grapheme/grapheme_string.c in PHP before 5.5.35, 5.6.x before 5.6.21, and 7.x before 7.0.6 allows remote attackers to…
    cvelistv5