CVE-2020-5413CWE-502

Kryo Configuration Allows Code Execution with Unknown "Serialization Gadgets"

published July 31, 2020

CVSS
—
EPSS
4%
Percentile
91.3
In the wild
Unconfirmed
What it is

⚠️ A seemingly innocent deserialization process could unleash chaos! When using Kryo Codec with default settings, any unregistered class can execute malicious code during deserialization — it’s a recipe for disaster! 🔥 Think of it as a restaurant that allows anyone to order from a menu without checking their credentials. If the kitchen trusts every order without verifying the customer, you might end up with a dish that’s not just unexpected, but downright harmful! An attacker could craft malicious data that, once deserialized, could execute arbitrary code on your system. This means they could potentially access, modify, or even delete sensitive data - a nightmare scenario for any organization!

Put simply

Think of it as a restaurant that allows anyone to order from a menu without checking their credentials. If the kitchen trusts every order without verifying the customer, you might end up with a dish that’s not just unexpected, but downright harmful! This vulnerability arises in the Spring Integration framework where the Kryo Codec's default configuration allows for on-demand resolution of any unregistered classes during deserialization, creating opportunities for 'deserialization gadgets' to execute malicious code.

What to do

An attacker could craft malicious data that, once deserialized, could execute arbitrary code on your system. This means they could potentially access, modify, or even delete sensitive data - a nightmare scenario for any organization! To protect against this vulnerability, configure Kryo to require a trusted class set for (de)serialization. Review your current configuration to ensure that only known and vetted classes are permitted, and consider implementing additional security controls to monitor for unusual deserialization requests. You've got this! By taking these steps, you’ll fortify your defenses against potential exploitation! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.04409 · 91.3th percentile
Weakness
CWE-502 · Deserialization of Untrusted Data
Published
2020-07-31T19:40Z
EPSS history
Timeline
  • 31 JUL 19:40Z
    Kryo Configuration Allows Code Execution with Unknown "Serialization Gadgets"
    cvelistv5