🇰🇷 한글 설명
Redis 8.2.1 이하 버전에서 인증된 사용자가 특수하게 제작된 Lua 스크립트를 사용하여 가비지 컬렉터를 조작할 수 있는 취약점이 발견되었습니다. 이로 인해 Use-After-Free 오류가 발생하며, 공격자가 원격 코드 실행(RCE)을 수행할 가능성이 있습니다. 이 문제는 Lua 스크립팅을 사용하는 모든 Redis 버전에서 발생하며, 8.2.2 버전에서 수정되었습니다.
💡 쉬운 설명
Redis 데이터베이스에 접속 권한이 있는 사용자가 특수한 명령어를 보내 시스템의 메모리 관리 오류를 일으킬 수 있습니다. 이를 통해 해커가 서버를 마음대로 조종할 수 있는 위험이 있습니다.
🇺🇸 원문 (English)
Redis is an open source, in-memory database that persists on disk. Versions 8.2.1 and below allow an authenticated user to use a specially crafted Lua script to manipulate the garbage collector, trigger a use-after-free and potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This issue is fixed in version 8.2.2. To workaround this issue without patching the redis-server executable is to prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.
📍 영향받는 시스템
Redis 8.2.1 및 그 이하의 모든 Lua 스크립팅 지원 버전
⚔️ 공격 벡터
인증된 사용자가 조작된 Lua 스크립트를 실행하여 메모리 관리 프로세스(Garbage Collector)를 공격
🛡️ 대응 방법
Redis를 8.2.2 버전 이상으로 업데이트하거나, ACL을 통해 EVAL 및 EVALSHA 명령 실행을 차단
🔧 검증 코드
출력된 버전 번호가 8.2.2 미만인 경우 해당 취약점에 노출된 상태입니다.
redis-server --version | grep -E 'redis-[0-9]+\.[0-9]+\.[0-9]+'