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
CVE-2016-4540 is a critical-severity flaw (CVSS 9.8) affecting fedora, leap, php. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via a negative offset.
Why this priority
- Critical severity
- EPSS top 7%: very likely to be exploited
- Public exploit reference
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 6.1% (top 7%) |
| CISA exploited list | No |
| Published | 2016-05-22 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2016-4540?
fedora: mitigate or apply the listed mitigation; leap: mitigate or apply the listed mitigation; php: upgrade to newer than 5.5.34. Exact commands for each OS are on this page.
Is CVE-2016-4540 being exploited?
CVE-2016-4540 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2016-4540 affect?
CVE-2016-4540 affects fedora, leap, php. Severity is critical (CVSS 9.8). 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 cause a denial of service (out-of-bounds read) or possibly have unspecified othe
How urgent is CVE-2016-4540?
Priority 73/100. Critical severity; EPSS top 7%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action; On your watchlist
Software pages
Related CVEs
- CVE-2026-54231 MEDIUM 5.5 MITIGATE MITIGATE A content injection vulnerability was found in the ABRT post-create event handler scripts in libreport
- CVE-2024-3056 HIGH 7.7 UPGRADE DOWNGRADE A flaw was found in Podman
- CVE-2024-2002 HIGH 7.5 UPGRADE MITIGATE A double-free vulnerability was found in libdwarf
- CVE-2024-1151 MEDIUM 5.5 MITIGATE MITIGATE A vulnerability was reported in the Open vSwitch sub-component in the Linux Kernel
- CVE-2024-1062 MEDIUM 5.5 UPGRADE DOWNGRADE A heap overflow flaw was found in 389-ds-base