Vulnerabilities in pkg:maven/com.ritense.valtimo/contract
PACKAGECVE-2026-42555 is a CRITICAL (CVSS 9.1) remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Document libraries in the Maven ecosystem. The issue involves valtimo has spel injection via standardevaluationcontext that allows remote code execution by admin users. Remediation is available by upgrading affected packages to version 12.32.0, 13.23.0.
pkg:maven/com.ritense.valtimo/contract
Vulnerability advisories affecting package pkg:maven/com.ritense.valtimo/contract. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-j7j9-5253-f7vh | CVE-2026-42555 | CRITICAL | Valtimo has SpEL injection via StandardEvaluationContext that allows Remote Code Execution by admin users |
CVE-2026-42555 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2026-42555
To remediate this vulnerability, upgrade all affected Document dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.ritense.valtimo</groupId>
<artifactId>document</artifactId>
<version>12.32.0</version>
</dependency>
<dependency>
<groupId>com.ritense.valtimo</groupId>
<artifactId>case</artifactId>
<version>13.23.0</version>
</dependency>
<dependency>
<groupId>com.ritense.valtimo</groupId>
<artifactId>contract</artifactId>
<version>13.23.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.ritense.valtimo
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-42555, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.ritense.valtimo
Analyze the terminal output to locate any version of Document in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.32.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.ritense.valtimo command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Document, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-42555 Affected Document Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.ritense.valtimo:document
|
Maven |
≥ 12.0.0
< 12.32.0
|
12.32.0
|
|
com.ritense.valtimo:case
|
Maven |
≥ 13.0.0
< 13.23.0
|
13.23.0
|
|
com.ritense.valtimo:contract
|
Maven |
≥ 13.4.0
< 13.23.0
|
13.23.0
|
References
Frequently Asked Questions
What is CVE-2026-42555?
Which Document versions are affected?
What version fixes CVE-2026-42555?
Is document affected?
Is case affected?
What is the CVSS score of CVE-2026-42555?
What CWE is associated with CVE-2026-42555?
How can I check Maven dependencies for CVE-2026-42555?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j7j9-5253-f7vh",
"modified" : "2026-05-14T20:52:47Z",
"published" : "2026-05-06T21:41:44Z",
"aliases" : [ "CVE-2026-42555" ],
"summary" : "Valtimo has SpEL injection via StandardEvaluationContext that allows Remote Code Execution by admin users",
"details" : "### Summary\n\nMultiple classes evaluate Spring Expression Language (SpEL) expressions from user-supplied input using `StandardEvaluationContext`, which provides unrestricted access to Java types and methods. An authenticated user with the ADMIN role can achieve Remote Code Execution and credential exfiltration.\n\n### Impact\n\nAn attacker with ADMIN credentials can:\n- **Execute arbitrary OS commands** via `T(java.lang.Runtime).getRuntime().exec('...')`\n- **Exfiltrate all environment variables** (database passwords, API keys, Keycloak secrets) via `T(java.lang.System).getenv()`\n- **Read JVM system properties** via `T(java.lang.System).getProperties()`\n- **Load arbitrary classes** via `T(java.lang.Class).forName('...')`\n\n### Affected Components\n\n**1. DocumentMigrationService** (since 12.0.0)\n\nExploitable through the document migration REST API:\n- `POST /api/management/v1/document-definition/migrate`\n- `POST /api/management/v1/document-definition/migration/conflicts`\n\nThe malicious SpEL expression is supplied in the `source` or `target` field of a `DocumentMigrationPatch` object in the request body, using the `${...}` template syntax.\n\n- In 12.x: `com.ritense.document.service.DocumentMigrationService#handleSpelExpression` (document module)\n- In 13.x: same class, moved to the case module\n\n**2. Condition** (since 13.4.0)\n\nExploitable through any admin-configured widget, dashboard, or feature that uses the `Condition` framework. The SpEL expression is supplied in the `value` field of a condition's JSON configuration.\n\n- `com.ritense.valtimo.contract.conditions.Condition#resolveValue` (contract module)\n\nThis component has a significantly wider attack surface than DocumentMigrationService, as conditions are used across many modules.\n\n### Remediation\n\nReplace `StandardEvaluationContext` with `SimpleEvaluationContext` in both affected classes, which disallows Java type references and arbitrary method invocation:\n\n```kotlin\nval evaluationContext = SimpleEvaluationContext\n .forPropertyAccessors(MapAccessor(), jsonPropertyAccessor)\n .build()\n```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.ritense.valtimo:document"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.0.0"
}, {
"fixed" : "12.32.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.ritense.valtimo:case"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "13.0.0"
}, {
"fixed" : "13.23.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.ritense.valtimo:contract"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "13.4.0"
}, {
"fixed" : "13.23.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/valtimo-platform/valtimo/security/advisories/GHSA-j7j9-5253-f7vh"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42555"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/valtimo-platform/valtimo"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-06T21:41:44Z",
"nvd_published_at" : "2026-05-14T17:16:21Z"
}
}