CVE-2020-5411: Jackson Configuration Allows Code Execution with Unknown "Serialization Gadgets"
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
When configuring Jackson to enable default typing in Spring Batch, proactively block unknown "deserialization gadgets" (use Jackson’s gadget blacklisting so untrusted gadget classes are prevented from being deserialized).
Spring Batch Jackson default typing (global default typing) = enable only with proactive blocking of unknown deserialization gadgets
Event History
Frequently Asked Questions
What is CVE-2020-5411?
CVE-2020-5411 is a deserialization vulnerability in Jackson that could allow arbitrary code execution.
How does CVE-2020-5411 affect Spring Batch?
CVE-2020-5411 affects Spring Batch when it is configured with global default typing enabled.
What is the severity of CVE-2020-5411?
The severity of CVE-2020-5411 is high with a CVSS score of 8.1.
How can I fix CVE-2020-5411?
To fix CVE-2020-5411, update to a version of Spring Batch that contains the fix.
Where can I find more information about CVE-2020-5411?
You can find more information about CVE-2020-5411 at the following reference: [CVE-2020-5411](https://tanzu.vmware.com/security/cve-2020-5411)