---
id: CVE-2026-41862
title: >-
  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 re…
summary: >-
  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 re…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-502
vendor: broadcom
product: spring_statemachine
affected:
  - 'spring_statemachine >= 3.2.0, < 3.2.5'
  - 'spring_statemachine >= 4.0.0, < 4.0.2'
patched:
  - spring_statemachine 4.0.2
published: '2026-06-23'
updated: '2026-09-22'
sourceUpdated: '2026-09-22T15:23:28.377'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-41862'
references:
  - url: 'https://spring.io/security/cve-2026-41862'
    label: security@vmware.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-41862'
  - url: >-
      https://github.com/spring-attic/spring-statemachine/commit/6b77ea6b729e5346d83e31f36c43818665d67384
  - url: 'https://github.com/spring-attic/spring-statemachine/releases/tag/v4.0.2'
  - url: 'https://github.com/advisories/GHSA-85qj-f5wg-rwp9'
tags:
  - nvd
  - ghsa
  - maven
epss: 0.00762
epssPercentile: 0.53398
ingestedAt: '2026-09-22T16:06:00.457Z'
aliases:
  - GHSA-85qj-f5wg-rwp9
ecosystem: maven
---

## Overview

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

## Affected

- `spring_statemachine >= 3.2.0, < 3.2.5`
- `spring_statemachine >= 4.0.0, < 4.0.2`

## Remediation

Upgrade past the affected range:

- `spring_statemachine 4.0.2`

## Package advisory (CVE-2026-41862)

Affected packages:

- `org.springframework.statemachine:spring-statemachine-kryo >= 3.2.0, <= 3.2.4`
- `org.springframework.statemachine:spring-statemachine-kryo >= 4.0.0, <= 4.0.1`

Patched in:

- `org.springframework.statemachine:spring-statemachine-kryo 4.0.2`

Source: https://github.com/advisories/GHSA-85qj-f5wg-rwp9
