CVE-2019-13224

A use-after-free in onig_new_deluxe() in regext.c in Oniguruma 6.9.2 allows attackers to potentially cause information disclosure, denial of service, or…

published July 10, 2019

CVSS
—
EPSS
4%
Percentile
90.6
In the wild
Unconfirmed
What it is

⚠️ A crafty regex could turn your server into a playground for attackers! With a use-after-free in Oniguruma 6.9.2, just the wrong pattern can trigger chaos. 🔥 Think of Oniguruma like a restaurant kitchen where recipes are prepared. If a chef mishandles an ingredient (the regex pattern), it can lead to an unexpected dish that spoils the whole menu, leaving diners confused and sick! This vulnerability opens the door to potential information disclosure or even a denial of service attack. An attacker could craft a regex pattern that disrupts services, or in the worst-case scenario, enables code execution, leading to total mayhem within your systems. Yikes!

Put simply

Think of Oniguruma like a restaurant kitchen where recipes are prepared. If a chef mishandles an ingredient (the regex pattern), it can lead to an unexpected dish that spoils the whole menu, leaving diners confused and sick! The vulnerability arises from a use-after-free flaw in the onig_new_deluxe() function in regext.c. This means that memory that was supposed to be freed is still being accessed, which could lead to unexpected behaviors like crashes or arbitrary code execution upon providing a specially crafted regex pattern.

What to do

This vulnerability opens the door to potential information disclosure or even a denial of service attack. An attacker could craft a regex pattern that disrupts services, or in the worst-case scenario, enables code execution, leading to total mayhem within your systems. Yikes! To mitigate this risk, make sure to upgrade to Oniguruma version 6.9.3 or later, if available. Additionally, review any applications that utilize Oniguruma, especially Ruby, PHP, or Rust libraries, to ensure they have the latest patches applied. Regular audits on regex usage can also help prevent any mishaps! You've got this! Stay vigilant and proactive, and your systems will be safe and sound! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.04047 · 90.6th percentile
Published
2019-07-10T13:50Z
EPSS history
Timeline
  • 10 JUL 13:50Z
    A use-after-free in onig_new_deluxe() in regext.c in Oniguruma 6.9.2 allows attackers to potentially cause information disclosure, denial of service, or…
    cvelistv5