首页›Ruby News›文章

Regexp compilation fixes related to GitLab's CVE-2026-89078, CVE-2026-93577, CVE-2026-97229 and CVE-2026-110264

2026年10月23日

AI 摘要 AI 生成,可能有误

Ruby 已发布 4.0.9、3.4.12 和 3.3.13 版本,以修复其 Onigmo 正则表达式引擎中的缺陷。GitLab 发现,在编译攻击者可控的模式时,这些缺陷可能导致内存损坏和远程代码执行,对应 CVE-2026-89078、CVE-2026-93577、CVE-2026-97229 和 CVE-2026-110264。只有那些从不受信任的输入编译正则表达式的应用程序才会受到影响(例如通过 Regexp.new 或通过字符串插值构造正则表达式字面量),而且超时或长度限制并不能防范这些缺陷。建议用户升级到已修复的版本,或避免从不受信任的输入编译正则表达式。Ruby 已发布安全公告,将这些内存损坏问题视为漏洞。

We have released Ruby 4.0.9, 3.4.12 and 3.3.13. They fix several bugs in Ruby’s regular expression engine (Onigmo) that GitLab found could be used for remote code execution on GitLab servers. GitLab published four CVEs for these issues, and the Ruby releases contain the fixes for the underlying bugs in Ruby.

Background

GitLab compiles regular expressions supplied by its users, such as patterns in CI configuration, with Regexp.new. GitLab found that specially crafted patterns could corrupt memory while Ruby compiles them, and that this could be turned into remote code execution on GitLab servers. GitLab addressed these issues in its own releases by patching the Ruby it ships, and assigned the following CVE identifiers:

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Ruby News

Security advisories: multiple vulnerabilities in Regexp and String case conversion

AI 摘要Seven vulnerabilities have been discovered in Ruby's regular expression engine and string case conversion, some of which have proof-of-concept exploits that can trigger remote code execution. The flaws affect Ruby 3.3.13 and earlier, 3.4.0 through 3.4.12, and 4.0.0 through 4.0.9, and have been fixed in Ruby 4.0.10, 3.4.13, and 3.3.14. Users are strongly recommended to upgrade, though CVE identifiers have not yet been assigned, so the advisories use GitHub Security Advisory (GHSA) identifiers.

Ruby 3.3.14 Released

AI 摘要Ruby 3.3.14 has been released, including security fixes for multiple vulnerabilities in Regexp and String case conversion. Starting with this release, Ruby 3.3 will also receive backported bug fixes rather than security fixes only, so the phase has been renamed from the security maintenance phase to the legacy maintenance phase, with official support still scheduled to end at the end of March 2027. The release includes download links and checksums for the tar.gz, tar.xz, and zip packages, with further details available on GitHub releases.

Ruby 3.4.13 Released

AI 摘要Ruby 3.4.13 has been released, including security fixes for multiple vulnerabilities in Regexp and String case conversion, along with other bug fixes. Download links and checksums for the tar.gz, tar.xz, and zip packages are provided. The release thanks the many committers, developers, and users who contributed bug reports.

Ruby 4.0.10 Released

AI 摘要Ruby 4.0.10 has been released, featuring security fixes for multiple vulnerabilities in Regexp and String case conversion, along with additional bug fixes. Download links for the tar.gz, tar.xz, and zip packages are provided with checksum details. The release credits many committers, developers, and users who contributed bug reports.

Ruby 3.3.13 Released

AI 摘要Ruby 3.3.13 has been released with security fixes, including an update to the default resolv gem (version 0.3.2) that addresses CVE-2026-80212 and CVE-2026-80213. As an exception during Ruby 3.3's security maintenance phase, this release also includes Regexp compilation bug fixes related to several GitLab CVEs (CVE-2026-89078, CVE-2026-93577, CVE-2026-97229, and CVE-2026-110264). Further details are available on the GitHub releases page.