CVE-2025-35036

hibernate-validator insecure default Expression Language interpolation

Published Jun 3, 2025 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-16774 Hibernate Validator may interpolate user-supplied input in a constraint violation message with Expression Language
Github GHSA Github GHSA GHSA-7v6m-28jr-rg84 Hibernate Validator may interpolate user-supplied input in a constraint violation message with Expression Language
History
Type Values Removed Values Added
First Time appeared Redhat
Redhat hibernate Validator
CPEs cpe:2.3:a:redhat:hibernate_validator:*:-:*:*:*:*:*:*
Vendors & Products Redhat
Redhat hibernate Validator
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title hibernate-validator insecure default Expression Language interpolation
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'}

cvssV4_0

{'score': 6.9, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
cisa-cg
Published
Updated
Jun 5, 2025, 6:41 PM
Reserved
Apr 15, 2025, 8:56 PM
Status
Analyzed
Published
Jun 3, 2025, 8:15 PM
Modified
Jun 17, 2026, 9:14 AM
Severity
Important
Public date
Jun 3, 2025, 7:27 PM