CVE-2020-25638
HIGH 7.4CVSS 3.1SQL injection in hibernate-core
A flaw was found in hibernate-core in versions prior 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.
- Published
- 2 Dec 2020
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-j8jw-g6fq-mp7h
- Sources
- NVDJSONOSV GHSA-j8jw-g6fq-mp7hJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hibernate | hibernate_ormcpe:2.3:a:hibernate:hibernate_orm:*:*:*:*:*:*:*:* |
< 5.3.20 | 5.3.20 |
| NVD | hibernate | hibernate_ormcpe:2.3:a:hibernate:hibernate_orm:*:*:*:*:*:*:*:* |
>= 5.4.0, < 5.4.24 | 5.4.24 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | quarkus | quarkuscpe:2.3:a:quarkus:quarkus:*:*:*:*:*:*:*:* |
<= 1.9.2 | |
| NVD | oracle | communications_cloud_native_core_consolecpe:2.3:a:oracle:communications_cloud_native_core_console:1.9.0:*:*:*:*:*:*:* |
= 1.9.0 | |
| NVD | oracle | retail_customer_management_and_segmentation_foundationcpe:2.3:a:oracle:retail_customer_management_and_segmentation_foundation:19.0:*:*:*:*:*:*:* |
= 19.0 | |
| OSV | Maven | org.hibernate:hibernate-core | >= 5.4.0.Final, < 5.4.24.Final | 5.4.24.Final |
| OSV | Maven | org.hibernate:hibernate-core | < 5.3.20.Final | 5.3.20.Final |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1881353 · Issue Tracking, Third Party Advisory, WEB
- https://lists.apache.org/thread.html/r833c1276e41334fa675848a08daf0c61f39009f9f9a400d9f7006d44%40%3Cdev.turbine.apache.org%3E
- https://lists.apache.org/thread.html/rf2378209c676a28b71f9b604a3b3517c448540b85367160e558ef9df%40%3Ccommits.turbine.apache.org%3E
- https://lists.debian.org/debian-lts-announce/2021/01/msg00000.html · Mailing List, Third Party Advisory, WEB
- https://www.debian.org/security/2021/dsa-4908 · Third Party Advisory, WEB
- https://www.oracle.com//security-alerts/cpujul2021.html · Patch, Third Party Advisory, WEB
- https://www.oracle.com/security-alerts/cpuapr2022.html · Patch, Third Party Advisory, WEB
- https://www.oracle.com/security-alerts/cpujul2022.html · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-25638 · ADVISORY
- https://github.com/hibernate/hibernate-orm/commit/36ebf7d3836e83e99f2a91777b5389e1daf1f2b7 · WEB
- https://github.com/hibernate/hibernate-orm/commit/59fede7acaaa1579b561407aefa582311f7ebe78 · WEB
- https://github.com/hibernate/hibernate-orm/commit/d22bbb5c339c9df7712c3365bb1df97c91b35ec5 · WEB
- https://github.com/hibernate/hibernate-orm · PACKAGE
- https://lists.apache.org/thread.html/r833c1276e41334fa675848a08daf0c61f39009f9f9a400d9f7006d44@%3Cdev.turbine.apache.org%3E · WEB
- https://lists.apache.org/thread.html/rf2378209c676a28b71f9b604a3b3517c448540b85367160e558ef9df@%3Ccommits.turbine.apache.org%3E · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 2 Dec 2020)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 9 Feb 2022)