Vulnerabilities in pkg:maven/org.redisson/redisson

PACKAGE
Advisory Identifier: GHSA-4hvc-qwr2-f8rv
Advisory Summary

CVE-2023-42809 is a CRITICAL (CVSS 9.6) redisson vulnerable to deserialization of vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Redisson libraries in the Maven ecosystem. The issue involves redisson vulnerable to deserialization of untrusted data. Remediation is available by upgrading affected packages to version 3.22.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.redisson/redisson

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.redisson/redisson. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-4hvc-qwr2-f8rv CVE-2023-42809 CRITICAL Redisson vulnerable to Deserialization of Untrusted Data

CVE-2023-42809 at a Glance

CVE Identifier CVE-2023-42809
GHSA Identifier GHSA-4hvc-qwr2-f8rv
Severity CRITICAL
CVSS v3.1 Base Score 9.6
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Redisson
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-42809

To remediate this vulnerability, upgrade all affected Redisson dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.redisson:redisson fixed: 3.22.0
<dependency>
    <groupId>org.redisson</groupId>
    <artifactId>redisson</artifactId>
    <version>3.22.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.redisson

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-42809, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.redisson

Analyze the terminal output to locate any version of Redisson in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.22.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.redisson command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Redisson, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2023-42809 Affected Redisson Versions

1 component(s)
Fixed Versions:
3.22.0
Product / Package Ecosystem Affected Versions Fixed Version
org.redisson:redisson
Maven
< 3.22.0
3.22.0

References

Frequently Asked Questions

What is CVE-2023-42809?
CVE-2023-42809 is a security vulnerability in Redisson involving Redisson vulnerable to Deserialization of Untrusted Data under CWE-502: Deserialization of Untrusted Data.
Which Redisson versions are affected?
Affected versions include releases prior to 3.22.0 across affected packages: org.redisson:redisson.
What version fixes CVE-2023-42809?
Upgrading to 3.22.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is redisson affected?
Yes, org.redisson:redisson is affected in releases prior to 3.22.0. Upgrade your dependency to 3.22.0 or later.
What is the CVSS score of CVE-2023-42809?
CVE-2023-42809 has a CVSS v3.1 base score of 9.6 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2023-42809?
CVE-2023-42809 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2023-42809?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.redisson'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4hvc-qwr2-f8rv",
  "modified" : "2024-08-05T21:29:22Z",
  "published" : "2024-08-05T21:29:22Z",
  "aliases" : [ "CVE-2023-42809" ],
  "summary" : "Redisson vulnerable to Deserialization of Untrusted Data",
  "details" : "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.\n\nSome 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.redisson:redisson"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.22.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-42809"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/redisson/redisson/commit/fe6a2571801656ff1599ef87bdee20f519a5d1fe"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/redisson/redisson"
  }, {
    "type" : "ADVISORY",
    "url" : "https://securitylab.github.com/advisories/GHSL-2023-053_Redisson"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-05T21:29:22Z",
    "nvd_published_at" : "2023-10-04T20:15:10Z"
  }
}