hibernate-validator is vulnerable to Expression Language Injection
75
CVE Score
High
Expression Language Injection
hibernate-validator copies values passed to HibernateConstraintValidatorContext#addMessageParameter, including duplicate values from @UniqueElements, into the constraint message before Expression Language interpolation. When an EL implementation is on the classpath and interpolation is enabled for that message, the interpolator runs untrusted parameter text as an expression, which can exhaust server resources, and with the BEAN_METHODS feature level can also read data or run code. The fix escapes message parameter values by default so they stay literal during interpolation.
Upgrade the org.hibernate.validator:hibernate-validator library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and Expression Language interpolation is enabled for a message that includes an untrusted addMessageParameter value or a custom @UniqueElements message.
5.4.1.Final - 6.2.5.Final
Fixed in 6.2.6.Final7.0.0.Final - 7.0.5.Final
Fixed in 7.0.6.Final8.0.0.Final - 8.0.5.Final
Fixed in 8.0.6.Final9.0.0.Final - 9.0.1.Final
Fixed in 9.0.2.Final9.1.0.Final - 9.1.4.Final
Fixed in 9.1.5.Finalhibernate-validator is vulnerable to Expression Language Injection in versions 5.4.1.Final - 6.2.5.Final, 7.0.0.Final - 7.0.5.Final, 8.0.0.Final - 8.0.5.Final, 9.0.0.Final - 9.0.1.Final and 9.1.0.Final - 9.1.4.Final.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.