Suspected Vietnam-Linked Hackers Target Southeast Asia in South China Sea Espionage Campaign · 11h Vulnerability in GNU m4 software · 16h Vulnerability in SMSEagle RCDevs OpenOTP SMS integration connector software · 17h Fragnesia: When a Firewall Becomes the Target · 1d Vulnerability in Chainlit software · 1d Vulnerabilities in GNU Screen software · 1d Drupal Warns of New Highly Critical Site Takeover Vulnerability Under Active Exploitation · 1d Hackers Exploit 10 Vulnerabilities Across Mitel, Juniper, Vates, and Danfoss Products · 1d VMware VMSA-0011: When the Hypervisor Becomes the Attack Surface · 2d Vulnerabilities in PrestaHelp phsuperpack module for PrestaShop · 2d Suspected Vietnam-Linked Hackers Target Southeast Asia in South China Sea Espionage Campaign · 11h Vulnerability in GNU m4 software · 16h Vulnerability in SMSEagle RCDevs OpenOTP SMS integration connector software · 17h Fragnesia: When a Firewall Becomes the Target · 1d Vulnerability in Chainlit software · 1d Vulnerabilities in GNU Screen software · 1d Drupal Warns of New Highly Critical Site Takeover Vulnerability Under Active Exploitation · 1d Hackers Exploit 10 Vulnerabilities Across Mitel, Juniper, Vates, and Danfoss Products · 1d VMware VMSA-0011: When the Hypervisor Becomes the Attack Surface · 2d Vulnerabilities in PrestaHelp phsuperpack module for PrestaShop · 2d
🛡️
ACyber Sentinel 安全评估团队
← 返回
⚡ 情报报告

Ruby2Shell:一个字节溢出导致远程代码执行

Ruby已成为最新引起严重安全关注的编程语言,因披露了Ruby2Shell,一个基于堆的缓冲区溢出漏洞,该漏洞可能允许在易受攻击的环境中进行远程代码执行。该漏洞于2026年11月19日披露,影响Ruby的字符串大小写转换功能。特别有趣的是,似乎普通的操作,例如将字符串转换为大写,可能成为内存损坏的入口点。发生了什么?该漏洞源于Ruby在处理某些非UTF-8字符编码时如何处理字符串大小写转换。例如,德语字符ß在转换为大写时扩展为SS。在特定编码条件下,Ruby错误地计算所需的输出缓冲区大小。这可能导致一个字节的堆缓冲区溢出,允许攻击者覆盖相邻内存。根据应用程序和内存布局,后果可能包括应用程序崩溃、内存损坏以及潜在的任意代码执行。该漏洞被追踪为CVE-2026-132825,也被称为Ruby2Shell。

为什么这令人担忧?暴露并不一定仅限于在其业务逻辑中明确执行字符串转换的应用程序。Ruby on Rails和经典风格的Sinatra应用程序使用Rack中间件,可以处理HTTP方法覆盖请求。这在到达应用程序的身份验证控制之前创建了一个潜在的路径到易受攻击的功能。攻击者可以构造一个特别构造的多部分HTTP请求,包含恶意编码的输入,以触发易受攻击的操作。这使得面向互联网的Ruby应用程序特别重要进行调查。然而,利用取决于受影响的运行时、请求处理路径和攻击者控制的输入的编码。不能假设每个Ruby部署都同样暴露。

受影响的版本是什么?易受攻击的Ruby版本包括:Ruby 3.3.13及更早版本。Ruby 3.4.0至3.4.12。Ruby 4.0.0至4.0.9。Ruby维护者已在以下版本中发布安全修复:Ruby 3.3.14,Ruby 3.4.13,Ruby 4.0.10。Ruby 3.2及更早版本是停止维护的版本,不再接收上游安全修复。担忧还扩展到捆绑其自身Ruby运行时的自托管平台。GitLab、GitHub企业服务器、Mastodon、OpenProject、Discourse和Chatwoot在安全研究中被突出提及。组织应验证精确的产品版本和捆绑的运行时,而不是假设每个部署都受到影响。

安全团队应该做什么?这不是一个仅通过检查操作系统安装的Ruby包来解决的漏洞。安全团队应识别应用服务器、容器、CI/CD环境和自托管平台中的每个Ruby运行时。优先考虑面向互联网的Rails和经典风格的Sinatra部署,验证是否可以访问易受攻击的中间件路径,并升级到适当的修补Ruby版本。在应用程序无法立即升级的情况下,限制对受信网络的暴露,并避免处理受影响的旧编码中的不受信输入。将输入规范化为UTF-8可以在特定场景中减少暴露,但不能替代应用安全更新。

相关漏洞

CVE-2026-126714 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-126714 - Partially overwritten session files can lead to remote code execution
Partially overwritten session files can lead to remote code execution. The files session save handler, which is the default, writes updated session data into the existing session file without first clearing it. If a write is interrupted, the file can contain the beginning of the new session followed by the end of the old one, and bytes of an ordinary string can later be unserialized as objects. An attacker who can influence the session data, for example through session upload progress, and interrupt a write at a suitable point may inject objects, which can lead to code execution when the application contains a suitable gadget chain. Session data can also be corrupted. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-132825 CVSS 7.4 HIGH Received
CVE-2026-132825 - Ruby Heap-Based Buffer Overflow in Case Conversion
Ruby before 3.3.14, 3.4.13, and 4.0.10 has a heap-based buffer overflow during case conversion. One byte can be written outside a buffer for, for example, ISO-8859-1 or Windows-1252.