Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2025-35036
June 03, 2025
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 Packages
https://github.com/hibernate/hibernate-validator.git (GITHUB):
Affected version(s) >=4.1.0.Final <6.2.0.Final
Fix Suggestion:
Update to version 6.2.0.Final
https://github.com/hibernate/hibernate-validator.git (GITHUB):
Affected version(s) >=7.0.0.Alpha1 <7.0.0.Final
Fix Suggestion:
Update to version 7.0.0.Final
org.hibernate.validator:hibernate-validator (JAVA):
Affected version(s)
Fix Suggestion:
Update to version 6.2.0.CR1
org.hibernate.validator:hibernate-validator (JAVA):
Affected version(s)
Fix Suggestion:
Update to version 7.0.0.CR1
org.hibernate:hibernate-validator (JAVA):
Affected version(s) >=3.0.0.GA <6.2.0.CR1
Fix Suggestion:
Update to version 6.2.0.CR1
org.hibernate:hibernate-validator (JAVA):
Affected version(s) >=7.0.0.Alpha1 <7.0.0.CR1
Fix Suggestion:
Update to version 7.0.0.CR1
Do you need more information?
Contact Us
CVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
LOW
Weakness Type (CWE)
Improper Control of Generation of Code ('Code Injection')
EPSS
Base Score:
0.53