# CVE-2020-25638: SQL injection in hibernate-core

- Severity: High 7.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.69%, higher than 86% of CVEs (2026-12-02)
- Published: 2020-12-02T14:36:24.000Z
- Modified: 2026-06-17T03:07:01.623Z
- Also known as: GHSA-j8jw-g6fq-mp7h
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- hibernate-core: Hibernate ORM versions before 5.4.24.Final
- org.hibernate:hibernate-core (Maven): from 5.4.0.Final before 5.4.24.Final; before 5.3.20.Final
- hibernate hibernate_orm: before 5.3.20; from 5.4.0 before 5.4.24
- debian debian_linux: 9.0; 10.0
- quarkus quarkus: up to 1.9.2
- oracle communications_cloud_native_core_console: 1.9.0
- oracle retail_customer_management_and_segmentation_foundation: 19.0

## Every score

- CISA-ADP: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1881353> (issue-tracking, third-party-advisory, web)
- <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, vendor-advisory, web)
- <https://www.oracle.com//security-alerts/cpujul2021.html> (patch, third-party-advisory, web)
- <https://lists.apache.org/thread.html/r833c1276e41334fa675848a08daf0c61f39009f9f9a400d9f7006d44%40%3Cdev.turbine.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/rf2378209c676a28b71f9b604a3b3517c448540b85367160e558ef9df%40%3Ccommits.turbine.apache.org%3E> (mailing-list)
- <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)

## Sources

- CVE List: [CVE-2020-25638](https://www.cve.org/CVERecord?id=CVE-2020-25638), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-j8jw-g6fq-mp7h](https://github.com/advisories/GHSA-j8jw-g6fq-mp7h), CC-BY-4.0, modified 2024-06-27
- NVD: [CVE-2020-25638](https://nvd.nist.gov/vuln/detail/CVE-2020-25638), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-25638 · Whole record: https://cve.day/CVE-2020-25638.json · Rebuilt by cve.day 2026-11-25T22:57:56.002Z
