• 公告ID (KylinSec-SA-2025-2906)

摘要:

rubygem-rack security update

安全等级: High

公告ID: KylinSec-SA-2025-2906

发布日期: 2025年9月28日

关联CVE: CVE-2025-46727  

  • 详细介绍

1. 漏洞描述

   

Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call.

Security Fix(es):

Rack is a modular Ruby web server interface. Prior to versions 2.2.14, 3.0.16, and 3.1.14, `Rack::QueryParser` parses query strings and `application/x-www-form-urlencoded` bodies into Ruby data structures without imposing any limit on the number of parameters, allowing attackers to send requests with extremely large numbers of parameters. The vulnerability arises because `Rack::QueryParser` iterates over each `&`-separated key-value pair and adds it to a Hash without enforcing an upper bound on the total number of parameters. This allows an attacker to send a single request containing hundreds of thousands (or more) of parameters, which consumes excessive memory and CPU during parsing. An attacker can trigger denial of service by sending specifically crafted HTTP requests, which can cause memory exhaustion or pin CPU resources, stalling or crashing the Rack server. This results in full service disruption until the affected worker is restarted. Versions 2.2.14, 3.0.16, and 3.1.14 fix the issue. Some other mitigations are available. One may use middleware to enforce a maximum query string size or parameter count, or employ a reverse proxy (such as Nginx) to limit request sizes and reject oversized query strings or bodies. Limiting request body sizes and query string lengths at the web server or CDN level is an effective mitigation.(CVE-2025-46727)

2. 影响范围

cve名称 产品 组件 是否受影响
CVE-2025-46727 V6 rubygem-rack Fixed

3. 影响组件

    rubygem-rack

4. 修复版本

   

V6

软件名称 架构 版本号
rubygem-rack noarch 2.2.4-12.ks6
rubygem-rack-help noarch 2.2.4-12.ks6

5. 修复方法


方法一:下载安装包进行升级安装
1、通过下载链接下载需要升级的升级包保存,如 xxx.rpm
2、通过rpm命令升级,如 rpm -Uvh xxx.rpm

方法二:通过软件源进行升级安装
1、保持能够连接上互联网
2、通过yum命令升级指定的包,如 yum install 包名

6. 下载链接

   

V6:

x86_64:

     rubygem-rack   

     rubygem-rack-help   

aarch64:

     rubygem-rack   

     rubygem-rack-help   

上一篇:KylinSec-SA-2025-2905 下一篇:KylinSec-SA-2025-2888