Skip to content

SQL injection in hibernate-core

High severity GitHub Reviewed Published Feb 9, 2022 to the GitHub Advisory Database • Updated Jun 27, 2024

Package

maven org.hibernate:hibernate-core (Maven)

Affected versions

>= 5.4.0.Final, < 5.4.24.Final
< 5.3.20.Final

Patched versions

5.4.24.Final
5.3.20.Final

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.

References

Published by the National Vulnerability Database Dec 2, 2020
Reviewed Apr 9, 2021
Published to the GitHub Advisory Database Feb 9, 2022
Last updated Jun 27, 2024

Severity

High
7.4
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Weaknesses

CVE ID

CVE-2020-25638

GHSA ID

GHSA-j8jw-g6fq-mp7h

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.