CVE-2016-4540

The grapheme_stripos 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

⚠️ A negative offset in the grapheme_stripos function could crash your PHP application faster than a dropped ice cream cone on a hot day! 🍦 Think of the grapheme_stripos function as a library where the librarian confusedly tries to locate a book using a negative shelf number – it ends up in total disarray! Without proper checks, this can lead to access violations like an unwanted book thrown out of the library! If exploited, an attacker could trigger a denial of service, causing your PHP application to crash unexpectedly. While the impact is currently unspecified, it could potentially lead to further vulnerabilities depending on the context of the application.

Put simply

Think of the grapheme_stripos function as a library where the librarian confusedly tries to locate a book using a negative shelf number – it ends up in total disarray! Without proper checks, this can lead to access violations like an unwanted book thrown out of the library! This vulnerability in the grapheme_stripos function allows for an out-of-bounds read due to the mishandling of negative offsets, making it possible for attackers to cause a denial of service by reading unintended memory areas.

What to do

If exploited, an attacker could trigger a denial of service, causing your PHP application to crash unexpectedly. While the impact is currently unspecified, it could potentially lead to further vulnerabilities depending on the context of the application. To mitigate this, upgrade your PHP to versions 5.5.35, 5.6.21, or 7.0.6 and above. Regularly audit your PHP applications for dependencies on vulnerable versions and implement proper input validation. 🛡️ You've got this! Keep your PHP updated, and you'll be the security hero of your codebase! 🦸‍♂️

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_stripos 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