CVE-2020-5413
Code execution in Spring Integration
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.integration » spring-integration-core | >= 4.3.0, < 4.3.23>= 5.1.0, < 5.1.12>= 5.2.0, < 5.2.8>= 5.3.0, < 5.3.2 | 4.3.23, 5.1.12, 5.2.8, 5.3.2 |
Blast radius
20% of the dependent artifacts (283) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,838 |
| 2 hops | 5,575 |
| 3 hops | 4,405 |
| 4 hops | 2,559 |
| 5 hops | 3,914 |
| 6 hops | 13,760 |
Most used dependents
- org.apache.camel.springboot » camel-core-starter558 usages
- org.springframework.integration » spring-integration-jmx546 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.springframework.cloud » spring-cloud-stream427 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apereo.cas » cas-server-core-util296 usages
- org.springframework.boot » spring-boot-starter-integration280 usages
- org.springframework.cloud » spring-cloud-starter-stream-kafka280 usages
- org.apereo.cas » cas-server-core-services280 usages
- org.apereo.cas » cas-server-core-configuration264 usages
- org.springframework.cloud » spring-cloud-starter-stream-rabbit236 usages
- org.apereo.cas » cas-server-core-authentication232 usages
- org.springframework.cloud » spring-cloud-bus232 usages
- org.apereo.cas » cas-server-core-web212 usages
- org.apereo.cas » cas-server-core-tickets182 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2020-5413
- Webhttps://github.com/spring-projects/spring-integration/commit/6a02b5abe97fabab6003d51b98dd45ab009a6e05
- Packagehttps://github.com/spring-projects/spring-integration
- Webhttps://tanzu.vmware.com/security/cve-2020-5413
- Webhttps://www.oracle.com//security-alerts/cpujul2021.html
- Webhttps://www.oracle.com/security-alerts/cpuApr2021.html
- Webhttps://www.oracle.com/security-alerts/cpuapr2022.html
- Webhttps://www.oracle.com/security-alerts/cpuoct2021.html
