Today's cybersecurity headlines are brought to you by ThreatPerspective


Ethical Hacking News

Ruby Releases Critical Fixes for Seven Regex and String Flaws, Warns of Proof-of-Concept Remote Code Execution


The Ruby programming language community has been presented with a critical update, as the maintainers of the platform have released fixes for seven memory-safety flaws in its regular expression engine and string case-conversion code. The severity of these flaws has been highlighted by the fact that five of them have been demonstrated to have proof-of-concept exploits, which can potentially be used to trigger remote code execution on a machine.

  • The Ruby programming language community has been updated with fixes for seven memory-safety flaws in its regular expression engine and string case-conversion code.
  • Five of the flaws have proof-of-concept exploits that can trigger remote code execution.
  • The flaws were identified through extensive testing and research by security experts.
  • The affected versions of Ruby include 4.0.0 through 4.0.9, 3.4.0 through 3.4.12, 3.3.13 and earlier, and 3.2 and earlier.
  • The maintainers of Ruby recommend that users move to a supported line of Ruby to avoid potential security risks.



  • The Ruby programming language community has been presented with a critical update, as the maintainers of the platform have released fixes for seven memory-safety flaws in its regular expression engine and string case-conversion code. The severity of these flaws has been highlighted by the fact that five of them have been demonstrated to have proof-of-concept exploits, which can potentially be used to trigger remote code execution on a machine.

    This update comes as a result of extensive testing and research by security experts, who have identified seven vulnerabilities in Ruby's code. These vulnerabilities include a one-byte heap overflow when Ruby changes the case of a string in certain single-byte encodings, such as ISO-8859-1 or Windows-1252, as well as a double free when Ruby compiles a crafted regular expression that uses a character-class intersection. Additionally, there is a heap overflow when the size of a compiled regular expression overflows during compilation, a heap overflow when a case change produces a result larger than 4 GiB, a heap overflow when Ruby turns a crafted compiled regular expression back into text with Regexp#to_s, an out-of-bounds read during case-insensitive matching, and an out-of-bounds read when Ruby matches a case-insensitive backreference against a crafted subject string.

    The severity of these flaws has been rated as follows: Critical (GHSA-34m4-m9fh-gqp5, GHSA-7x2q-68qv-6p8x, GHSA-3p8q-wmhx-vm2w), High (GHSA-87fm-7w84-j2px, GHSA-7whj-cfh7-xgm4, GHSA-wpqw-5qxg-m68r), and Moderate (GHSA-pvgc-g7gj-pv6h). The maintainers of Ruby have confirmed that proof-of-concept exploits for five of the critical flaws have been demonstrated, and that these exploits can potentially be used to trigger remote code execution.

    The project credits Stephan Lipp of Ada Logics and Anthropic with four of the findings, and baba__yaga, aphantom, Hiroya Fujinami, and Hiroshi SHIBATA with the other three. The fixes for these vulnerabilities have been released in the form of Ruby 4.0.10, 3.4.13, and 3.3.14.

    The maintainers of Ruby have emphasized that the severity of these flaws depends on how an application handles external input. The regex flaws require an application that builds a regular expression from input an attacker controls and then compiles or runs it. On the other hand, the two case-conversion flaws do not involve regular expressions at all, and fire when the application changes the case of a crafted string.

    The affected versions of Ruby include Ruby 4.0.0 through 4.0.9, fixed in 4.0.10, Ruby 3.4.0 through 3.4.12, fixed in 3.4.13, Ruby 3.3.13 and earlier, fixed in 3.3.14, and Ruby 3.2 and earlier, which are no longer supported. The project recommends that users move to a supported line of Ruby to avoid potential security risks.

    In addition to this update, the Ruby community has also experienced another round of security patches in October, which included fixes for compilation bugs GitLab found, which sat behind four critical GitLab flaws. This highlights the ongoing importance of keeping up-to-date with the latest security patches and updates for programming languages and applications.



    Related Information:
  • https://www.ethicalhackingnews.com/articles/Ruby-Releases-Critical-Fixes-for-Seven-Regex-and-String-Flaws-Warns-of-Proof-of-Concept-Remote-Code-Execution-ehn.shtml

  • https://thehackernews.com/2026/11/ruby-releases-fixes-for-7-regex-and.html


  • Published: Thu Nov 19 10:28:39 2026 by llama3.2 3B Q4_K_M













    © Ethical Hacking News . All rights reserved.

    Privacy | Terms of Use | Contact Us