cve.bz

CVE-2025-35036 redhat hibernate validator: Code Injection

6.9 mediumEPSS 0.8%Fix available

Medium (6.9) in redhat hibernate validator. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in org.hibernate.validator:hibernate-validator 6.2.0.CR1, 7.0.0.CR1.

On this page
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.

Severity

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

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
EPSS
0.8% (unchanged from 0.8% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-06-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-35036 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-35036?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-35036?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-35036 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Hibernate Validatorbefore 6.2.0
Hibernate Validatorbefore 7.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7v6m-28jr-rg84Mavenorg.hibernate.validator:hibernate-validator<6.2.0.CR16.2.0.CR1
GHSA-7v6m-28jr-rg84Mavenorg.hibernate.validator:hibernate-validator>=7.0.0.Alpha1 <7.0.0.CR17.0.0.CR1
GHSA-7v6m-28jr-rg84Mavenorg.hibernate:hibernate-validator<6.2.0.CR16.2.0.CR1
GHSA-7v6m-28jr-rg84Mavenorg.hibernate:hibernate-validator>=7.0.0.Alpha1 <7.0.0.CR17.0.0.CR1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libhibernate-validator-java, libhibernate-validator4-javano fix listedDEBIAN-CVE-2025-35036
Ubuntu16.04:LTS, 18.04:LTSlibhibernate-validator-javano fix listedUBUNTU-CVE-2025-35036
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 3 morelibhibernate-validator-java, libhibernate-validator4-javano fix listedUBUNTU-CVE-2025-35036
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-activemq-artemis, eap7-activemq-artemis-ra, eap7-activemq-artemis-cli and 13 more0:2.16.0-21.redhat_00055.1.el7eapRHSA-2025:10924
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-apache-cxf, eap7-apache-cxf-rt, eap7-apache-cxf-tools and 1 more0:3.5.10-1.redhat_00001.1.el7eapRHSA-2025:10924
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-artemis-native, eap7-artemis-native-wildfly, eap7-artemis-native-debuginfo1:1.0.2-5.redhat_00004.1.el7eapRHSA-2025:10924
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-elytron-web, eap7-undertow-server0:1.9.6-1.Final_redhat_00001.1.el7eapRHSA-2025:10924
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-glassfish-jsf0:2.3.14-9.SP10_redhat_00001.1.el7eapRHSA-2025:10924
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-hal-console0:3.3.27-1.Final_redhat_00001.1.el7eapRHSA-2025:10924
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-hibernate-validator, eap7-hibernate-validator-cdi0:6.0.23-3.SP2_redhat_00001.1.el7eapRHSA-2025:10924
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-ironjacamar, eap7-ironjacamar-jdbc, eap7-ironjacamar-core-api and 6 more0:1.5.21-1.Final_redhat_00001.1.el7eapRHSA-2025:10924
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-server-migration, eap7-jboss-server-migration-cli, eap7-jboss-server-migration-core0:1.10.0-42.Final_redhat_00042.1.el7eapRHSA-2025:10924
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jbossws-cxf0:5.4.15-1.Final_redhat_00001.1.el7eapRHSA-2025:10924
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-wildfly, eap7-wildfly-modules, eap7-wildfly-javadocs and 2 more0:7.4.23-3.GA_redhat_00002.1.el7eapRHSA-2025:10924
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-wildfly-elytron, eap7-wildfly-elytron-tool0:1.15.26-1.Final_redhat_00001.1.el7eapRHSA-2025:10924
24 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability marked as Important rather than Moderate because it enables Expression Language (EL) injection through user-supplied input embedded in validation messages — effectively escalating a benign validation failure into a potential Remote Code Execution (RCE) vector. In environments where EL expressions have access to application internals, attackers can craft payloads that access sensitive Java objects, invoke arbitrary methods, or manipulate server-side logic. The fact that this behavior is triggered by the default configuration — without any explicit developer error — further amplifies the risk.

Red Hat's mitigation

Users who are unable to upgrade should manually disable Expression Language interpolation to prevent EL injection. If disabling is not feasible, carefully sanitize and validate any dynamic input before inclusion.

ProductPackageStateAdvisory
Red Hat JBoss Enterprise Application Platform 7hibernate-validatorFixed 2025-07-14RHSA-2025:10931
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-activemq-artemis-0:2.16.0-21.redhat_00055.1.el8eapFixed 2025-07-14RHSA-2025:10925
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-apache-cxf-0:3.5.10-1.redhat_00001.1.el8eapFixed 2025-07-14RHSA-2025:10925
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-artemis-native-1:1.0.2-5.redhat_00004.1.el8eapFixed 2025-07-14RHSA-2025:10925
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-elytron-web-0:1.9.6-1.Final_redhat_00001.1.el8eapFixed 2025-07-14RHSA-2025:10925
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-glassfish-jsf-0:2.3.14-9.SP10_redhat_00001.1.el8eapFixed 2025-07-14RHSA-2025:10925
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-hal-console-0:3.3.27-1.Final_redhat_00001.1.el8eapFixed 2025-07-14RHSA-2025:10925
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-hibernate-validator-0:6.0.23-3.SP2_redhat_00001.1.el8eapFixed 2025-07-14RHSA-2025:10925
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-ironjacamar-0:1.5.21-1.Final_redhat_00001.1.el8eapFixed 2025-07-14RHSA-2025:10925
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-jboss-server-migration-0:1.10.0-42.Final_redhat_00042.1.el8eapFixed 2025-07-14RHSA-2025:10925
A-MQ Clients 2hibernate-validatorNot affected
Red Hat Enterprise Linux 8pki-core:10.6/resteasyNot affected
Red Hat Enterprise Linux 8pki-deps:10.6/resteasyNot affected
Red Hat Enterprise Linux 9resteasyNot affected
Red Hat Fuse 7hibernate-validatorWill not fix
Red Hat Integration Camel K 1hibernate-validatorWill not fix
Red Hat JBoss Enterprise Application Platform 8hibernate-validatorNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packhibernate-validatorNot affected
Red Hat Process Automation 7hibernate-validatorWill not fix
Red Hat Single Sign-On 7hibernate-validatorNot affected
28 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-35036.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON