Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsA fix was pushed into the master branch but not yet published.
Affected versions of this package are vulnerable to Out-of-bounds Write in the rb_reg_str_with_term() function in re.c, which implements Regexp#to_s. An attacker can write past the end of a heap buffer when Regexp#to_s re-parses the pattern source through Onigmo without first normalizing it with rb_reg_preprocess(), producing information disclosure or remote code execution. Exploitation requires an application to call to_s on, or interpolate, a Regexp compiled from attacker-controlled input.