CVE-2020-25638
published high CVSS 3.1 · 7.4hibernate-core: SQL injection vulnerability when both hibernate.use_sql_comments and JPQL String literals are used
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | hibernate-coreHibernate ORM versions before 5.4.24.Final | Affected | Not stated | redhat |
| Debian | buster | libhibernate3-java | Advisory build | 3.6.10.Final-9+deb10u1 | DSA-4908-1 |
| Ubuntu | bionic | libhibernate3-java | Advisory build | 3.6.10.Final-9ubuntu0.18.04.1~esm1 | USN-6845-1 |
| Debian | stretch | libhibernate3-java | Advisory build | 3.6.10.Final-6+deb9u1 | DLA-2512-1 |
| Ubuntu | focal | libhibernate3-java | Advisory build | 3.6.10.Final-9+deb10u1build0.20.04.1 | USN-6845-1 |
| Ubuntu | xenial | libhibernate3-java | Advisory build | 3.6.10.Final-4ubuntu0.1~esm1 | USN-6845-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | hibernate-core | Hibernate ORM versions before 5.4.24.Final (affected) | redhat · cna |
Weaknesses
1- CWE-89
References
8- https://bugzilla.redhat.com/show_bug.cgi?id=1881353
- [turbine-dev] 20211015 Fulcrum Security Hibernate Module https://lists.apache.org/thread.html/r833c1276e41334fa675848a08daf0c61f39009f9f9a400d9f7006d44%40%3Cdev.turbine.apache.org%3E
- [turbine-commits] 20211018 [turbine-fulcrum-security] 02/02: disable module hibernate (JIRA issue TRB-103), update docs, remove suppression https://lists.apache.org/thread.html/rf2378209c676a28b71f9b604a3b3517c448540b85367160e558ef9df%40%3Ccommits.turbine.apache.org%3E
- [debian-lts-announce] 20210103 [SECURITY] [DLA 2512-1] libhibernate3-java security update https://lists.debian.org/debian-lts-announce/2021/01/msg00000.html
- DSA-4908 https://www.debian.org/security/2021/dsa-4908
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
Provider assertions
3redhat · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 217b3aaff86110d252ed4c97703be6efc264c8ea705d92722cc5af66f3371bc8
- Ingested
- 23 Sep 2026, 07:49:45 UTC
- Source record
- Official CVE record