CVE-2017-9225

An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5

published May 24, 2017

CVSS
โ€”
EPSS
3%
Percentile
87.5
In the wild
Unconfirmed
What it is

๐Ÿ” A malformed regular expression could lead to some serious stack mischief! With Oniguruma 6.2.0, a sneaky code point can overflow the stack and create chaos! โš ๏ธ Think of this as a restaurant kitchen trying to expand its menu by adding too many items on a single order ticket. If the ticket spills over the edge, the kitchen might start mixing ingredients in ways nobody intended, leading to a real recipe for disaster! An attacker could exploit this vulnerability to potentially crash the service or corrupt memory, leading to unpredictable behavior. Imagine your application suddenly misbehaving or worse, crashing unexpectedly โ€” not great for user trust!

Put simply

Think of this as a restaurant kitchen trying to expand its menu by adding too many items on a single order ticket. If the ticket spills over the edge, the kitchen might start mixing ingredients in ways nobody intended, leading to a real recipe for disaster! This vulnerability stems from an out-of-bounds write in the Oniguruma library during regex compilation, specifically in the function onigenc_unicode_get_case_fold_codes_by_str(). A malformed regex can cause 4 bytes to be written beyond the allocated stack buffer, resulting in a classic stack buffer overflow.

What to do

An attacker could exploit this vulnerability to potentially crash the service or corrupt memory, leading to unpredictable behavior. Imagine your application suddenly misbehaving or worse, crashing unexpectedly โ€” not great for user trust! To patch this, update to Oniguruma version 6.2.1 or later, and ensure your Ruby or PHP installations are also up-to-date as they incorporate this library. Regularly auditing your dependencies can help keep your applications safe! You've got this! With a bit of attention, you'll have your stack safe and sound in no time! ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.03080 ยท 87.5th percentile
Published
2017-05-24T15:00Z
EPSS history
Timeline
  • 24 MAY 15:00Z
    An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5
    cvelistv5