Improper Input Validation in Hibernate ValidatorGHSA-rmrm-75hp-phr2
MEDIUMGHSA-rmrm-75hp-phr2 is a medium-severity (CVSS 5.3) Improper Input Validation vulnerability in org.hibernate.validator:hibernate-validator. A fix is available for org.hibernate.validator:hibernate-validator — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.hibernate.validator:hibernate-validator☕org.hibernate.validator:hibernate-validator☕org.hibernate:hibernate-validator☕org.hibernate:hibernate-validatorReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
A flaw was found in Hibernate Validator version 6.1.2.Final. A bug in the message interpolation processor enables invalid EL expressions to be evaluated as if they were valid. This flaw allows attackers to bypass input sanitation (escaping, stripping) controls that developers may have put in place when handling user-controlled data in error messages.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.hibernate.validator:hibernate-validator | ≥ 6.1.0.Final&&< 6.1.5.Final | 6.1.5.Finalorg.hibernate.validator:hibernate-validator:6.1.5.Final |
| ☕Maven | org.hibernate.validator:hibernate-validator | all versions | 6.0.20.Finalorg.hibernate.validator:hibernate-validator:6.0.20.Final |
| ☕Maven | org.hibernate:hibernate-validator | ≥ 6.1.0.Final&&< 6.1.5.Final | 6.1.5.Finalorg.hibernate:hibernate-validator:6.1.5.Final |
| ☕Maven | org.hibernate:hibernate-validator | all versions | 6.0.20.Finalorg.hibernate:hibernate-validator:6.0.20.Final |
Affected Products
websphere application serveribmweblogic serveroraclequarkusquarkushibernate validatorredhatjboss enterprise application platformredhatsatelliteredhatDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.hibernate.validator:hibernate-validator, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.hibernate.validator:hibernate-validator to 6.1.5.Final or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-rmrm-75hp-phr2 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
hibernate-validator is packaged with Red Hat OpenStack Platform 13.0's OpenDaylight (ODL). However, because ODL is technical preview in this version and the flaw is moderate, Red Hat will not be releasing a fix for the OpenStack package at this time.
You can pass user input as an expression variable by unwrapping the context to HibernateConstraintValidatorContext. Please refer to the https://in.relation.to/2020/05/07/hibernate-validator-615-6020-released/ and https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#_the_code_constraintvalidatorcontext_code.Source: Red Hat security advisory for GHSA-rmrm-75hp-phr2 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat build of Quarkus 1.7.5 | hibernate-validator | RHSA-2020:4252 |
| Red Hat Fuse 7.9 | hibernate-validator | RHSA-2021:3140 |
| Red Hat JBoss Enterprise Application Platform 7 | hibernate-validator | RHSA-2020:3642 |
| Red Hat JBoss Enterprise Application Platform 7 | hibernate-validator | RHSA-2020:3464 |
| Red Hat JBoss Enterprise Application Platform 7.2 for RHEL 6 | eap7-dom4j-0:2.1.3-1.redhat_00001.1.el6eap | RHSA-2020:3637 |
| Red Hat JBoss Enterprise Application Platform 7.2 for RHEL 7 | eap7-dom4j-0:2.1.3-1.redhat_00001.1.el7eap | RHSA-2020:3638 |
| Red Hat JBoss Enterprise Application Platform 7.2 for RHEL 8 | eap7-dom4j-0:2.1.3-1.redhat_00001.1.el8eap | RHSA-2020:3639 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-dom4j-0:2.1.3-1.redhat_00001.1.el6eap | RHSA-2020:3461 |
Frequently Asked Questions
Is GHSA-rmrm-75hp-phr2 in your dependencies?
Find it across Maven, including transitive dependencies.