CVE-2025-35036Redhat Hibernate Validator
Medium 6.9 No auth needed
Follow: this CVE · Redhat · Redhat Hibernate Validator We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 4.0
- 6.9
- EPSS
- —
- Auth required
- No
- Published
- Jun 3, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for Hibernate Validator.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.hibernate.validator:hibernate-validator |
< 6.2.0.CR1 |
6.2.0.CR1 |
— |
| Maven | org.hibernate.validator:hibernate-validator |
≥ 7.0.0.Alpha1 < 7.0.0.CR1 |
7.0.0.CR1 |
— |
| Maven | org.hibernate:hibernate-validator |
< 6.2.0.CR1 |
6.2.0.CR1 |
— |
| Maven | org.hibernate:hibernate-validator |
≥ 7.0.0.Alpha1 < 7.0.0.CR1 |
7.0.0.CR1 |
— |
Per OSV / GitHub Advisories (GHSA-7v6m-28jr-rg84). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| redhat | hibernate_validator | < 6.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- docs.jboss.org Product
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Release Notes
- github.com Issue Tracking
- hibernate.atlassian.net Issue Tracking
- hibernate.org Release Notes
- in.relation.to Release Notes
- labs.watchtowr.com Not Applicable
- www.cve.org Not Applicable
- www.cve.org Not Applicable