Vulnerabilities in pkg:maven/com.ritense.valtimo/case

PACKAGE
Advisory Identifier: GHSA-j7j9-5253-f7vh
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.ritense.valtimo/case

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.ritense.valtimo/case. 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

CVE Identifier CVE-2026-42555
GHSA Identifier GHSA-j7j9-5253-f7vh
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Document
Package Ecosystem Maven
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

com.ritense.valtimo:document fixed: 12.32.0
<dependency>
    <groupId>com.ritense.valtimo</groupId>
    <artifactId>document</artifactId>
    <version>12.32.0</version>
</dependency>
com.ritense.valtimo:case fixed: 13.23.0
<dependency>
    <groupId>com.ritense.valtimo</groupId>
    <artifactId>case</artifactId>
    <version>13.23.0</version>
</dependency>
com.ritense.valtimo:contract fixed: 13.23.0
<dependency>
    <groupId>com.ritense.valtimo</groupId>
    <artifactId>contract</artifactId>
    <version>13.23.0</version>
</dependency>
Verify Direct and Transitive Dependencies

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

### Summary Multiple 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. ### Impact An attacker with ADMIN credentials can: - **Execute arbitrary OS commands** via `T(java.lang.Runtime).getRuntime().exec('...')` - **Exfiltrate all environment variables** (database passwords, API keys, Keycloak secrets) via `T(java.lang.System).getenv()` - **Read JVM system properties** via `T(java.lang.System).getProperties()` - **Load arbitrary classes** via `T(java.lang.Class).forName('...')` ### Affected Components **1. DocumentMigrationService** (since 12.0.0) Exploitable through the document migration REST API: - `POST /api/management/v1/document-definition/migrate` - `POST /api/management/v1/document-definition/migration/conflicts` The malicious SpEL expression is supplied in the `source` or `target` field of a `DocumentMigrationPatch` object in the request body, using the `${...}` template syntax. - In 12.x: `com.ritense.document.service.DocumentMigrationService#handleSpelExpression` (document module) - In 13.x: same class, moved to the case module **2. Condition** (since 13.4.0) Exploitable 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. - `com.ritense.valtimo.contract.conditions.Condition#resolveValue` (contract module) This component has a significantly wider attack surface than DocumentMigrationService, as conditions are used across many modules. ### Remediation Replace `StandardEvaluationContext` with `SimpleEvaluationContext` in both affected classes, which disallows Java type references and arbitrary method invocation: ```kotlin val evaluationContext = SimpleEvaluationContext .forPropertyAccessors(MapAccessor(), jsonPropertyAccessor) .build() ```

CVE-2026-42555 Affected Document Versions

3 component(s)
Fixed Versions:
12.32.013.23.0
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?
CVE-2026-42555 is a security vulnerability in Document involving Valtimo has SpEL injection via StandardEvaluationContext that allows Remote Code Execution by admin users under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Document versions are affected?
Affected versions include releases prior to 12.32.0, 13.23.0 across affected packages: com.ritense.valtimo:document, com.ritense.valtimo:case, com.ritense.valtimo:contract.
What version fixes CVE-2026-42555?
Upgrading to 12.32.0, 13.23.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is document affected?
Yes, com.ritense.valtimo:document is affected in releases prior to 12.32.0. Upgrade your dependency to 12.32.0 or later.
Is case affected?
Yes, com.ritense.valtimo:case is affected in releases prior to 13.23.0. Upgrade your dependency to 13.23.0 or later.
What is the CVSS score of CVE-2026-42555?
CVE-2026-42555 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-42555?
CVE-2026-42555 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check Maven dependencies for CVE-2026-42555?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.ritense.valtimo'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}