GHSA-j7j9-5253-f7vh

Suggest an improvement
Source
https://github.com/advisories/GHSA-j7j9-5253-f7vh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-j7j9-5253-f7vh/GHSA-j7j9-5253-f7vh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-j7j9-5253-f7vh
Aliases
  • CVE-2026-42555
Published
2026-05-06T21:41:44Z
Modified
2026-05-06T21:48:47.230289Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Valtimo has SpEL injection via StandardEvaluationContext that allows Remote Code Execution by admin users
Details

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()
Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2026-05-06T21:41:44Z",
    "cwe_ids": [
        "CWE-94"
    ],
    "severity": "CRITICAL",
    "nvd_published_at": null
}
References

Affected packages

Maven / com.ritense.valtimo:document

Package

Name
com.ritense.valtimo:document
View open source insights on deps.dev
Purl
pkg:maven/com.ritense.valtimo/document

Affected ranges

Type
ECOSYSTEM
Events
Introduced
12.0.0
Fixed
12.32.0

Affected versions

12.*
12.0.0.RELEASE
12.0.1.RELEASE
12.1.0.RELEASE
12.1.1.RELEASE
12.1.2.RELEASE
12.1.3.RELEASE
12.2.0.RELEASE
12.2.1.RELEASE
12.3.0.RELEASE
12.3.1.RELEASE
12.4.0.RELEASE
12.4.1.RELEASE
12.5.0.RELEASE
12.5.1.RELEASE
12.6.0.RELEASE
12.6.1.RELEASE
12.6.1.1.RC
12.7.0.RELEASE
12.7.1.RELEASE
12.7.2.RELEASE
12.7.3.RELEASE
12.8.0.RELEASE
12.9.0.RELEASE
12.10.0.RELEASE
12.10.1.RELEASE
12.10.2.RELEASE
12.11.0.RELEASE
12.12.0.RELEASE
12.13.0.RELEASE
12.13.1.RELEASE
12.14.0.RELEASE
12.14.1.RELEASE
12.15.1.RELEASE
12.16.0.RELEASE
12.16.1.RELEASE
12.17.0.RELEASE
12.17.1.RELEASE
12.18.0.RELEASE
12.19.0.RELEASE
12.20.0.RELEASE
12.20.1.RELEASE
12.21.0.RELEASE
12.21.1.RELEASE
12.22.0.RELEASE
12.23.0.RELEASE
12.23.1.RELEASE
12.24.0.RELEASE
12.25.0.RELEASE
12.26.0.RELEASE
12.27.0.RELEASE
12.28.0.RELEASE
12.28.1.RELEASE
12.29.0.RELEASE
12.30.0.RELEASE
12.31.0.RELEASE

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-j7j9-5253-f7vh/GHSA-j7j9-5253-f7vh.json"

Maven / com.ritense.valtimo:case

Package

Name
com.ritense.valtimo:case
View open source insights on deps.dev
Purl
pkg:maven/com.ritense.valtimo/case

Affected ranges

Type
ECOSYSTEM
Events
Introduced
13.0.0
Fixed
13.23.0

Affected versions

13.*
13.0.0.RELEASE
13.0.1.RELEASE
13.0.2.RELEASE
13.1.0.RELEASE
13.1.1.RELEASE
13.1.2.RELEASE
13.1.3.RELEASE
13.2.0.RELEASE
13.2.1.RELEASE
13.3.0.RELEASE
13.4.0.RELEASE
13.4.1.RELEASE
13.5.0.RELEASE
13.5.1.RELEASE
13.6.0.RELEASE
13.7.0.RELEASE
13.8.0.RELEASE
13.9.0.RELEASE
13.9.1.RELEASE
13.10.0.RELEASE
13.11.0.RELEASE
13.12.0.RELEASE
13.13.0.RELEASE
13.14.0.RELEASE
13.15.0.RELEASE
13.16.0.RELEASE
13.17.0.RELEASE
13.17.1.RELEASE
13.18.0.RELEASE
13.19.0.RELEASE
13.20.0.RELEASE
13.21.0.RELEASE
13.22.0.RELEASE

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-j7j9-5253-f7vh/GHSA-j7j9-5253-f7vh.json"

Maven / com.ritense.valtimo:contract

Package

Name
com.ritense.valtimo:contract
View open source insights on deps.dev
Purl
pkg:maven/com.ritense.valtimo/contract

Affected ranges

Type
ECOSYSTEM
Events
Introduced
13.4.0
Fixed
13.23.0

Affected versions

13.*
13.4.0.RELEASE
13.4.1.RELEASE
13.5.0.RELEASE
13.5.1.RELEASE
13.6.0.RELEASE
13.7.0.RELEASE
13.8.0.RELEASE
13.9.0.RELEASE
13.9.1.RELEASE
13.10.0.RELEASE
13.11.0.RELEASE
13.12.0.RELEASE
13.13.0.RELEASE
13.14.0.RELEASE
13.15.0.RELEASE
13.16.0.RELEASE
13.17.0.RELEASE
13.17.1.RELEASE
13.18.0.RELEASE
13.19.0.RELEASE
13.20.0.RELEASE
13.21.0.RELEASE
13.22.0.RELEASE

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-j7j9-5253-f7vh/GHSA-j7j9-5253-f7vh.json"