Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify Spring Statemachine app with Kryo persistence
-
DeliveryObtain write access to backing store (Redis/Mongo/JPA/ZK)
-
ExploitCraft Kryo-serialized gadget chain payload
-
InstallInject payload into StateMachineContext entry
-
C2Application deserializes context on load
-
ExecuteJVM executes attacker code
-
ImpactEstablish foothold in application host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target application uses Spring Statemachine with one of the four Kryo-backed persistence integrations enabled (JPA, MongoDB, Redis, or ZooKeeper) and that the attacker can write a crafted serialized blob into the backing store used to persist StateMachineContext objects. The CVSS vector PR:L indicates some level of authenticated or authorized access is required - typically credentials or network reach to the persistence backend itself - and UI:N means no victim interaction is needed once the malicious context is written. Deployments that do not enable Kryo-based persistence (in-memory only state machines) are not exposed, and environments where the persistence store is strictly isolated from any untrusted writer face substantially reduced exposure even where the vulnerable library is present. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N gives a base score of 8.8 with full C/I/A impact, indicating network-reachable, low-complexity exploitation that requires only low-privileged access - consistent with an attacker who has any ability to influence the contents of the persistence backend (e.g., authenticated DB/Redis user, a compromised co-tenant, or another application sharing the store). EPSS and KEV signals are not provided in the input, so real-world exploitation prevalence cannot be quantified; however, CWE-502 Java RCEs historically attract rapid POC publication once gadget chains are confirmed, and the Spring brand magnifies attention. No public exploit identified at time of analysis. The primary risk gating factor is whether the persistence layer is exposed to untrusted writers - a realistic concern in shared-Redis or multi-tenant DB architectures, less so when the backing store is fully internal and tightly ACL'd. |
| Exploit ScenarioDerived | An attacker who obtains low-privileged access to the Redis, MongoDB, JPA database, or ZooKeeper node backing a Spring Statemachine deployment writes a malicious Kryo-serialized blob into the state-machine context key. The next time the target application loads or restores that state machine, Kryo instantiates an attacker-controlled gadget chain and the JVM executes arbitrary code with the privileges of the application process. No public POC has been identified, but Java deserialization gadget chains for common classpaths are well-documented and reusable. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 23, 2026
Remote code execution in Spring Statemachine 3.2.0-3.2.4 and 4.0.0-4.0.1 allows authenticated attackers to execute arbitrary code inside the application JVM by injecting malicious serialized Java objects into the Kryo-based persistence backends (JPA, MongoDB, Redis, or ZooKeeper). The flaw stems from deserializing persisted state-machine contexts without enforcing a class allowlist, a classic CWE-502 pattern that has historically yielded reliable gadget-chain exploitation in Java applications. No public exploit identified at time of analysis, but the deserialization sink and Kryo gadget ecosystem make weaponization straightforward once an attacker can write to the persistence store.
RemediationAI
Patch status: patch available per vendor advisory at https://spring.io/security/cve-2026-41862 - consult the advisory for the exact fixed releases in the 3.2.x and 4.0.x lines and upgrade Spring Statemachine accordingly. As a compensating control until patching, configure a strict Kryo class allowlist (Kryo.setRegistrationRequired(true) plus explicit kryo.register(...) calls for every legitimate StateMachineContext type) so unknown classes fail to deserialize; this is the most surgical mitigation but requires enumerating every persisted type. Alternatively, switch the persistence layer to a non-Kryo serializer (e.g., a JSON-based StateMachineSerialisationService), accepting a migration cost for existing persisted contexts. As a deployment-level mitigation, restrict write access on the JPA/Mongo/Redis/ZooKeeper instance to only the application identity and audit for any unexpected writers, recognizing this does not protect against compromise of that identity.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Spring Statemachine is a Spring Framework library used to build hierarchical and distributed state machines in Java applications, with optional persistence so a state-machine's runtime context can survive restarts or be shared across cluster nodes. The library supports four persistence backends - JPA (relational databases), MongoDB, Redis, and Apache ZooKeeper - each backed by the Kryo serialization framework to marshal the StateMachineContext object. CWE-502 (Deserialization of Untrusted Data) applies because Kryo deserializers are invoked on persisted blobs without registering an allowlist of permitted classes; when Kryo is configured in its default 'auto-instantiate any class' mode, an attacker who can write into the backing store can supply a payload that constructs gadget chains (similar to ysoserial chains for Java) leading to RCE in the JVM hosting the state machine.
Know when Spring Statemachine gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable persistence backend (AV:N), low complexity once write access exists (AC:L), requires write privilege to the store (PR:L), no user interaction, full RCE impact on JVM.
Primary rating from Vendor (vmware).
CVSS VectorVendor: vmware
Lifecycle Timeline
2DescriptionCVE.org
Spring Statemachine's Kryo-based persistence backends (JPA, MongoDB, Redis and ZooKeeper) deserialise persisted state-machine contexts without enforcing a class allowlist (CWE-502, deserialisation of untrusted data), which can lead to remote code execution inside the application JVM.
Affected versions: Spring Statemachine 4.0.0 through 4.0.1 Spring Statemachine 3.2.0 through 3.2.4
Articles & Coverage 1
Executive ViewAI
Spring Statemachine versions 3.2.0-3.2.4 and 4.0.0-4.0.1 contain a critical remote code execution vulnerability allowing authenticated attackers to execute arbitrary code within your JVM. No vendor patch exists for these specific versions; remediation requires upgrade to current patched releases. With no public exploit identified at time of analysis but straightforward weaponization potential via Kryo gadget-chain exploitation, organizations running these versions face immediate insider and compromised-account attack risk.
No vendor-released patch identified at time of analysis. Interim mitigations while planning mandatory upgrade: restrict application user access to high-trust internal networks only; disable or isolate Kryo-based persistence backends (JPA, MongoDB, Redis, ZooKeeper) unless operationally critical; implement serialization activity monitoring and alerting. Upgrade to patched versions is the only definitive remediation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-38596
GHSA-85qj-f5wg-rwp9
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB