🔍 CVE-2025-61771

7.5
CVSS Score
HIGH
2025-10-07
2026-10-19 16:10
✅ 완료

🇰🇷 한글 설명

Rack 웹 서버 인터페이스의 Multipart::Parser에서 파일이 아닌 일반 텍스트 필드를 메모리에 전체 저장하는 취약점이 발견되었습니다. 공격자가 매우 큰 텍스트 필드를 포함한 요청을 보내면 메모리 점유율이 급증하여 서비스 거부(DoS) 상태가 발생할 수 있습니다.

💡 쉬운 설명

웹사이트에 아주 큰 글자 데이터를 한꺼번에 보내서 서버의 메모리를 가득 채워버리는 공격입니다. 이로 인해 서버가 멈추거나 제대로 작동하지 않을 수 있습니다.

🇺🇸 원문 (English)

Rack is a modular Ruby web server interface. In versions prior to 2.2.19, 3.1.17, and 3.2.2, ``Rack::Multipart::Parser` stores non-file form fields (parts without a `filename`) entirely in memory as Ruby `String` objects. A single large text field in a multipart/form-data request (hundreds of megabytes or more) can consume equivalent process memory, potentially leading to out-of-memory (OOM) conditions and denial of service (DoS). Attackers can send large non-file fields to trigger excessive memory usage. Impact scales with request size and concurrency, potentially leading to worker crashes or severe garbage-collection overhead. All Rack applications processing multipart form submissions are affected. Versions 2.2.19, 3.1.17, and 3.2.2 enforce a reasonable size cap for non-file fields (e.g., 2 MiB). Workarounds include restricting maximum request body size at the web-server or proxy layer (e.g., Nginx `client_max_body_size`) and validating and rejecting unusually large form fields at the application level.

📍 영향받는 시스템

Rack 버전 2.2.19, 3.1.17, 3.2.2 미만 버전

⚔️ 공격 벡터

multipart/form-data 요청 내에 파일이 아닌 대용량 텍스트 필드를 포함하여 전송

🛡️ 대응 방법

Rack을 최신 보안 패치 버전(2.2.19, 3.1.17, 3.2.2 이상)으로 업데이트하거나 프록시 계층에서 요청 본문 크기를 제한함

🔧 검증 코드

출력된 Rack 버전이 취약한 버전 범위(2.2.19, 3.1.17, 3.2.2 미만)에 해당하는지 확인

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