CVE-2019-14900: SQL Injection in Hibernate ORM
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.7984%
CWE
Published
2/10/2022
Updated
6/27/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.hibernate:hibernate-core | maven | < 5.3.18 | 5.3.18 |
org.hibernate:hibernate-core | maven | >= 5.4.0, < 5.4.18 | 5.4.18 |
org.hibernate:hibernate-core | maven | >= 5.5.0.Alpha1, < 5.5.0.Beta1 | 5.5.0.Beta1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper sanitization in JPA Criteria API literal handling. The commit diff shows critical changes to LiteralExpression.java
's renderProjection()
method, specifically moving Character handling earlier and using inlineLiteral(literal.toString())
instead of handler.render(literal)
. This indicates the original implementation lacked proper escaping for Character literals in projection/group by contexts, making it vulnerable to SQL injection when user-controlled literals were used in these clauses.