CVE-2020-25638
SQL injection in hibernate-core
Description
A flaw was found in hibernate-core in versions prior to 5.3.20.Final and in 5.4.0.Final up to and including 5.4.23.Final. A SQL injection in the implementation of the JPA Criteria API can permit unsanitized literals when a literal is used in the SQL comments of the query. This flaw could allow an attacker to access unauthorized information or possibly conduct further attacks. The highest threat from this vulnerability is to data confidentiality and integrity.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.hibernate » hibernate-core | < 5.3.20.Final>= 5.4.0.Final, < 5.4.24.Final | 5.3.20.Final, 5.4.24.Final |
Blast radius
62% of the dependent artifacts (11,607) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 114,442 |
| 2 hops | 440,355 |
| 3 hops | 234,536 |
| 4 hops | 99,230 |
| 5 hops | 37,700 |
| 6 hops | 18,584 |
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-2020-25638
- Webhttps://github.com/hibernate/hibernate-orm/commit/36ebf7d3836e83e99f2a91777b5389e1daf1f2b7
- Webhttps://github.com/hibernate/hibernate-orm/commit/59fede7acaaa1579b561407aefa582311f7ebe78
- Webhttps://github.com/hibernate/hibernate-orm/commit/d22bbb5c339c9df7712c3365bb1df97c91b35ec5
- Webhttps://bugzilla.redhat.com/show_bug.cgi?id=1881353
- Packagehttps://github.com/hibernate/hibernate-orm
- Webhttps://lists.apache.org/thread.html/r833c1276e41334fa675848a08daf0c61f39009f9f9a400d9f7006d44@%3Cdev.turbine.apache.org%3E
- Webhttps://lists.apache.org/thread.html/rf2378209c676a28b71f9b604a3b3517c448540b85367160e558ef9df@%3Ccommits.turbine.apache.org%3E
- Webhttps://lists.debian.org/debian-lts-announce/2021/01/msg00000.html
- Webhttps://www.debian.org/security/2021/dsa-4908
- Webhttps://www.oracle.com//security-alerts/cpujul2021.html
- Webhttps://www.oracle.com/security-alerts/cpuapr2022.html
- Webhttps://www.oracle.com/security-alerts/cpujul2022.html
