🔍 CVE-2021-32628

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

🇰🇷 한글 설명

Redis의 ziplist 데이터 구조에서 발생하는 정수 오버플로 취약점으로, 힙 메모리 오염을 통해 원격 코드 실행(RCE)이 가능할 수 있습니다. 공격자는 설정 파라미터를 조작하여 매우 큰 ziplist를 생성함으로써 이 취약점을 악용할 수 있습니다.

💡 쉬운 설명

데이터를 저장하는 방식에서 계산 오류가 발생하여 컴퓨터의 메모리 영역을 망가뜨릴 수 있는 문제입니다. 이를 통해 해커가 원격에서 명령을 실행하여 시스템을 장악할 위험이 있습니다.

🇺🇸 원문 (English)

Redis is an open source, in-memory database that persists on disk. An integer overflow bug in the ziplist data structure used by all versions of Redis can be exploited to corrupt the heap and potentially result with remote code execution. The vulnerability involves modifying the default ziplist configuration parameters (hash-max-ziplist-entries, hash-max-ziplist-value, zset-max-ziplist-entries or zset-max-ziplist-value) to a very large value, and then constructing specially crafted commands to create very large ziplists. The problem is fixed in Redis versions 6.2.6, 6.0.16, 5.0.14. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from modifying the above configuration parameters. 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 명령을 통해 ziplist 관련 설정값을 매우 크게 변경한 후, 특수하게 제작된 명령어로 대규모 ziplist를 생성하여 힙 메모리 오염 유도

🛡️ 대응 방법

Redis를 6.2.6, 6.0.16, 5.0.14 이상 버전으로 업데이트하거나, ACL을 사용하여 일반 사용자의 CONFIG SET 명령 사용을 제한하십시오.

🔧 검증 코드

출력된 버전이 취약점이 해결된 버전(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