CVE-2020-5411
Jackson Configuration Allows Code Execution with Unknown "Serialization Gadgets"
Reported by pivotal · Published June 11, 2020
spring-batch-core is fixed in 4.2.3 and 4.2.2 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.springframework.batch:spring-batch-core | Maven Central | 4.2.3, 4.2.2 |
| Spring Batch | Spring by VMware | 4.2.3 |
| spring_batch | pivotal_software | 4.2.2, 4.1.4, 4.0.4 |
| spring_batch | broadcom | 4.2.2, 4.1.4, 4.0.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Spring by VMware | Spring Batch | 4 |
| Maven | org.springframework.batch:spring-batch-core | 4.0.0 |
| Spring by VMware | Spring Batch | 4 |
Timeline
- Jun 11, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Apr 4, 2026 Security Advisory
- Aug 30, 2026 Coalition ESS Score
- Sep 1, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-5411
vulnetix vdb fixes CVE-2020-5411
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-5411/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2020-5411 advisory
- https://github.com/advisories/GHSA-4ph4-q9r5-6wm6 advisory