🔍 CVE-2025-46727

7.5
CVSS Score
HIGH
2025-05-07
2026-06-17 09:26
✅ 완료

🇰🇷 한글 설명

Rack 웹 서버 인터페이스의 QueryParser가 파라미터 개수에 제한을 두지 않아 발생하는 취약점입니다. 공격자가 수십만 개의 파라미터를 포함한 요청을 보내면 메모리와 CPU 자원을 과도하게 소모하여 서비스 거부(DoS) 상태를 유발할 수 있습니다.

💡 쉬운 설명

웹사이트에 한 번에 너무 많은 정보를 보내서 서버를 과부하 상태로 만드는 공격입니다. 이로 인해 서버가 멈추거나 응답하지 못하게 되어 서비스 이용이 불가능해질 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Rack versions prior to 2.2.14, 3.0.16, and 3.1.14

⚔️ 공격 벡터

수많은 파라미터(&로 구분된 키-값 쌍)가 포함된 특수하게 조작된 HTTP 요청 전송

🛡️ 대응 방법

Rack을 2.2.14, 3.0.16 또는 3.1.14 이상의 버전으로 업데이트하거나, Nginx와 같은 리버스 프록시를 통해 요청 크기를 제한합니다.

🔧 검증 코드

출력된 Rack의 버전을 확인하여 취약한 버전(2.2.14, 3.0.16, 3.1.14 미만)인지 체크합니다.

Shell / Script
gem list rack

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Nginx