IBM Hibernate Validator
Hibernate Validator is affected by an expression language injection vulnerability
Hibernate Validator could allow a remote attacker to cause a denial of service due to uncontrolled resource consumption resulting from improper escaping of user-controlled data in Expression Language (EL) expressions.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.4.1.Final, <= 6.2.5.Final
- >= 7.0.0.Alpha1, <= 7.0.5.Final
- >= 8.0.0.Alpha1, <= 8.0.5.Final
- >= 9.0.0.Beta2, <= 9.0.1.Final
- >= 9.1.0.Alpha1, <= 9.1.4.Final
Mitigation
It is strongly recommended to address the vulnerability by upgrading to the latest version. Upgrade to 6.2.6.Final, 7.0.6.Final, 8.0.6.Final, 9.0.2.Final, 9.1.5.Final or later. For more information see: https://github.com/hibernate/hibernate-validator/security/advisories/GHSA-gv36-fx3r-29p5
Workaround
The safe alternative for custom validators is to use `addExpressionVariable` instead of `addMessageParameter` when injecting user-controlled values into EL-enabled messages, as expression variables are bound as typed objects and are never re-parsed as EL expressions.
References
- Vendor advisory ibm.com/support/pages/node/7293301
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.