CVE-2017-7536
Privilege Escalation in Hibernate Validator
Description
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().
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.hibernate » hibernate-validator | >= 5.2.0, < 5.2.5.Final>= 5.3.0, < 5.3.6.Final>= 5.4.0, < 5.4.2.Final | 5.2.5.Final, 5.3.6.Final, 5.4.2.Final |
Blast radius
48% of the dependent artifacts (2,945) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 31,271 |
| 2 hops | 46,986 |
| 3 hops | 30,802 |
| 4 hops | 19,210 |
| 5 hops | 6,869 |
| 6 hops | 2,935 |
Most used dependents
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.springframework.boot » spring-boot-starter-validation4,721 usages
- org.springframework.boot » spring-boot-starter-webflux2,764 usages
- org.springframework.boot » spring-boot-starter-websocket1,319 usages
- org.springframework.boot » spring-boot-starter-thymeleaf1,158 usages
- com.typesafe.play » filters-helpers1,129 usages
- io.dropwizard » dropwizard-core894 usages
- io.fabric8 » fabric8-maven-plugin676 usages
- org.springframework.cloud » spring-cloud-starter-sleuth528 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- io.dropwizard » dropwizard-testing463 usages
- org.springframework.boot » spring-boot-starter-freemarker452 usages
- org.apereo.cas » cas-server-core-configuration-api442 usages
- org.glassfish.hk2 » hk2-api430 usages
- org.springframework.cloud » spring-cloud-stream427 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2017-7536
- Webhttps://github.com/hibernate/hibernate-validator/commit/0886e89900d343ea20fde5137c9a3086e6da9ac
- Webhttps://github.com/hibernate/hibernate-validator/commit/0778a5c98b817771a645c6f4ba0b28dd8b5437b
- Webhttps://lists.apache.org/thread.html/9317fd092b257a0815434b116a8af8daea6e920b6673f4fd5583d5fe@%3Ccommits.druid.apache.org%3E
- Packagehttps://github.com/hibernate/hibernate-validator
- Webhttps://bugzilla.redhat.com/show_bug.cgi?id=1465573
- Webhttps://access.redhat.com/errata/RHSA-2018:3817
- Webhttps://access.redhat.com/errata/RHSA-2018:2927
- Webhttps://access.redhat.com/errata/RHSA-2018:2743
- Webhttps://access.redhat.com/errata/RHSA-2018:2742
- Webhttps://access.redhat.com/errata/RHSA-2018:2741
- Webhttps://access.redhat.com/errata/RHSA-2018:2740
- Webhttps://access.redhat.com/errata/RHSA-2017:3458
- Webhttps://access.redhat.com/errata/RHSA-2017:3456
- Webhttps://access.redhat.com/errata/RHSA-2017:3455
- Webhttps://access.redhat.com/errata/RHSA-2017:3454
- Webhttps://access.redhat.com/errata/RHSA-2017:3141
- Webhttps://access.redhat.com/errata/RHSA-2017:2811
- Webhttps://access.redhat.com/errata/RHSA-2017:2810
- Webhttps://access.redhat.com/errata/RHSA-2017:2809
- Webhttps://access.redhat.com/errata/RHSA-2017:2808
- Webhttp://www.securityfocus.com/bid/101048
- Webhttp://www.securitytracker.com/id/1039744
