CVE-2025-35036: hibernate-validator insecure default Expression Language interpolation

Published Jun 3, 2025
·
Updated

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

4 affected componentsFixes available
Hibernate Validator<6.2.0, <7.0.0
maven/org.hibernate.validator:hibernate-validator>=7.0.0.Alpha1<7.0.0.CR1
7.0.0.CR1
maven/org.hibernate.validator:hibernate-validator<6.2.0.CR1
6.2.0.CR1
redhat Hibernate Validator<6.2.0

Event History

Jun 3, 2025
CVE Published
via MITRE·07:27 PM
Data Sourced
via MITRE·07:27 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·08:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
RemedyAffected Software
Advisory Published
via GitHub·09:30 PM
Data Sourced
via GitHub·09:30 PM
DescriptionSeverityWeaknessAffected Software
Jun 6, 58220
Event
via NVD·03:00 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

What software is affected by CVE-2025-35036?

CVE-2025-35036 affects Hibernate Validator versions before 6.2.0 and 7.0.0.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203