Deserialization of Untrusted Data The advisory has been revoked - it doesn't affect any version of package org.springframework.statemachine:spring-statemachine-samples-datapersist  (opens in a new tab)


Threat Intelligence

EPSS
0.42% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Deserialization of Untrusted Data vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKSTATEMACHINE-17326099
  • published12 Jun 2026
  • disclosed11 Jun 2026
  • creditUnknown

Introduced: 11 Jun 2026

CVE-2026-41862  (opens in a new tab)
CWE-502  (opens in a new tab)

How to fix?

Upgrade org.springframework.statemachine:spring-statemachine-samples-datapersist to version 4.0.2 or higher.

Amendment

This was deemed not a vulnerability.

Overview

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The Kryo-based persistence serializers (KryoStateMachineSerialisationService / AbstractKryoStateMachineSerialisationService) deserialise persisted state-machine contexts without enabling Kryo.setRegistrationRequired(true) or enforcing a class allowlist. This affects every persistence backend that round-trips the StateMachineContext through Kryo, namely the JPA, MongoDB, Redis and ZooKeeper persisters. An attacker who can write to or tamper with the persisted context store can supply a serialized payload referencing arbitrary classes, triggering a deserialization gadget chain that results in remote code execution inside the application JVM.

Note:

Exploitation requires the attacker to be able to control or modify the contents of the persistence store (database, Redis, MongoDB or ZooKeeper node) from which contexts are loaded.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.