CVE-2026-42555
Valtimo has SpEL injection via StandardEvaluationContext that allows Remote Code Execution by admin users
Description
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/migratePOST /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:
val evaluationContext = SimpleEvaluationContext
.forPropertyAccessors(MapAccessor(), jsonPropertyAccessor)
.build()
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.ritense.valtimo » case | >= 13.0.0, < 13.23.0 | 13.23.0 |
| com.ritense.valtimo » contract | >= 13.4.0, < 13.23.0 | 13.23.0 |
| com.ritense.valtimo » document | >= 12.0.0, < 12.32.0 | 12.32.0 |
Blast radius
9% of the dependent artifacts (10) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 3,647 |
| 2 hops | 950 |
| 3 hops | 582 |
| 4 hops | 70 |
| 5 hops | 8 |
Most used dependents
- com.ritense.valtimo » core71 usages
- com.ritense.valtimo » value-resolver49 usages
- com.ritense.valtimo » case42 usages
- com.ritense.valtimo » process-document39 usages
- com.ritense.valtimo » plugin-valtimo36 usages
- com.ritense.valtimo » plugin32 usages
- com.ritense.valtimo » authorization28 usages
- com.ritense.valtimo » logging28 usages
- com.ritense.valtimo » importer25 usages
- com.ritense.valtimo » exporter23 usages
- com.ritense.valtimo » temporary-resource-storage23 usages
- com.ritense.valtimo » resource22 usages
- com.ritense.valtimo » web19 usages
- com.ritense.valtimo » zaken-api14 usages
- com.ritense.valtimo » zgw12 usages
Computed from the dependency graph of build 20261203.1441 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-42555 | nvd.nist.gov |
| Package | valtimo-platform/valtimo | github.com |
| Web | valtimo-platform/valtimo advisory GHSA-j7j9-5253-f7vh | github.com |
