CVE-2020-5413 Kryo Configuration Allows Code Execution with Unknown "Serialization Gadgets"
Attackers can execute arbitrary code via malicious deserialization gadgets when Spring Integration uses Kryo with default settings.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-5413?
CVE-2020-5413 is a critical unsafe deserialization vulnerability in Oracle Flexcube Private Banking, published on 31 Jul 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Spring Integration framework provides Kryo Codec implementations as an alternative for Java (de)serialization. When Kryo is configured with default options, all unregistered classes are resolved on demand. This leads to the "deserialization gadgets" exploit when provided data contains malicious code for execution during deserialization. In order to protect against this type of attack, Kryo can be configured to require a set of trusted classes for (de)serialization. Spring Integration should be proactive against blocking unknown "deserialization gadgets" when configuring Kryo in code.
Weakness: CWE-502
Which versions are affected by CVE-2020-5413?
8 open source packages ship an affected version, including org.springframework.integration:spring-integration-core. It affects 8 products.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework.integration:spring-integration-core Maven | From 4.3.0 | 4.3.23 |
org.springframework.integration:spring-integration-core Maven | From 4.3.0 | 4.3.23 |
org.springframework.integration:spring-integration-core Maven | From 5.1.0 | 5.1.12 |
org.springframework.integration:spring-integration-core Maven | From 5.1.0 | 5.1.12 |
org.springframework.integration:spring-integration-core Maven | From 5.2.0 | 5.2.8 |
org.springframework.integration:spring-integration-core Maven | From 5.2.0 | 5.2.8 |
2 more packages
org.springframework.integration:spring-integration-core Maven | From 5.3.0 | 5.3.2 |
org.springframework.integration:spring-integration-core Maven | From 5.3.0 | 5.3.2 |
Products include Oracle Banking Corporate Lending Process Management, Oracle Banking Credit Facilities Process Management, Oracle Banking Supply Chain Finance, Oracle Banking Virtual Account Management, Oracle Flexcube Private Banking, Oracle Retail Customer Management and Segmentation Foundation and 2 more.
How do I fix CVE-2020-5413?
Upgrade org.springframework.integration:spring-integration-core to a fixed version for your release line: 4.3.23, 5.1.12, 5.2.8 or 5.3.2.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2020-5413 being exploited?
There is no known exploitation of CVE-2020-5413 in the wild and no public exploit code.
Sources
Also known as GHSA-86qr-9vqc-pgc6.