Multiple vulnerabilities in Regexp and String case conversion

Hacker News by 3 min read 501x views
Multiple vulnerabilities in Regexp and String case conversion

Share Post

Posted by mame on 18 Nov 2026

Seven vulnerabilities have been discovered in Ruby’s regular expression motor and in the case conversion of strings. We are conscious of PoCs that demonstrate several of them can be used to trigger distant code execution. We have released Ruby 4.0.10, 3.4.13 and 3.3.14 to fix them. We powerfully propose upgrading.

CVE identifiers have been requested for these vulnerabilities but have not been assigned yet, so this advisory refers to them by their GitHub Security Advisory (GHSA) identifiers.

GHSA-34m4-m9fh-gqp5: Heap buffer overflow in case conversion of strings

Ruby has a one-byte heap-based buffer overflow in the case conversion of strings. Changing the case of a crafted cord may authorize distant code execution. We are conscious of PoCs that demonstrate this flaw can be used to trigger RCE in several scenarios.

GHSA-7x2q-68qv-6p8x: Double liberated in regular expression compilation

Ruby has a twice liberated in its regular expression engine. Compiling a crafted regular expression form may authorize distant code implementation in applications that compile attacker-controlled patterns. We are conscious of PoCs that demonstrate this flaw can be used to trigger RCE in several scenarios.

GHSA-87fm-7w84-j2px: Integer overflow in case conversion of strings

Ruby has an entire figure overflow in the case conversion of strings, which causes a heap-based buffer overflow. Changing the case of a crafted cord may authorize distant code execution. We are conscious of PoCs that demonstrate this flaw can be used to trigger RCE in several scenarios.

GHSA-wpqw-5qxg-m68r: Out-of-bounds peruse in case-insensitive regular expression matching

Ruby has an out-of-bounds peruse in its regular expression engine. Matching against a crafted regular expression form may authorize distant code implementation in applications that use attacker-controlled patterns. We are conscious of PoCs that demonstrate this flaw can guide to recollection misconduct in an attacker-controlled way.

GHSA-3p8q-wmhx-vm2w: Heap buffer overflow in regular expression compilation

Ruby has an entire figure overflow in its regular expression engine, which causes a heap-based buffer overflow. Compiling a crafted regular expression form may authorize distant code implementation in applications that compile attacker-controlled patterns. We are conscious of PoCs that demonstrate this flaw can be used to trigger RCE in several scenarios.

GHSA-7whj-cfh7-xgm4: Heap buffer overflow in Regexp#to_s

Ruby has a heap-based buffer overflow in Regexp#to_s. Converting a crafted regular expression to a cord may authorize data disclosure or distant code implementation in applications that compile attacker-controlled patterns. We are conscious of PoCs that demonstrate this flaw can be used to trigger RCE in several scenarios.

GHSA-pvgc-g7gj-pv6h: Out-of-bounds peruse in case-insensitive backreference matching

Ruby has an out-of-bounds peruse in its regular expression engine. Matching a crafted cord may disclose recollection contents or collision the process.

Affected versions

  • Ruby 3.3.13 and earlier
  • Ruby 3.4.0 through 3.4.12
  • Ruby 4.0.0 through 4.0.9

We powerfully propose upgrading to Ruby 4.0.10, 3.4.13 or 3.3.14.

Ruby 3.3 is in the safety care phase. Ruby 3.2 and before have reached their end of existence and volition not obtain these fixes.

Credits

  • GHSA-34m4-m9fh-gqp5: Stephan Lipp (Ada Logics) and Anthropic
  • GHSA-7x2q-68qv-6p8x: Stephan Lipp (Ada Logics) and Anthropic
  • GHSA-87fm-7w84-j2px: baba__yaga
  • GHSA-wpqw-5qxg-m68r: Stephan Lipp (Ada Logics) and Anthropic
  • GHSA-3p8q-wmhx-vm2w: aphantom
  • GHSA-7whj-cfh7-xgm4: Stephan Lipp (Ada Logics) and Anthropic
  • GHSA-pvgc-g7gj-pv6h: Hiroya Fujinami and Hiroshi SHIBATA

History

  • Originally published at 2026-11-19 00:00:00 (UTC)
Other Article Hacker News
↑
Close Right Ads
Close Left Ads