HIGH 8.1

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)

ArtifactAffected versionsFixed in
org.springframework.batch » spring-batch-core
>= 4.0.0, < 4.2.3
4.2.3

Blast radius

1affected artifacts
22affected versions
611dependent artifacts (est.)
3,319dependent versions

16% of the dependent artifacts (101) still pull an affected version in their latest release.

DepthDependent versions
Direct
547
2 hops
1,073
3 hops
826
4 hops
211
5 hops
342
6 hops
320

Most used dependents

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

Advisorynvd.nist.gov
Packagegithub.com
Webtanzu.vmware.com