CVE-2025-35036: hibernate-validator insecure default Expression Language interpolation
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. <a href="https://access.redhat.com/security/cve/CVE-2020-5245">CVE-2020-5245</a> and <a href="https://access.redhat.com/security/cve/CVE-2025-4428">CVE-2025-4428</a> are examples of related, downstream vulnerabilities involving Expression Language intepolation of user-supplied data.
Other sources
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.
— NVD
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-35036?
CVE-2025-35036 is rated as a high severity vulnerability due to the potential for arbitrary code execution and sensitive information exposure.
How do I fix CVE-2025-35036?
To mitigate CVE-2025-35036, upgrade Hibernate Validator to version 6.2.0 or higher, or 7.0.0 or higher.
What software is affected by CVE-2025-35036?
CVE-2025-35036 affects Hibernate Validator versions before 6.2.0 and 7.0.0.
What kind of attack can CVE-2025-35036 enable?
CVE-2025-35036 may allow attackers to exploit user-supplied input to execute arbitrary Java code.
What conditions lead to CVE-2025-35036 being exploitable?
CVE-2025-35036 is exploitable depending on how Hibernate Validator is configured to handle constraint violation messages.