Skip to main content

Spring Statemachine CVE-2026-41862

| EUVDEUVD-2026-38596 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-06-23 security@vmware.com GHSA-85qj-f5wg-rwp9
8.8
CVSS 3.1 · Vendor: vmware
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify Spring Statemachine app with Kryo persistence
  2. Delivery
    Obtain write access to backing store (Redis/Mongo/JPA/ZK)
  3. Exploit
    Craft Kryo-serialized gadget chain payload
  4. Install
    Inject payload into StateMachineContext entry
  5. C2
    Application deserializes context on load
  6. Execute
    JVM executes attacker code
  7. Impact
    Establish 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Spring Statemachine 4.0.0 <4.0.1.1
Spring Statemachine 3.2.0 <3.2.5

Affected Packages

maven org.springframework.statemachine:spring-statemachine-kryo fix: 4.0.2
euvd spring_statemachine fix: 3.2.5, 4.0.1.1

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

Vendor (vmware) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vmware).

CVSS VectorVendor: vmware

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Jun 23, 2026 - 22:02 EUVD
CVE Published
Jun 23, 2026 - 21:16 cve.org
HIGH 8.8

DescriptionCVE.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

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Medium
Spring library used in Java apps needing workflow state machines, not ubiquitous
Threat Intel
1
1 sources
Social Media
3
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy