Loading...
Skip to main content

CVE-2023-42809 — Vulnerability in org.redisson:redisson — CVE Details

CRITICAL

Redisson vulnerable to Deserialization of Untrusted Data

Published August 5, 2024Updated August 5, 2024Source: osv

Summary

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.

Advisory Timeline

  • First published August 5, 2024 (798 days ago).
  • Last revised August 5, 2024 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.redisson:redisson to 3.22.0 or later
<!-- Update pom.xml dependency version to 3.22.0 for org.redisson:redisson -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.redisson:redisson
maven
0.9.0, 1.0.1, 1.0.2, 1.0.3 (+202 more)3.22.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-502
    Deserialization of Untrusted DataMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2023-42809?
Redisson vulnerable to Deserialization of Untrusted Data This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.6/10).
How do I check if my project is affected by CVE-2023-42809?
CVE-2023-42809 affects org.redisson:redisson. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-42809 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.6

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-4hvc-qwr2-f8rv

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies