Today's cybersecurity headlines are brought to you by ThreatPerspective


Ethical Hacking News

Ruby 4.0.10 and 3.4.13 Released to Patch Seven Critical Flaws in Regular Expression Engine and String Case-Conversion Code




Ruby 4.0.10 and 3.4.13 have been released to patch seven critical flaws in Ruby's regular expression engine and string case-conversion code. The critical flaws, which have been assigned CVE numbers, can potentially allow attackers to execute arbitrary code on a machine by crafting specific inputs. The fixes are available in the latest versions of Ruby, and it is recommended that users upgrade to a supported version to avoid potential security risks.



  • Ruby versions 4.0.10, 3.4.13, and 3.3.14 have been released to address seven critical security flaws in the regular expression engine and string case-conversion code.
  • The critical flaws include heap overflows, one-byte heap overflows, double frees, and a one-byte heap overflow that can execute arbitrary code on a machine.
  • The fixes are available only for Ruby versions 4.0.10, 3.4.13, and 3.3.14, and users of older versions should upgrade as soon as possible.
  • The project's maintainers have credited four researchers with the findings and recommended that users check their application's gemset and framework to determine if an update is necessary.
  • In addition to the critical flaws, two weaker flaws have been identified, including a heap overflow and an out-of-bounds read during case-insensitive matching.



  • The popular open-source programming language Ruby has recently been updated to version 4.0.10, 3.4.13, and 3.3.14, respectively, as part of an effort to address seven critical flaws in its regular expression engine and string case-conversion code. According to the project's maintainers, the vulnerabilities, which have been assigned CVE numbers, can potentially allow attackers to execute arbitrary code on a machine by crafting specific inputs. The fixes are available in the latest versions of Ruby, and it is recommended that users upgrade to a supported version to avoid potential security risks.

    The critical flaws, which include three, are caused by heap overflows, one-byte heap overflows, and double frees, when Ruby changes the case of a string in certain single-byte encodings, such as ISO-8859-1 or Windows-1252. Another critical flaw, tracked as CVE-2026-132825, is caused by a one-byte heap overflow when Ruby changes the case of a string in certain single-byte encodings. This flaw is considered critical because it has a remote-code-execution PoC and can be reached over the network without authentication in the default configuration of Rails and classic-style Sinatra applications.

    The project's maintainers have credited 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 the critical flaws are available in Ruby 4.0.10, 3.4.13, and 3.3.14, respectively.

    It is worth noting that the fixes are only available for Ruby versions 4.0.10, 3.4.13, and 3.3.14, and users of older versions should upgrade as soon as possible to avoid potential security risks. The project's maintainers recommend that users check their application's gemset and framework to determine if an update is necessary.

    The release of the fixes for the critical flaws in Ruby's regular expression engine and string case-conversion code is an important step in ensuring the security of Ruby applications. As the project's maintainers have noted, the vulnerabilities can potentially allow attackers to execute arbitrary code on a machine by crafting specific inputs. Therefore, it is essential that users upgrade to a supported version of Ruby as soon as possible to avoid potential security risks.

    In addition to the critical flaws, the project has also identified two weaker flaws, which have been assigned CVE numbers. One of these flaws, tracked as GHSA-87fm-7w84-j2px, is a heap overflow when a case change produces a result larger than 4 GiB. Another flaw, tracked as GHSA-wpqw-5qxg-m68r, is an out-of-bounds read during case-insensitive matching.

    The project has also released fixed versions of Ruby for the affected ranges, including 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; and Ruby 3.3.13 and earlier, fixed in 3.3.14.

    The release of the fixes for the critical flaws in Ruby's regular expression engine and string case-conversion code is an important step in ensuring the security of Ruby applications. As the project's maintainers have noted, the vulnerabilities can potentially allow attackers to execute arbitrary code on a machine by crafting specific inputs. Therefore, it is essential that users upgrade to a supported version of Ruby as soon as possible to avoid potential security risks.

    In conclusion, the release of the fixes for the critical flaws in Ruby's regular expression engine and string case-conversion code is an important step in ensuring the security of Ruby applications. As the project's maintainers have noted, the vulnerabilities can potentially allow attackers to execute arbitrary code on a machine by crafting specific inputs. Therefore, it is essential that users upgrade to a supported version of Ruby as soon as possible to avoid potential security risks.



    Related Information:
  • https://www.ethicalhackingnews.com/articles/Ruby-4010-and-3413-Released-to-Patch-Seven-Critical-Flaws-in-Regular-Expression-Engine-and-String-Case-Conversion-Code-ehn.shtml

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


  • Published: Fri Nov 20 03:02:18 2026 by llama3.2 3B Q4_K_M













    © Ethical Hacking News . All rights reserved.

    Privacy | Terms of Use | Contact Us