CVE-2019-3774 Spring Batch XML External Entity Injection (XXE)
Attackers can exploit XML External Entity injection in Spring Batch to read sensitive files or cause denial of service via malicious XML input.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-3774?
CVE-2019-3774 is a critical vulnerability in Spring Batch, published on 18 Jan 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Spring Batch versions 3.0.9, 4.0.1, 4.1.0, and older unsupported versions, were susceptible to XML External Entity Injection (XXE) when receiving XML data from untrusted sources.
Weakness: CWE-611
Which versions are affected by CVE-2019-3774?
6 open source packages ship an affected version, including org.springframework.batch:spring-batch-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework.batch:spring-batch-core Maven | All versions | 3.0.10.RELEASE |
org.springframework.batch:spring-batch-core Maven | All versions | 3.0.10.RELEASE |
org.springframework.batch:spring-batch-core Maven | From 4.0.0.RELEASE | 4.0.2.RELEASE |
org.springframework.batch:spring-batch-core Maven | From 4.0.0.RELEASE | 4.0.2.RELEASE |
org.springframework.batch:spring-batch-core Maven | From 4.1.0.RELEASE | 4.1.1.RELEASE |
org.springframework.batch:spring-batch-core Maven | From 4.1.0.RELEASE | 4.1.1.RELEASE |
Products include Broadcom Spring Batch.
How do I fix CVE-2019-3774?
Upgrade org.springframework.batch:spring-batch-core to a fixed version for your release line: 3.0.10.RELEASE, 4.0.2.RELEASE or 4.1.1.RELEASE.
Is CVE-2019-3774 being exploited?
There is no known exploitation of CVE-2019-3774 in the wild and no public exploit code.
Other vulnerabilities in Spring Batch
- CVE-2020-5411 Jackson Configuration Allows Code Execution with Unknown "Serialization Gadgets"
- CVE-2026-47881 Denial of Service in Spring Batch FlatFileItemReader via Malformed Input File
- CVE-2026-47875 JobParameterDeserializer bypasses the trusted-type allowlist
- CVE-2026-47878 Unsafe Java deserialization in DefaultExecutionContextSerializer without class allowlist
Sources
Also known as GHSA-3wc8-659g-r88q.