CVE-2017-9228

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
6%
Percentile
93.5
In the wild
Unconfirmed
What it is

⚠️ An uninitialized variable could lead to heap corruption! In Oniguruma 6.2.0, an improper state transition creates a sneaky path that could open the door for out-of-bounds writes. 😱 Think of it like a train station where the signal operator mixes up the tracks. A train could end up on a wrong path, leading to a collision! Here, the heap corruption happens when a critical variable isn't set correctly, resulting in the wrong memory being accessed. This could lead to crashes or unpredictable behavior in applications that rely on Oniguruma for regex operations—imagine your app suddenly misbehaving! Though there's no known exploit currently, the potential for memory corruption could give attackers a route to exploit vulnerabilities.

Put simply

Think of it like a train station where the signal operator mixes up the tracks. A train could end up on a wrong path, leading to a collision! Here, the heap corruption happens when a critical variable isn't set correctly, resulting in the wrong memory being accessed. The issue stems from the `bitset_set_range()` function failing to handle an uninitialized variable properly. When parsing character classes, a state transition doesn't set a local variable, allowing for out-of-bounds memory writes during regex compilation.

What to do

This could lead to crashes or unpredictable behavior in applications that rely on Oniguruma for regex operations—imagine your app suddenly misbehaving! Though there's no known exploit currently, the potential for memory corruption could give attackers a route to exploit vulnerabilities. Upgrade Oniguruma to a safe version beyond 6.2.0, especially if you're using Ruby versions up to 2.4.1 or PHP versions up to 7.1.5. Regularly audit your dependencies and ensure you’re using the latest patches! You've got this! By updating and staying alert, you're helping keep the internet a safer place! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.06261 · 93.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