CVE-2019-14900
SQL Injection in Hibernate ORM
Description
A flaw was found in Hibernate ORM in versions before 5.3.18, 5.4.18 and 5.5.0.Beta1. A SQL injection in the implementation of the JPA Criteria API can permit unsanitized literals when a literal is used in the SELECT or GROUP BY parts of the query. This flaw could allow an attacker to access unauthorized information or possibly conduct further attacks.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.hibernate » hibernate-core | < 5.3.18>= 5.4.0, < 5.4.18>= 5.5.0.Alpha1, < 5.5.0.Beta1 | 5.3.18, 5.4.18, 5.5.0.Beta1 |
Blast radius
62% of the dependent artifacts (11,306) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 110,005 |
| 2 hops | 425,037 |
| 3 hops | 227,510 |
| 4 hops | 96,610 |
| 5 hops | 37,340 |
| 6 hops | 18,489 |
Most used dependents
- org.hibernate » hibernate-validator4,490 usages
- org.springframework.boot » spring-boot-starter-data-jpa4,154 usages
- com.zaxxer » HikariCP4,006 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.kafka » kafka-clients3,135 usages
- org.hibernate » hibernate-entitymanager3,112 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.kafka » kafka1,450 usages
- net.sf.ehcache » ehcache1,234 usages
- org.hibernate » hibernate-annotations842 usages
- org.apache.spark » spark-mllib831 usages
- com.atlassian.confluence » confluence724 usages
- org.apache.hive » hive-exec699 usages
- org.apache.spark » spark-streaming670 usages
- org.apache.spark » spark-hive633 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-2019-14900
- Webhttps://github.com/hibernate/hibernate-orm/commit/3f3c1ab50604ab9ba99e25d2016fb85f3ba9dcd4
- Webhttps://github.com/hibernate/hibernate-orm/commit/646b383f959eff18d58081b1a574f0d777d353da
- Webhttps://github.com/hibernate/hibernate-orm/commit/e0e22ea256c1906235d6a8e90b79c4ce33d0861f
- Webhttps://github.com/hibernate/hibernate-orm/commit/eebf01fbf3c2550ee70cdc9c1b02b52e330c8c36
- Webhttps://bugzilla.redhat.com/show_bug.cgi?id=1666499
- Packagehttps://github.com/hibernate/hibernate-orm
- Webhttps://lists.apache.org/thread.html/r833c1276e41334fa675848a08daf0c61f39009f9f9a400d9f7006d44@%3Cdev.turbine.apache.org%3E
- Webhttps://security.netapp.com/advisory/ntap-20220210-0020
