NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2026-42555: Valtimo has SpEL injection via StandardEvaluationContext that allows Remote Code Execution by admin users

criticalCVSS 3.1 9.1GHSA-j7j9-5253-f7vh

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.

Published May 6, 2026 · Updated May 14, 2026

Affected packages

com.ritense.valtimo:document

Ecosystem
Maven
Affected
>= 12.0.0, < 12.32.0
Fixed in
12.32.0
Check
mvn dependency:tree -Dincludes=com.ritense.valtimo:document

com.ritense.valtimo:case

Ecosystem
Maven
Affected
>= 13.0.0, < 13.23.0
Fixed in
13.23.0
Check
mvn dependency:tree -Dincludes=com.ritense.valtimo:case

com.ritense.valtimo:contract

Ecosystem
Maven
Affected
>= 13.4.0, < 13.23.0
Fixed in
13.23.0
Check
mvn dependency:tree -Dincludes=com.ritense.valtimo:contract

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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:

val evaluationContext = SimpleEvaluationContext
    .forPropertyAccessors(MapAccessor(), jsonPropertyAccessor)
    .build()

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology