---
id: CVE-2020-5411
title: >-
  When configured to enable default typing, Jackson contained a deserialization
  vulnerability that could lead to arbitrary code execution
summary: >-
  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
  confi…
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-502
  - CWE-502
vendor: broadcom
product: spring_batch
affected:
  - 'spring_batch >= 4.0.0, <= 4.0.4'
  - 'spring_batch >= 4.1.0, <= 4.1.4'
  - 'spring_batch >= 4.2.0, <= 4.2.2'
published: '2020-06-11'
updated: '2026-09-01'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2020-5411'
references:
  - url: 'https://tanzu.vmware.com/security/cve-2020-5411'
    label: security@pivotal.io
  - url: 'https://tanzu.vmware.com/security/cve-2020-5411'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.01656
epssPercentile: 0.75547
ingestedAt: '2026-09-01T18:30:36.316Z'
---

## Overview

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

- `spring_batch >= 4.0.0, <= 4.0.4`
- `spring_batch >= 4.1.0, <= 4.1.4`
- `spring_batch >= 4.2.0, <= 4.2.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
