WaratekVRT Sign in

CVE-2025-35036 Hibernate Validator

Affected softwareHibernate Validator
Severity6.9 Medium CVSS 4.0 2 scores
Fixed in6.2.0.CR1, 7.0.0.CR1
WeaknessCode injection (CWE-94)
Published3 Jun 2025
Updated17 Jun 2026

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.

Exploitation status

Proof of concept only

A proof of concept exists, but no reviewed exploit catalogue lists this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: poc CISA recorded that an exploit has been demonstrated. Automatable: no, technical impact: partial.
  • Indexed PoC none indexed
  • EPSS 0.78% chance in 30 days

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists: hibernate/hibernate-validator 05f795b.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Exploit code for this candidate, published in a reviewed catalogue or a GitHub repository with 5 or more stars, or in use per CISA or VulnCheck; not only a CISA verdict, a forecast, or nothing at all
Finding This CVE is not listed in CISA KEV or VulnCheck KEV, CISA Vulnrichment records no active exploitation, no reviewed exploit catalogue carries an entry for it, and no GitHub PoC repository for it has 5 or more stars. Nobody has published exploit code worth tracing, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious.
Candidate fix https://github.com/hibernate/hibernate-validator/commit/05f795bb7cf18856004f40e5042709e550ed0d6e : a commit: the change itself

CVSS

6.9 MEDIUM v4.0 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 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 4.0 6.9 MEDIUM 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 cisa-cg Secondary published
CVSS 3.1 7.3 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L cisa-cg Secondary

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update April 2026 ↗ CPU 2026-Q2 Oracle Fusion Middleware / Centralized Thirdparty Jars (Validator) (12.2.1.4.0)
Oracle Fusion Middleware / Third Party (Validator) (12.2.1.4.0, 14.1.2.0.0)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Fusion Middleware Centralized Thirdparty Jars (Validator) 12.2.1.4.0 12.2.1.4.0
Oracle Fusion Middleware Third Party (Validator) 12.2.1.4.0, 14.1.2.0.0 12.2.1.4.0 · 14.1.2.0.0

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.hibernate.validator:hibernate-validator 0 6.2.0.CR1 unbounded
org.hibernate.validator:hibernate-validator 7.0.0.Alpha1 7.0.0.CR1 unbounded
org.hibernate:hibernate-validator 0 6.2.0.CR1 unbounded
org.hibernate:hibernate-validator 7.0.0.Alpha1 7.0.0.CR1 unbounded

Products and versions

3 products, 5 version entries
SourceVendorProductSchemeAffected versions
osv org.hibernate hibernate-validator generic < 6.2.0 · ≥ 7.0.0 and < 7.0.0
osv org.hibernate.validator hibernate-validator generic < 6.2.0 · ≥ 7.0.0 and < 7.0.0
nvd redhat hibernate validator generic < 6.2.0

References

URLTags
https://github.com/hibernate/hibernate-validator/commit/05f795bb7cf18856004f40e5042709e550ed0d6e commit
https://github.com/hibernate/hibernate-validator/pull/1138 WEB
https://github.com/hibernate/hibernate-validator/commit/254858d9dcc4e7cd775d1b0f47f482218077c5e1 WEB
https://github.com/hibernate/hibernate-validator/commit/d2db40b9e7d22c7a0b44d7665242dfc7b4d14d78 WEB
https://github.com/hibernate/hibernate-validator/commit/e076293b0ee1bfa97b6e67d05ad9eee1ad77e893 WEB
https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#section-hibernateconstraintvalidatorcontext WEB
https://github.com/hibernate/hibernate-validator PACKAGE
https://github.com/hibernate/hibernate-validator/compare/6.1.7.Final...6.2.0.Final WEB
https://hibernate.atlassian.net/browse/HV-1816 WEB
https://hibernate.org/validator/documentation/migration-guide/#6-2-0-cr1 WEB

Timeline

Published2025-06-03By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.