CVE-2017-11362

In PHP 7.x before 7.0.21 and 7.1.x before 7.1.7, ext/intl/msgformat/msgformat_parse.c does not restrict the locale length, which allows remote attackers to…

published July 17, 2017

CVSS
—
EPSS
3%
Percentile
86.8
In the wild
Unconfirmed
What it is

⚠️ A long argument could bring your PHP application to its knees! An unchecked locale length in PHP's msgfmt_parse_message function could lead to a stack-based buffer overflow. 🔥 Think of it as a restaurant that tries to serve an endless order — the kitchen can only handle so many requests before it crashes under the pressure! In this case, an attacker could send a lengthy locale string and trigger a denial of service, causing your PHP application to crash unexpectedly. Depending on the specifics, there could be further impacts lurking in the shadows, making this a surprisingly sneaky vulnerability to overlook.

Put simply

Think of it as a restaurant that tries to serve an endless order — the kitchen can only handle so many requests before it crashes under the pressure! This vulnerability arises because the intl extension in PHP doesn't limit the length of the locale parameter in the msgfmt_parse_message function. This oversight can lead to a stack-based buffer overflow, crashing the application.

What to do

In this case, an attacker could send a lengthy locale string and trigger a denial of service, causing your PHP application to crash unexpectedly. Depending on the specifics, there could be further impacts lurking in the shadows, making this a surprisingly sneaky vulnerability to overlook. Upgrade PHP to version 7.0.21 or 7.1.7 or later to patch this vulnerability. It's also a good idea to review your code for any uses of the msgfmt_parse_message function to ensure that locale strings are properly validated before use. You’ve got this! Stay proactive, upgrade, and keep your PHP applications running smoothly! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02910 · 86.8th percentile
Published
2017-07-17T06:00Z
EPSS history
Timeline
  • 17 JUL 06:00Z
    In PHP 7.x before 7.0.21 and 7.1.x before 7.1.7, ext/intl/msgformat/msgformat_parse.c does not restrict the locale length, which allows remote attackers to…
    cvelistv5