Privilege Escalation in Hibernate Validator
High severity
GitHub Reviewed
Published
Jun 15, 2020
to the GitHub Advisory Database
•
Updated Jan 27, 2023
Package
Affected versions
>= 5.2.0, <= 5.2.4.Final
>= 5.3.0, <= 5.3.5.Final
>= 5.4.0, <= 5.4.1.Final
Patched versions
5.2.5.Final
5.3.6.Final
5.4.2.Final
Description
Published by the National Vulnerability Database
Jan 10, 2018
Reviewed
Jun 11, 2020
Published to the GitHub Advisory Database
Jun 15, 2020
Last updated
Jan 27, 2023
In Hibernate Validator 5.2.x before 5.2.5.Final, 5.3.x before 5.3.6.Final, and 5.4.x before 5.4.2.Final, it was found that when the security manager's reflective permissions, which allows it to access the private members of the class, are granted to Hibernate Validator, a potential privilege escalation can occur. By allowing the calling code to access those private members without the permission an attacker may be able to validate an invalid instance and access the private member value via ConstraintViolation#getInvalidValue().
References