CVE-2023-42809: Redisson Redisson Vulnerable To Deserialization Of Vulnerability
CRITICALCVE-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.
CVE-2023-42809 at a Glance
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).
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.
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson</artifactId>
<version>3.22.0</version>
</dependency>
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
CVE-2023-42809 Affected Redisson Versions
1 component(s)| 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?
Which Redisson versions are affected?
What version fixes CVE-2023-42809?
Is redisson affected?
What is the CVSS score of CVE-2023-42809?
What CWE is associated with CVE-2023-42809?
How can I check Maven dependencies for CVE-2023-42809?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}