🔍 CVE-2023-42809

9.6
CVSS Score
CRITICAL
2023-10-04
2026-06-17 06:24
✅ 완료

🇰🇷 한글 설명

Redisson은 Netty 프레임워크를 사용하는 Java Redis 클라이언트로, 3.22.0 미만 버전에서 Redis 서버로부터 받은 메시지를 검증 없이 역직렬화하는 취약점이 존재합니다. 공격자가 악의적인 서버를 통해 조작된 객체를 클라이언트에 전달하면 임의의 코드를 실행하여 시스템 제어권을 탈취할 수 있습니다.

💡 쉬운 설명

신뢰할 수 없는 서버로부터 받은 데이터를 검사 없이 그대로 읽어 들이다가 발생하는 보안 문제입니다. 이를 통해 해커가 사용자의 컴퓨터에서 몰래 명령어를 실행할 수 있습니다.

🇺🇸 원문 (English)

Redisson is a Java Redis client that uses the Netty framework. Prior to version 3.22.0, some of the messages received from the Redis server contain Java objects that the client deserializes without further validation. Attackers that manage to trick clients into communicating with a malicious server can include especially crafted objects in its responses that, once deserialized by the client, force it to execute arbitrary code. This can be abused to take control of the machine the client is running in. Version 3.22.0 contains a patch for this issue. Some post-fix advice is available. Do NOT use `Kryo5Codec` as deserialization codec, as it is still vulnerable to arbitrary object deserialization due to the `setRegistrationRequired(false)` call. On the contrary, `KryoCodec` is safe to use. The fix applied to `SerializationCodec` only consists of adding an optional allowlist of class names, even though making this behavior the default is recommended. When instantiating `SerializationCodec` please use the `SerializationCodec(ClassLoader classLoader, Set<String> allowedClasses)` constructor to restrict the allowed classes for deserialization.

📍 영향받는 시스템

Redisson versions prior to 3.22.0

⚔️ 공격 벡터

악의적인 Redis 서버를 통해 조작된 Java 객체를 클라이언트에 전달하여 역직렬화 유도

🛡️ 대응 방법

Redisson을 3.22.0 이상으로 업데이트하고, Kryo5Codec 대신 KryoCodec을 사용하거나 SerializationCodec 사용 시 허용 목록(allowlist)을 설정하십시오.

🔧 검증 코드

출력된 Redisson의 버전을 확인하여 3.22.0 미만인지 체크합니다.

Shell / Script
mvn dependency:tree | grep redisson

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Redis