🔍 CVE-2026-33195

9.8
CVSS Score
CRITICAL
2026-03-24
2026-07-15 02:20
✅ 완료

🇰🇷 한글 설명

Rails의 Active Storage에서 DiskService#path_for 메서드가 파일 시스템 경로를 검증하지 않아 발생하는 취약점입니다. 공격자가 경로 탐색 시퀀스(예: ../)가 포함된 blob 키를 사용하면 서버의 임의 파일을 읽거나 쓰고 삭제할 수 있습니다.

💡 쉬운 설명

파일을 저장하는 기능에서 경로를 제대로 확인하지 않아, 공격자가 서버의 중요한 파일을 몰래 훔쳐보거나 망가뜨릴 수 있는 문제입니다. 파일 이름에 '상위 폴더로 이동'하는 특수 문자를 넣어 보안망을 빠져나가는 방식입니다.

🇺🇸 원문 (English)

Active Storage allows users to attach cloud and local files in Rails applications. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1, Active Storage's `DiskService#path_for` does not validate that the resolved filesystem path remains within the storage root directory. If a blob key containing path traversal sequences (e.g. `../`) is used, it could allow reading, writing, or deleting arbitrary files on the server. Blob keys are expected to be trusted strings, but some applications could be passing user input as keys and would be affected. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.

📍 영향받는 시스템

Rails Active Storage (8.1.2.1, 8.0.4.1, 7.2.3.1 미만 버전)

⚔️ 공격 벡터

사용자 입력값이 포함된 blob 키를 통해 경로 탐색(Path Traversal) 공격 수행

🛡️ 대응 방법

Rails 버전을 8.1.2.1, 8.0.4.1 또는 7.2.3.1 이상으로 업데이트

🔧 검증 코드

출력된 Rails 버전이 패치가 적용된 최소 버전(8.1.2.1, 8.0.4.1, 7.2.3.1)보다 낮은지 확인

Shell / Script
bundle exec gem list rails | grep -E '(\(8\.[0-1]\.[0-4]|7\.2\.[0-3])\)'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM WebSphere Application Server