🇰🇷 한글 설명
Redis 7.0.12 미만 버전에서 특정 명령어를 통해 키 이름을 추출할 때 힙 오버플로우가 발생할 수 있습니다. 이 취약점은 힙 메모리 손상이나 임의의 메모리 읽기를 유발하며, 공격자가 원격 코드 실행(RCE)을 할 가능성이 있습니다.
💡 쉬운 설명
데이터베이스인 Redis에서 특정 명령어를 잘못 사용하면 메모리 공간이 넘쳐흐르는 문제가 발생합니다. 이를 통해 해커가 시스템의 중요한 정보를 훔치거나 컴퓨터를 마음대로 조종할 수 있습니다.
🇺🇸 원문 (English)
Redis is an in-memory database that persists on disk. In Redit 7.0 prior to 7.0.12, extracting key names from a command and a list of arguments may, in some cases, trigger a heap overflow and result in reading random heap memory, heap corruption and potentially remote code execution. Several scenarios that may lead to authenticated users executing a specially crafted `COMMAND GETKEYS` or `COMMAND GETKEYSANDFLAGS`and authenticated users who were set with ACL rules that match key names, executing a specially crafted command that refers to a variadic list of key names. The vulnerability is patched in Redis 7.0.12.
📍 영향받는 시스템
Redis 7.0 버전 중 7.0.12 미만 버전
⚔️ 공격 벡터
인증된 사용자가 특수하게 조작된 COMMAND GETKEYS 또는 COMMAND GETKEYSANDFLAGS 명령어를 실행
🛡️ 대응 방법
Redis를 최신 보안 패치가 적용된 7.0.12 버전 이상으로 업데이트
🔧 검증 코드
출력된 버전 번호가 7.0.12 미만인지 확인하여 취약 여부를 판단합니다.
redis-server --version | grep -E 'redis-[0-9]+\.[0-9]+\.[0-9]+'