In 2018 Camunda copied its XML data format out of the Spin library and into the external task client, so the client would stop depending on Spin. In 2021 Camunda hardened the original against XXE. The copy never received that fix. The result is an engine that refuses to parse a poisoned XML variable for itself, logs the refusal, and then forwards the identical bytes to every worker that asks for the variable, where they are parsed by a factory with no entity protections at all.
TL;DR
The defect.
DomXmlDataFormat.defaultDocumentBuilderFactory()in the external task client returns aDocumentBuilderFactorywith no entity switches, no DOCTYPE ban, and no secure processing. The engine-side twin of the same method disables all of it by default.What it grants. Arbitrary file read on the worker host plus arbitrary outbound HTTP from the worker's network position, triggered by one process-variable write. Proven end to end: a worker built against the shipped client jar read a file off its own disk and the contents reached an attacker-controlled web server.
The tell. The engine judges the document unsafe for itself.
GET .../variables/payloadreturnsSPIN/DOM-XML-01009 Unable to parse input into DOM document. The same variable fetched the way a worker fetches it returns the payload verbatim.Reach. Stock code, no configuration required. The XML data format is one of three providers registered by default in
META-INF/services. The exposure follows anyone running external task workers, which is the library's only purpose.Status. Reproduced on 7.24.0. Fixed in Camunda 7.24.14 and 7.23.17.
At a Glance
CVE | CVE-2026-77224 |
Product | Camunda 7, |
Class | CWE-611, Improper Restriction of XML External Entity Reference |
Root cause | A 2018 fork of Spin's XML data format never received Spin's 2021 XXE hardening |
Impact | File read and outbound HTTP from every worker JVM that deserializes the poisoned variable |
Affected | Camunda 7.24.0 before 7.24.14, and 7.23.0 before 7.23.17 |
Fixed | 7.24.14, 7.23.17 |
Severity | 7.5 CVSS 3.1 / 8.7 CVSS 4.0 (High) |
Disclosure | Reported through VulnCheck as CNA. Published 17 November 2026 |
Credit | CodeAnt AI Security Research Team |

The Worker Is a Second JVM, Somewhere Else
Camunda's external task pattern exists so that work can run outside the engine. A worker application, written by the customer and linking camunda-external-task-client, calls fetchAndLock, does the work, and reports back. Workers normally sit deeper in the network than the engine, because that is the point: the engine sits near the front, the worker sits near the payment system or the document store the task actually touches.
Process variables travel that path. For an object variable the engine stores the serialized form plus a serializationDataFormat string saying how to read it back, and it stores that form without parsing it. It is a byte pipe. Whatever is written at one end arrives at the other.
That makes the worker's parser a boundary in its own right, and it is the parser that was never hardened.
One Method, Two Copies, One Fix
The engine-side class guards its factory on construction. spin/dataformat-xml-dom/src/main/java/org/camunda/spin/impl/xml/dom/format/DomXmlDataFormat.java:230-236:
XXE_PROPERTY defaults to false and SP_PROPERTY to true (:52-53), so both helpers run unless an operator opts out. disableXxeProcessing() sets external-general-entities false, disallow-doctype-decl true, load-external-dtd false, external-parameter-entities false, setXIncludeAware(false) and setExpandEntityReferences(false). enableSecureProcessing() adds FEATURE_SECURE_PROCESSING.
The client's copy of that method, clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java:272-288, is the same method with the security block missing:
The four shared lines are identical, including their ordering and their logging calls. This is a copy, not a coincidence. A search for disallow-doctype-decl, external-general-entities, external-parameter-entities, load-external-dtd or FEATURE_SECURE_PROCESSING across the entire clients/ tree returns zero matches.
The dates make the sequence plain:
Date | Commit | Effect |
|---|---|---|
2018-04-20 |
| refact(spin): remove camunda spin dependency. The client forks Spin's XML data format. |
2021-12-10 |
| fix(spin): add configurable xml parsing protection. The original is hardened, three and a half years later. |
(never) | The fork receives license headers and a |
This is the strongest available evidence that the behaviour is unintended: the project wrote the fix itself and applied it at one of the two sites.
Reaching the Unhardened Parser
The dispatch is attacker-controlled. clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/mapper/ObjectValueMapper.java:81:
dataFormat is chosen by the variable's serializationDataFormat field, which the attacker sets when writing the variable. Three providers ship registered in META-INF/services/org.camunda.bpm.client.spi.DataFormatProvider: Jackson JSON, Java serializable, and this XML one. Asking for application/xml is enough to select it.
Inside the XML format, readValue(String, String) at :116 resolves the type before it parses anything:
Then readValue(String, Class) at :129 calls readAsElement(value), which runs the document through the unhardened factory. Nothing between the HTTP write and that parse inspects the XML.
The Asymmetry, Measured
The clearest evidence is a single stored value read two different ways. The write needs no credentials on an engine with authentication off, which is the shipped default:
Request | What it represents | Result |
|---|---|---|
| the attacker plants the variable |
|
| the engine deserializes it for itself |
|
| what | the DOCTYPE and entity declaration returned verbatim |
worker calls | ordinary library use | file contents land in the object graph |
The third row is the bug in one line. The engine has already decided the document is unsafe, and it forwards it anyway, because for object variables it is only a pipe.
A worker built against the shipped camunda-external-task-client-7.24.0 with an ordinary JAXB DTO printed the file it had just been made to read:
The worker did nothing unusual. Its handler called getVariable(), which is how the library is meant to be used.
Because external-parameter-entities and load-external-dtd are equally unset, the contents leave the host. A parameter-entity DTD pointing at an attacker server produced these two lines in that server's log:
The second line is the content of a file on the worker's disk, delivered to the attacker.
Reach, and the Honest Ceiling
No configuration is required and no feature needs enabling. The limits are in the technique, not the deployment:
Standard XXE exfiltration is lossy. It mangles on
&,%and<, and generally stops at the first newline. It is very effective against single-line high-value secrets such as API keys and service-account tokens, and poor against binaries.This is not remote code execution, and we do not claim it. Every generic route from file read to worker code execution was tested and closed: Java-serialized variables are rejected at all seven write paths probed (
ENGINE-17007 ... Java serialization format is prohibited), Jackson'sSubTypeValidatorrefuses the usual gadget, and on JDK 21 the JPMS blocks the JAXB route. On JDK 11, which 7.24 supports, a JAXB gadget does reach an attacker-controlled JNDI lookup, but remote codebase loading is off by default since 8u191 and an LDAP server answering withjavaSerializedDatawas refused withObject deserialization is not allowed. The client's compile-scope dependencies carry no weaponizable local factory. On a customer's wider classpath, a Spring Boot worker carrying dozens of libraries, this plausibly does become worker code execution, but that is a property of their classpath and not claimed here.Camunda 8 is not affected. The shared-artifact path was investigated and does not carry this code.

Severity
Metric | Value |
|---|---|
CVSS 3.1 | 7.5, |
CVSS 4.0 | 8.7, |
Network reachable, no privileges on a default engine, no user interaction, and a single HTTP write starts it. Confidentiality is High because arbitrary file read was demonstrated. I:N and A:N are the honest cap: XXE yields no write primitive, and we did not demonstrate one.
One divergence is worth stating plainly rather than hiding. Our report argued for S:C under 3.1, on the grounds that the vulnerable component is the engine while the impacted component is a different JVM, usually on a different host, in a network zone the engine cannot reach. That reading gives 8.6 under 3.1 and SC:H gives 9.2 Critical under 4.0. The published record scores S:U and SC:N, which is what this post headlines, even though the record's own description refers to exfiltration "from network segments deeper than the engine itself". We think the cross-boundary case is the more faithful description of the mechanism, we have said so, and we are not going to publish a higher number than the record carries. Note also that on an engine where the REST API requires authentication the attacker needs permission to write a process variable, and PR:L drops the 3.1 figure to 6.5.
Detection and Fix
Upgrade. Camunda fixed this in 7.24.14 and 7.23.17. That is the durable remedy, and it is the only one that closes the parser.
The durable code fix is to delete the fork and depend on Spin again, so that one hardening covers both call sites. Short of that, port the 2021 configuration into the client's factory: disallow-doctype-decl true, external-general-entities false, external-parameter-entities false, load-external-dtd false, FEATURE_SECURE_PROCESSING true, setXIncludeAware(false), setExpandEntityReferences(false). Separately, stop handing an attacker-controlled string to loadClass: an allowlist of expected variable types removes the JAXB gadget surface regardless of JDK. The same 2018 refactor also produced the client's Jackson and Java-serialization formats, which deserve the project's own sweep.
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:
Require authentication on the REST API and restrict variable-write permission. This does not fix the parser; it raises the privilege needed to reach it from none to
PR:L.Remove
DomXmlDataFormatProviderfrom the worker'sMETA-INF/servicesregistration, or register a replacement data format forapplication/xmlbuilt on a hardened factory. This breaks any legitimate use of XML object variables in that worker.Deny egress from worker hosts except to destinations they need. This does not stop the file read, but it removes the out-of-band channel that carries the contents out.
Detection is thin by design. Nothing logs the parse. A successful file read looks like an ordinary task completion, and a successful exfiltration looks like one outbound HTTP request from a host that legitimately makes outbound HTTP requests. The engine's own SPIN/DOM-XML-01009 refusal is written only if something reads the variable engine-side, which normal operation does not do.
Credit and Scope
Finding | CodeAnt AI Security Research Team |
What we claim | The fork is unhardened, the engine forwards a document it refused to parse, and a worker built against the shipped 7.24.0 client read a local file and exfiltrated its contents out of band. All reproduced in a local lab with benign markers. |
What we do not claim | No remote code execution. No prevalence measurement; we did not scan for exposed deployments. The JDK 11 JAXB-to-JNDI observation is a severity note, version dependent, and not the finding. Worker code execution on a customer's wider classpath is plausible and unproven. |
Related | Reported in the same batch as CVE-2026-77226, a separate Camunda 7 authorization defect with an unrelated root cause. Other findings from the batch are pending publication. |
Coordination | Reported through VulnCheck as CNA. Fixed in 7.24.14 and 7.23.17. |
More from CodeAnt
CVE-2026-77226: the first-run setup endpoint that counts one table while the engine reads two config lists
CVE-2026-109432: the ad-hoc query validator that had nothing to validate
CVE-2026-109431: the authorization check four Camunda task endpoints skip
Find out what is already exploitable in your codebase. Book a demo or start a free trial at codeant.ai.






