CVE-2020-5411
HIGH 8.1CVSS 3.1Deserialization of Untrusted Data in Spring Batch
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.
- Published
- 11 Jun 2020
- Last modified
- 1 Sep 2026
- Assigned by
- security@pivotal.io
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-4ph4-q9r5-6wm6
- Sources
- NVDJSONOSV GHSA-4ph4-q9r5-6wm6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | broadcom | spring_batchcpe:2.3:a:broadcom:spring_batch:*:*:*:*:*:*:*:* |
>= 4.0.0, <= 4.0.4 | |
| NVD | broadcom | spring_batchcpe:2.3:a:broadcom:spring_batch:*:*:*:*:*:*:*:* |
>= 4.1.0, <= 4.1.4 | |
| NVD | broadcom | spring_batchcpe:2.3:a:broadcom:spring_batch:*:*:*:*:*:*:*:* |
>= 4.2.0, <= 4.2.2 | |
| OSV | Maven | org.springframework.batch:spring-batch-core | >= 4.0.0, < 4.2.3 | 4.2.3 |
References
- https://tanzu.vmware.com/security/cve-2020-5411 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-5411 · ADVISORY
- https://github.com/spring-projects/spring-batch · PACKAGE
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 11 Jun 2020)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 May 2022)