🔍 CVE-2021-32762

7.5
CVSS Score
HIGH
2021-10-04
2026-06-17 03:53
✅ 완료

🇰🇷 한글 설명

Redis의 redis-cli 및 redis-sentinel 서비스가 특수하게 제작된 대규모 multi-bulk 네트워크 응답을 처리할 때 정수 오버플로우 취약점이 발생할 수 있습니다. 이는 hiredis 라이브러리가 calloc() 함수 호출 전 오버플로우 검사를 수행하지 않아 발생하며, 오버플로우 검사를 수행하지 않는 힙 할당기를 사용하는 시스템에 영향을 미칩니다.

💡 쉬운 설명

데이터베이스 도구가 너무 큰 데이터를 처리하려다 계산 오류를 일으켜 프로그램이 비정상적으로 작동할 수 있는 문제입니다. 다만, 최신 운영체제나 기본 설정에서는 시스템이 스스로 이를 방어하므로 실제 위험은 낮습니다.

🇺🇸 원문 (English)

Redis is an open source, in-memory database that persists on disk. The redis-cli command line tool and redis-sentinel service may be vulnerable to integer overflow when parsing specially crafted large multi-bulk network replies. This is a result of a vulnerability in the underlying hiredis library which does not perform an overflow check before calling the calloc() heap allocation function. This issue only impacts systems with heap allocators that do not perform their own overflow checks. Most modern systems do and are therefore not likely to be affected. Furthermore, by default redis-sentinel uses the jemalloc allocator which is also not vulnerable. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14.

📍 영향받는 시스템

Redis 6.2.5 이하, 6.0.15 이하, 5.0.13 이하 버전 (hiredis 라이브러리 사용 시)

⚔️ 공격 벡터

조작된 대규모 multi-bulk 네트워크 응답을 전송하여 정수 오버플로우 유발

🛡️ 대응 방법

Redis를 6.2.6, 6.0.16 또는 5.0.14 이상의 버전으로 업데이트

🔧 검증 코드

출력된 버전이 취약점이 해결된 버전(6.2.6, 6.0.16, 5.0.14 이상)인지 확인

Shell / Script
redis-server --version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Redis