🔍 CVE-2021-32687

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

🇰🇷 한글 설명

Redis의 모든 버전에서 발생하는 정수 오버플로 취약점으로, 힙 메모리를 손상시켜 임의의 데이터를 유출하거나 원격 코드 실행(RCE)을 유발할 수 있습니다. 공격자는 set-max-intset-entries 설정을 매우 큰 값으로 변경하고 특수하게 제작된 명령어를 사용하여 이를 악용합니다.

💡 쉬운 설명

데이터베이스 프로그램의 숫자 계산 오류를 이용해 컴퓨터의 메모리를 망가뜨리는 취약점입니다. 이를 통해 해커가 중요한 정보를 훔쳐보거나 컴퓨터를 마음대로 조종할 수 있습니다.

🇺🇸 원문 (English)

Redis is an open source, in-memory database that persists on disk. An integer overflow bug affecting all versions of Redis can be exploited to corrupt the heap and potentially be used to leak arbitrary contents of the heap or trigger remote code execution. The vulnerability involves changing the default set-max-intset-entries configuration parameter to a very large value and constructing specially crafted commands to manipulate sets. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from modifying the set-max-intset-entries configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.

📍 영향받는 시스템

Redis 모든 버전 (6.2.6, 6.0.16, 5.0.14 미만 버전)

⚔️ 공격 벡터

CONFIG SET 명령어를 통해 set-max-intset-entries 설정을 조작한 후 특수 제작된 명령어로 힙 메모리 조작

🛡️ 대응 방법

Redis를 6.2.6, 6.0.16 또는 5.0.14 이상의 버전으로 업데이트하거나, ACL을 사용하여 CONFIG SET 명령 사용을 제한함

🔧 검증 코드

명령어 실행 결과로 수정된 보안 패치 버전이 출력되면 안전하며, 그렇지 않으면 취약할 수 있습니다.

Shell / Script
redis-server --version | grep -E '6.2.6|6.0.16|5.0.14'

📊 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