CVE-2025-35036 – org.hibernate.validator:hibernate-validator
Package
Manager: maven
Name: org.hibernate.validator:hibernate-validator
Vulnerable Version: >=0 <6.2.0.cr1 || >=7.0.0.alpha1 <7.0.0.cr1
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
EPSS: 0.0009 pctl0.26574
Details
Hibernate Validator may interpolate user-supplied input in a constraint violation message with Expression Language 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.
Metadata
Created: 2025-06-03T21:30:39Z
Modified: 2025-06-05T01:24:18Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-7v6m-28jr-rg84/GHSA-7v6m-28jr-rg84.json
CWE IDs: ["CWE-94"]
Alternative ID: GHSA-7v6m-28jr-rg84
Finding: F184
Auto approve: 1