CVE-2020-5411
Deserialization of Untrusted Data in Spring Batch
Description
When configured to enable default typing, Jackson contained a deserialization vulnerability that could lead to arbitrary code execution. Jackson fixed this vulnerability by blacklisting known "deserialization gadgets". Spring Batch configures Jackson with global default typing enabled which means that through the previous exploit, arbitrary code could be executed if all of the following is true: * Spring Batch's Jackson support is being leveraged to serialize a job's ExecutionContext. * A malicious user gains write access to the data store used by the JobRepository (where the data to be deserialized is stored). In order to protect against this type of attack, Jackson prevents a set of untrusted gadget classes from being deserialized. Spring Batch should be proactive against blocking unknown "deserialization gadgets" when enabling default typing.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.batch » spring-batch-core | >= 4.0.0, < 4.2.3 | 4.2.3 |
Blast radius
16% of the dependent artifacts (101) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 547 |
| 2 hops | 1,073 |
| 3 hops | 826 |
| 4 hops | 211 |
| 5 hops | 342 |
| 6 hops | 320 |
Most used dependents
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.springframework.boot » spring-boot-starter-batch173 usages
- org.apache.camel.quarkus » camel-quarkus-package-maven-plugin152 usages
- org.springframework.batch » spring-batch-test113 usages
- org.apache.camel » camel-catalog87 usages
- com.zoloz.zbase » zbase-common62 usages
- ca.uhn.hapi.fhir » hapi-fhir-jpaserver-base37 usages
- org.apache.camel.springboot » camel-jackson-starter37 usages
- org.apache.camel.springboot » camel-servlet-starter31 usages
- org.apache.camel.springboot » camel-http-starter29 usages
- com.zoloz.zim » zim-facade27 usages
- com.zoloz.zprod » zprod-common27 usages
- org.springframework.batch » spring-batch-integration23 usages
Computed from the dependency graph of build 20261125.0317 (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
| Advisory | NVD CVE-2020-5411 | nvd.nist.gov |
| Package | spring-projects/spring-batch | github.com |
| Web | security/cve-2020-5411 | tanzu.vmware.com |
