Deserialization of Untrusted Data in Spring Batch - CVE-2026-47878

 

Deserialization of Untrusted Data in Spring Batch - CVE-2026-47878

Published: August 28, 2026


Vulnerability identifier: #VU146236
CSH Severity: Medium
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-47878
CWE-ID: CWE-502
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to unsafe deserialization in DefaultExecutionContextSerializer when deserializing Base64-decoded data with ObjectInputStream.readObject() without a class allowlist. A remote attacker can supply a specially crafted serialized object to execute arbitrary code.

Only the JDBC job repository using this serializer is affected; the MongoDB backend and ResourcelessJobRepository are not affected.


Affected software

Spring Batch

How to mitigate CVE-2026-47878

Install security update from vendor's website.

Spring Batch - addressed in versions 5.2.7, 6.0.4.1, 6.0.5

External References

Related Security Bulletins