CVEfocus › CVE database › CVE-2025-35036

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

CVSS 7.3 HighEPSS 1.4% (higher than 74% of CVEs)Published 2025-06-03Updated 2025-06-05Assigner: cisa-cg

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.

CWE-94

What to do

Fixed builds are available from Maven: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
12Fix pending
6Under investigation
2Will not fix
7Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libhibernate-validator-javaFix pendingUBUNTU-CVE-2025-35036
Ubuntu 26.10libhibernate-validator4-javaFix pendingUBUNTU-CVE-2025-35036
Ubuntu 26.04libhibernate-validator-javaUnder investigationUBUNTU-CVE-2025-35036
Ubuntu 26.04libhibernate-validator4-javaUnder investigationUBUNTU-CVE-2025-35036
Ubuntu 25.10libhibernate-validator-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-35036
Ubuntu 25.10libhibernate-validator4-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-35036
Ubuntu 24.04libhibernate-validator-javaUnder investigationUBUNTU-CVE-2025-35036
Ubuntu 24.04libhibernate-validator4-javaUnder investigationUBUNTU-CVE-2025-35036
Ubuntu 22.04libhibernate-validator-javaUnder investigationUBUNTU-CVE-2025-35036
Ubuntu 22.04libhibernate-validator4-javaUnder investigationUBUNTU-CVE-2025-35036
Ubuntu 20.04libhibernate-validator-javaFix pendingUBUNTU-CVE-2025-35036
Ubuntu 20.04libhibernate-validator4-javaFix pendingUBUNTU-CVE-2025-35036
Ubuntu 18.04libhibernate-validator-javaFix pendingUBUNTU-CVE-2025-35036
Ubuntu 16.04libhibernate-validator-javaFix pendingUBUNTU-CVE-2025-35036
Debian 14libhibernate-validator-javaFix pendingDEBIAN-CVE-2025-35036
Debian 14libhibernate-validator4-javaFix pendingDEBIAN-CVE-2025-35036
Debian 13libhibernate-validator-javaFix pendingDEBIAN-CVE-2025-35036
Debian 13libhibernate-validator4-javaFix pendingDEBIAN-CVE-2025-35036
Debian 12libhibernate-validator-javaFix pendingDEBIAN-CVE-2025-35036
Debian 12libhibernate-validator4-javaFix pendingDEBIAN-CVE-2025-35036
Red Hat Enterprise Linux 9pki-resteasy-clientNot affected
Red Hat Enterprise Linux 9pki-resteasy-coreNot affected
Red Hat Enterprise Linux 9pki-resteasy-jackson2-providerNot affected
Red Hat Enterprise Linux 9pki-resteasy-servlet-initializerNot affected
Red Hat Enterprise Linux 9resteasyNot affected
Red Hat Enterprise Linux 8resteasyNot affected
Red Hat Enterprise Linux 8resteasy-javadocNot affected
Maven libraryorg.hibernate.validator:hibernate-validatorFixed6.2.0.CR1GHSA-7v6m-28jr-rg84
Maven libraryorg.hibernate:hibernate-validatorFixed6.2.0.CR1GHSA-7v6m-28jr-rg84

What the vendor says

As published in the CVE record by cisa-cg, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.