/

CVE-2026-77230

CVE-2026-77230: The Session Store That Rebuilt Whatever You Wrote Into It


CVE-2026-77230

CVSS:3.1/

Hemanshu Baviskar

CONTENTS

0% READ
Xen: The first copy failed. The second skipped the check.

Camunda 8 can persist web sessions to Elasticsearch so they survive a pod restart, which any multi-replica deployment needs. Session attributes go in as base64 Java serialization and come back through an ObjectInputStream with no ObjectInputFilter installed. Anyone who can write a document to the session index therefore chooses what the application reconstructs, and the attacker triggers the read themselves by presenting the matching cookie. No victim, no credentials, no user interaction. A data-store position becomes code execution on the orchestration node.

TL;DR

  • The defect. MigratingWebSessionAttributeConverter reads session attributes through a private ObjectInputStream subclass that overrides resolveClass for one purpose, renaming a single class after a refactor, and then defers to super for everything else. There is no allowlist and no setObjectInputFilter call anywhere in the file.

  • What it grants. Code execution as the Camunda service account, which means every tenant's process data, in-memory credentials, and the ability to deploy and run arbitrary BPMN.

  • The tell. resolveClass is overridden, so somebody was thinking about class resolution on this stream. They were thinking about compatibility, not about what else super.resolveClass will load.

  • Reach. The persistent session feature is off by default but required for multi-replica deployments. Of the 18 compose files in the repository that define an Elasticsearch service, 16 set xpack.security.enabled=false and none set it true, so the Elasticsearch half of the precondition is what the project's own quickstarts hand you.

  • Status. Reproduced on camunda/camunda:8.10.0-alpha4. Fixed in 8.8.47, 8.9.29 and 8.10.10.

At a Glance

CVE

CVE-2026-77230

Product

Camunda 8 Orchestration Cluster, persistent web session store

Class

CWE-502, Deserialization of Untrusted Data

Root cause

Session attributes are deserialized through an ObjectInputStream with no ObjectInputFilter, so any class on the classpath can be reconstructed

Impact

Code execution as the Camunda service account for anyone with write access to the session index

Affected

8.8.0 before 8.8.47, 8.9.0 before 8.9.29, 8.10.0 before 8.10.10, and 8.11.0-alpha1

Fixed

8.8.47, 8.9.29, 8.10.10

Severity

8.1 CVSS 3.1 / 9.2 CVSS 4.0 (Critical)

Disclosure

Reported through VulnCheck as CNA. Published 25 November 2026

Credit

CodeAnt AI Security Research Team

Why Sessions Are in Elasticsearch at All

Camunda 8's web applications hold a session per signed-in user. Run one replica and that session can live in memory. Run two, or let Kubernetes reschedule a pod, and an in-memory session disappears underneath the user. So Camunda offers persistent web sessions, writing the session and its attributes into Elasticsearch, where every replica can read them.

That is a sensible design, and it quietly moves a trust boundary. The session store stops being internal state and becomes an input: data that arrives from outside the process and gets turned back into live Java objects. Whether that is safe depends entirely on what the deserializer is willing to construct.

The stored form really is Java serialization. Reading a live session document shows it:

id: 604e5608b1c3476887ec18292fb758cf
attributes: {'SPRING_SECURITY_CONTEXT': 'rO0ABXNyAD1vcmcuc3ByaW5nZnJhbWV3b3Jr...'}
id: 604e5608b1c3476887ec18292fb758cf
attributes: {'SPRING_SECURITY_CONTEXT': 'rO0ABXNyAD1vcmcuc3ByaW5nZnJhbWV3b3Jr...'}
id: 604e5608b1c3476887ec18292fb758cf
attributes: {'SPRING_SECURITY_CONTEXT': 'rO0ABXNyAD1vcmcuc3ByaW5nZnJhbWV3b3Jr...'}

rO0ABX is base64 for the bytes ac ed 00 05, the Java serialization stream magic.

A resolveClass Override That Solves the Wrong Problem

dist/src/main/java/io/camunda/application/commons/identity/MigratingWebSessionAttributeConverter.java:68-80:

private static final class MigratingObjectInputStream extends ObjectInputStream {

  MigratingObjectInputStream(final InputStream in) throws IOException {
    super(in);
  }

  @Override
  protected Class<?> resolveClass(final ObjectStreamClass desc)
      throws IOException, ClassNotFoundException {
    final Class<?> remapped = CLASS_RENAMES.get(desc.getName());
    return remapped != null ? remapped : super.resolveClass(desc);
  }
}
private static final class MigratingObjectInputStream extends ObjectInputStream {

  MigratingObjectInputStream(final InputStream in) throws IOException {
    super(in);
  }

  @Override
  protected Class<?> resolveClass(final ObjectStreamClass desc)
      throws IOException, ClassNotFoundException {
    final Class<?> remapped = CLASS_RENAMES.get(desc.getName());
    return remapped != null ? remapped : super.resolveClass(desc);
  }
}
private static final class MigratingObjectInputStream extends ObjectInputStream {

  MigratingObjectInputStream(final InputStream in) throws IOException {
    super(in);
  }

  @Override
  protected Class<?> resolveClass(final ObjectStreamClass desc)
      throws IOException, ClassNotFoundException {
    final Class<?> remapped = CLASS_RENAMES.get(desc.getName());
    return remapped != null ? remapped : super.resolveClass(desc);
  }
}

The class exists to survive a refactor. io.camunda.security.auth.CamundaAuthentication moved package, so sessions written before the move would fail to load after it, and CLASS_RENAMES maps the old name to the new one. For every other class name, the method hands off to super.resolveClass, which resolves anything on the classpath.

This is the detail worth sitting with. resolveClass is exactly the hook you override to constrain deserialization. It was overridden here, which means a developer was looking at class resolution on this stream and shipped a change to it. The change was about compatibility. Nothing in the file mentions what else the stream will now happily construct: a grep for ObjectInputFilter or setObjectInputFilter across the file returns zero matches.

The gadget that makes this matter is in the image. The repository pins commons-collections at version 20040616 in parent/pom.xml:180, which is the artifact published as 3.1-RC1; its InvokerTransformer carries no readObject guard, because Apache added that in 3.2.2 in 2015. The published CVE record names the same library as the route to code execution.

Two Preconditions, and the Project Ships One of Them

There are exactly two, and nothing else. No victim interaction, no valid session, no application credentials.

One: write access to Camunda's Elasticsearch. This is where the finding gets uncomfortable, because the project's own compose files hand it over. Measured at commit 8cd021870f4:

Compose files in the repository that define an Elasticsearch service

18

Set xpack.security.enabled=false

16

Set it true

0

Set no xpack.security key at all

2

Compose files publishing 9200:9200

19

In that shape no credentials are required for step one at all.

Two: camunda.security.session.persistent.enabled=true. This is off by default, and we are not going to pretend otherwise. It is also what you turn on the moment you run more than one replica, because without it sessions are lost whenever a pod restarts. Legacy keys such as camunda.operate.persistent.sessions.enabled bridge onto it through PersistentWebSessionPropertiesPostProcessor, so an older configuration can enable it without naming the new property.

The honest summary of reach is that this is a non-default feature combined with a default-insecure dependency, and the overlap is production multi-replica clusters, which is also where the data is.

Proving Reachability Without Writing an Exploit

The reachability check deliberately carries no gadget. It writes a session document whose attribute is the ASCII string NOT-VALID-JAVA-SERIALIZATION, then presents the matching cookie with no credentials:

Step

Request

Result

1

write a session document straight into Elasticsearch

201, no application credentials used

2

GET /operate/api/authentications/user with the matching cookie, unauthenticated

200

3

read the server log

StreamCorruptedException: invalid stream header: 4E4F542D

4E4F542D is hex for NOT-. Those are the marker bytes, and the stack frame names the line:

Caused by: java.io.StreamCorruptedException: invalid stream header: 4E4F542D
    at ...MigratingWebSessionAttributeConverter$MigratingObjectInputStream.<init>(:71)
    at ...MigratingWebSessionAttributeConverter$MigratingDeserializer.deserialize(:60)
Caused by: java.io.StreamCorruptedException: invalid stream header: 4E4F542D
    at ...MigratingWebSessionAttributeConverter$MigratingObjectInputStream.<init>(:71)
    at ...MigratingWebSessionAttributeConverter$MigratingDeserializer.deserialize(:60)
Caused by: java.io.StreamCorruptedException: invalid stream header: 4E4F542D
    at ...MigratingWebSessionAttributeConverter$MigratingObjectInputStream.<init>(:71)
    at ...MigratingWebSessionAttributeConverter$MigratingDeserializer.deserialize(:60)

The deserializer ran on attacker-supplied bytes delivered by an unauthenticated request, and it refused them only because they were invalid by design. Valid serialized bytes get reconstructed instead. That is the whole claim of this finding, and it is proven with a string that could not execute anything.

The step from there to command execution is established separately, by a sibling finding in the same batch that drove a transformer chain to Runtime.exec on this same shipped classpath. We are explicit about the split: this post proves the path, that one proves the payload, and no weaponised payload was written for this path.

Severity

Metric

Value

CVSS 3.1

8.1, CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS 4.0

9.2, CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Network reachable, no privileges where Elasticsearch ships unauthenticated, no user interaction, and High across confidentiality, integrity and availability because the outcome is code execution as the service account.

AC:H is the metric that caps it, and it is the record's judgement rather than our original one. Our report argued AC:L and scored 9.8, on the reasoning that neither precondition is an obstacle the attacker overcomes: they are configuration states that either hold or do not. The published record takes AC:H, which prices the conjunction of the non-default session feature, the reachable Elasticsearch and the gadget chain, and brings 3.1 to 8.1. We think AC:H is defensible and we are headlining it. It is also worth knowing the other direction: where an operator has put credentials on Elasticsearch, the attacker must obtain those first, and the realistic vector drops to roughly PR:H and 7.2 under 3.1.

Note that the two versions disagree on the word. The same facts are Critical under 4.0 and High under 3.1. Both are in the table because picking the flattering one would be a choice, not a finding.

Detection and Fix

Upgrade. Camunda fixed this in 8.8.47, 8.9.29 and 8.10.10. That is the durable remedy.

The durable code fix is to install an ObjectInputFilter allowlist on that stream, so resolveClass is no longer the only thing standing between the session index and the classpath:

MigratingObjectInputStream(final InputStream in) throws IOException {
  super(in);
  setObjectInputFilter(ObjectInputFilter.Config.createFilter(
      "io.camunda.security.api.model.*;org.springframework.security.core.**;java.util.*;java.lang.*;!*"));
}
MigratingObjectInputStream(final InputStream in) throws IOException {
  super(in);
  setObjectInputFilter(ObjectInputFilter.Config.createFilter(
      "io.camunda.security.api.model.*;org.springframework.security.core.**;java.util.*;java.lang.*;!*"));
}
MigratingObjectInputStream(final InputStream in) throws IOException {
  super(in);
  setObjectInputFilter(ObjectInputFilter.Config.createFilter(
      "io.camunda.security.api.model.*;org.springframework.security.core.**;java.util.*;java.lang.*;!*"));
}

Better still, stop storing session attributes as Java serialization. A JSON representation of the authentication removes the sink entirely, and it makes the class-rename shim that this class exists for unnecessary, since renaming a field in JSON is not a compatibility event.

If you cannot upgrade immediately, these reduce exposure, each with a cost, and the untested ones are reasoned from the code path rather than measured:

  • Enable authentication on Elasticsearch and rotate to real credentials. This removes the unauthenticated write and is worth doing regardless of this CVE, since the compose files in the repository do not do it for you. The cost is that every client of that cluster needs configuring.

  • Ensure port 9200 is not reachable from outside the cluster network. This narrows who can attempt the write without changing what happens if they can.

  • Turn off persistent sessions if you genuinely run a single replica. The cost is that users are signed out whenever the pod restarts, which is why multi-replica deployments cannot take this option.

Detection is effectively absent. A poisoned session document is indistinguishable from a legitimate one without decoding the attribute, and a successful deserialization logs nothing at all. The only visible event in our lab was the failed attempt, and it was visible precisely because we made the bytes invalid on purpose.

Credit and Scope

Finding

CodeAnt AI Security Research Team

What we claim

Session attributes are deserialized with no ObjectInputFilter, and an unauthenticated caller drove attacker-supplied bytes into that stream on the published 8.10.0-alpha4 image, proven by a marker byte sequence in the resulting exception.

What we do not claim

No weaponised payload was written for this path; the step to command execution is carried by a sibling finding on the same classpath. No prevalence measurement: we did not scan for exposed Elasticsearch clusters or for deployments with persistent sessions enabled. We did not test every affected 8.x line, only 8.10.0-alpha4.

Related

Reported in the same batch as a Camunda 8 cluster-transport deserialization finding that supplies the gadget chain, and as CVE-2026-77224, a Camunda 7 XXE with an unrelated root cause. The sibling Camunda 8 CVE is pending publication.

Coordination

Reported through VulnCheck as CNA. Fixed in 8.8.47, 8.9.29 and 8.10.10.

More from CodeAnt

  • CVE-2026-77224: the XXE fix that was applied to one copy of two

  • CVE-2026-109432: the ad-hoc query validator that had nothing to validate

  • CVE-2026-77226: the first-run setup endpoint that counts one table while the engine reads two config lists

Find out what is already exploitable in your codebase. Book a demo or start a free trial at codeant.ai.

Frequently Asked
Questions
What is CVE-2026-77230?
Does this affect every Camunda 8 installation?
Does an attacker need an account?
Why does the deserializer fail the way it does?
What can an attacker actually do with it?
How is this different from CVE-2026-77224?
How do I fix CVE-2026-77230?
Find out what's already
exploitable in your codebase.