A double free was found in the Regexp compiler in Ruby 3.x before 3.0.4 and 3.1.x before 3.1.2. If a victim attempts to create a Regexp from untrusted user input, an attacker may be able to write to unexpected memory locations.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HRuby Lang Ruby
APPRuby-Lang3.0.0 – 3.0.4 (excl.)3.1.0 – 3.1.2 (excl.)
🟢
PATCH AVAILABLE
Vendor update available. Deploy in standard maintenance cycle.
CWE
References
Related vulnerabilities
CVE-2016-2338CRITICAL9.8PL ✓same product
Heap overflow w Ruby Psych::Emitter start_document — RCE
CVE-2021-41816CRITICAL9.8PL ✓same product
Integer overflow w CGI.escape_html w Ruby — przepełnienie bufora
CVE-2011-4121CRITICAL9.8PL ✓same product
Ruby OpenSSL: błędna generacja kluczy prywatnych RSA (wykładnik = 1)
CVE-2018-16395CRITICAL9.8PL ✓same product
Błędne porównanie obiektów X.509 w bibliotece OpenSSL dla Ruby
CVE-2018-8780CRITICAL9.1PL ✓same product
Path traversal w metodach Dir Ruby przez brak walidacji znaków NULL