SQL Injection in Hibernate ORM
Hibernate
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.hibernate:hibernate-core Maven |
|
|
Hibernate
| Product | Affected | Fixed in |
|---|---|---|
| org.hibernate:hibernate-core Maven |
|
|
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.
From the CVE record · redhat
Hibernate ORM has a SQL injection flaw in its JPA Criteria API implementation when an unsanitized literal is used in the SELECT or GROUP BY part of a query. An attacker who can influence such a literal could access unauthorized information or possibly conduct further attacks. The input does not specify whether exploitation requires network access, authentication, or user interaction.
Teams running Maven org.hibernate:hibernate-core versions before 5.3.18, from 5.4.0 to before 5.4.18, or from 5.5.0.Alpha1 to before 5.5.0.Beta1 should check their deployments.