Medium

Hibernate Validator may interpolate user-supplied input in a constraint violation message with Expression Language

  • Disclosed: 03.06.2025
  • Updated: 11.10.2026 12:22

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.hibernate:hibernate-validator < 6.2.0.CR1, >= 7.0.0.Alpha1, < 7.0.0.CR1 6.2.0.CR1, 7.0.0.CR1
Java / Kotlin (Maven) org.hibernate.validator:hibernate-validator < 6.2.0.CR1, >= 7.0.0.Alpha1, < 7.0.0.CR1 6.2.0.CR1, 7.0.0.CR1

References

CVSS score 7.3/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Weakness (CWE)
CWE-94
Platform
Java / Kotlin (Maven)
Package
org.hibernate:hibernate-validator, org.hibernate.validator:hibernate-validator
Disclosed
03.06.2025
Updated
11.10.2026 12:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-7v6m-28jr-rg84 - CC BY 4.0

Vulnerability history: org.hibernate.validator:hibernate-validator

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
01.2020 06.2025
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Medium 4

Disclosures per year

  1. 2020: 1
  2. 2021: 1
  3. 2022: 0
  4. 2023: 0
  5. 2024: 1
  6. 2025: 1
  7. 2026: 0
  1. Hibernate Validator may interpolate user-supplied input in a constraint violation message with Expression Language this entry
    Medium · 7.3 CVE-2025-35036 < 6.2.0.CR1, >= 7.0.0.Alpha1, < 7.0.0.CR1 6.2.0.CR1, 7.0.0.CR1
  2. Medium · 6.1 CVE-2023-1932 < 6.2.0.Final 6.2.0.Final
  3. Medium · 5.3 CVE-2020-10693 >= 6.1.0.Final, < 6.1.5.Final, < 6.0.20.Final 6.1.5.Final, 6.0.20.Final
  4. Medium · 6.5 CVE-2019-10219 >= 6.1.0.Alpha1, < 6.1.0.Alpha6, >= 6.0.0.Alpha1, < 6.0.18.Final 6.1.0.Alpha6, 6.0.18.Final

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.