MODERATE 7.3

CVE-2025-35036

Hibernate Validator may interpolate user-supplied input in a constraint violation message with Expression Language

Description

Hibernate Validator before 6.2.0 and 7.0.0, by default and depending how it is used, may interpolate user-supplied input in a constraint violation message with Expression Language. This could allow an attacker to access sensitive information or execute arbitrary Java code. Hibernate Validator as of 6.2.0 and 7.0.0 no longer interpolates custom constraint violation messages with Expression Language and strongly recommends not allowing user-supplied input in constraint violation messages. CVE-2020-5245 and CVE-2025-4428 are examples of related, downstream vulnerabilities involving Expression Language intepolation of user-supplied data.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.hibernate » hibernate-validator
< 6.2.0.CR1>= 7.0.0.Alpha1, < 7.0.0.CR1
6.2.0.CR1, 7.0.0.CR1
org.hibernate.validator » hibernate-validator
< 6.2.0.CR1>= 7.0.0.Alpha1, < 7.0.0.CR1
6.2.0.CR1, 7.0.0.CR1

Blast radius

2affected artifacts
248affected versions
29,836dependent artifacts (est.)
1,283,076dependent versions

63% of the dependent artifacts (18,811) still pull an affected version in their latest release.

DepthDependent versions
Direct
154,350
2 hops
470,025
3 hops
311,196
4 hops
192,588
5 hops
88,434
6 hops
66,483

Most used dependents

Computed from the dependency graph of build 20261124.0621 (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.