{"id":"CVE-2026-42555","aliases":["CVE-2026-42555","GHSA-j7j9-5253-f7vh"],"related":[],"kind":"vulnerability","state":"published","title":"Valtimo: SpEL injection via StandardEvaluationContext allows Remote Code Execution by admin users","summary":"Valtimo is an open-source business process automation platform. com.ritense.valtimo:document from 12.0.0 to before 12.32.0, com.ritense.valtimo:case from 13.0.0 to before 13.23.0, and com.ritense.valtimo:contract from 13.4.0 to before 13.23.0 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. This vulnerability is fixed in com.ritense.valtimo:document 2.32.0, com.ritense.valtimo:case 13.23.0, and com.ritense.valtimo:contract 13.23.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Valtimo is an open-source business process automation platform. com.ritense.valtimo:document from 12.0.0 to before 12.32.0, com.ritense.valtimo:case from 13.0.0 to before 13.23.0, and com.ritense.valtimo:contract from 13.4.0 to before 13.23.0 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. This vulnerability is fixed in com.ritense.valtimo:document 2.32.0, com.ritense.valtimo:case 13.23.0, and com.ritense.valtimo:contract 13.23.0.","source":"cvelist"},{"lang":"en","text":"### 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```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Valtimo es una plataforma de automatización de procesos de negocio de código abierto. com.ritense.valtimo:document desde 12.0.0 hasta antes de 12.32.0, com.ritense.valtimo:case desde 13.0.0 hasta antes de 13.23.0, y com.ritense.valtimo:contract desde 13.4.0 hasta antes de 13.23.0 evalúan expresiones de Spring Expression Language (SpEL) a partir de entradas proporcionadas por el usuario utilizando StandardEvaluationContext, lo que proporciona acceso sin restricciones a tipos y métodos de Java. Un usuario autenticado con el rol ADMIN puede lograr la ejecución remota de código y la exfiltración de credenciales. Esta vulnerabilidad está corregida en com.ritense.valtimo:document 2.32.0, com.ritense.valtimo:case 13.23.0, y com.ritense.valtimo:contract 13.23.0.","source":"nvd"}],"published":"2026-05-06T21:41:44.000Z","modified":"2026-10-25T23:10:00.167Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"< 13.23.0","status":"affected"}],"vendor":"valtimo-platform","product":"valtimo","source":"cvelist"},{"ranges":[{"version":">= 13.0.0, < 13.23.0","status":"affected"}],"vendor":"com.ritense.valtimo","product":"case","source":"cvelist"},{"ranges":[{"version":">= 13.4.0, < 13.23.0","status":"affected"}],"vendor":"com.ritense.valtimo","product":"contract","source":"cvelist"},{"ranges":[{"version":">= 12.0.0, < 12.32.0","status":"affected"}],"vendor":"com.ritense.valtimo","product":"document","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"12.0.0","status":"affected","fixed":"12.32.0"}],"ecosystem":"Maven","package":"com.ritense.valtimo:document","purl":"pkg:maven/com.ritense.valtimo/document","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"13.0.0","status":"affected","fixed":"13.23.0"}],"ecosystem":"Maven","package":"com.ritense.valtimo:case","purl":"pkg:maven/com.ritense.valtimo/case","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"13.4.0","status":"affected","fixed":"13.23.0"}],"ecosystem":"Maven","package":"com.ritense.valtimo:contract","purl":"pkg:maven/com.ritense.valtimo/contract","source":"ghsa"}],"references":[{"url":"https://github.com/valtimo-platform/valtimo/security/advisories/GHSA-j7j9-5253-f7vh","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42555","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/valtimo-platform/valtimo","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-14T18:15:49.269Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42555","url":"https://www.cve.org/CVERecord?id=CVE-2026-42555","licence":"CVE Terms of Use","modified":"2026-05-14T18:27:58.801Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j7j9-5253-f7vh","url":"https://github.com/advisories/GHSA-j7j9-5253-f7vh","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:47.256Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42555","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42555","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"}],"updatedAt":"2026-11-25T22:59:21.728Z","epss":{"score":0.00822,"percentile":0.54481,"date":"2026-11-30T12:00:22.000Z"}}