🔍 CVE-2022-24735

3.9
CVSS Score
LOW
2022-04-27
2026-06-17 04:32
✅ 완료

🇰🇷 한글 설명

Redis의 Lua 스크립트 실행 환경 내 취약점으로 인해, 권한이 낮은 사용자가 Lua 코드를 주입하여 나중에 권한이 높은 사용자가 스크립트를 실행할 때 해당 코드가 실행될 수 있습니다. 이 문제는 Redis 6.0에서 도입된 ACL 기능과 결합되어 보안 위협이 되었으며, Redis 7.0.0 및 6.2.7 버전에서 해결되었습니다.

💡 쉬운 설명

낮은 권한을 가진 사용자가 몰래 나쁜 명령어를 숨겨두면, 나중에 관리자가 명령어를 실행할 때 그 나쁜 명령어가 함께 실행되는 보안 결함입니다. 이를 통해 공격자는 원래 접근할 수 없었던 높은 권한을 획득할 수 있습니다.

🇺🇸 원문 (English)

Redis is an in-memory database that persists on disk. By exploiting weaknesses in the Lua script execution environment, an attacker with access to Redis prior to version 7.0.0 or 6.2.7 can inject Lua code that will execute with the (potentially higher) privileges of another Redis user. The Lua script execution environment in Redis provides some measures that prevent a script from creating side effects that persist and can affect the execution of the same, or different script, at a later time. Several weaknesses of these measures have been publicly known for a long time, but they had no security impact as the Redis security model did not endorse the concept of users or privileges. With the introduction of ACLs in Redis 6.0, these weaknesses can be exploited by a less privileged users to inject Lua code that will execute at a later time, when a privileged user executes a Lua script. The problem is fixed in Redis versions 7.0.0 and 6.2.7. An additional workaround to mitigate this problem without patching the redis-server executable, if Lua scripting is not being used, is to block access to `SCRIPT LOAD` and `EVAL` commands using ACL rules.

📍 영향받는 시스템

Redis versions prior to 7.0.0 or 6.2.7

⚔️ 공격 벡터

ACL을 통해 권한이 제한된 사용자가 Lua 스크립트 실행 환경의 취약점을 이용해 악성 코드를 주입하는 방식

🛡️ 대응 방법

Redis를 7.0.0 또는 6.2.7 이상의 버전으로 업데이트하거나, Lua 스크립트 사용이 불필요할 경우 ACL 규칙을 통해 SCRIPT LOAD 및 EVAL 명령어를 차단하십시오.

🔧 검증 코드

명령어 실행 결과에 redis-server v7.0.0 또는 v6.2.7 이상의 버전이 표시되면 취약점이 해결된 상태입니다.

Shell / Script
redis-server --version | grep -E 'redis-server v(7\.|6\.2\.7)'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Redis