SQL injection in hibernate-core
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 18 fixed, 16 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | hibernate-core | Hibernate ORM versions before 5.4.24.Final | — | No fix listed | CNA |
| — | org.hibernate:hibernate-core (Maven) | 5.4.0.Final to before 5.4.24.Final | 5.4.24.Final | Patch available | GHSA-j8jw-g6fq-mp7h |
| — | org.hibernate:hibernate-core (Maven) | before 5.3.20.Final | 5.3.20.Final | Patch available | GHSA-j8jw-g6fq-mp7h |
- hibernate-core Vendor— Affected Hibernate ORM versions before 5.4.24.Final Fixed in — No fix listed CNA
- org.hibernate:hibernate-core (Maven) Vendor— Affected 5.4.0.Final to before 5.4.24.Final Fixed in 5.4.24.Final Patch available GHSA-j8jw-g6fq-mp7h
- org.hibernate:hibernate-core (Maven) Vendor— Affected before 5.3.20.Final Fixed in 5.3.20.Final Patch available GHSA-j8jw-g6fq-mp7h
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:hibernate:hibernate_orm:*:*:*:*:*:*:*:* | before 5.3.20; 5.4.0 to before 5.4.24 | Vulnerable | Hibernate |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
| cpe:2.3:a:quarkus:quarkus:*:*:*:*:*:*:*:* | up to 1.9.2 | Vulnerable | quarkusio |
| cpe:2.3:a:oracle:communications_cloud_native_core_console:1.9.0:*:*:*:*:*:*:* | 1.9.0 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:retail_customer_management_and_segmentation_foundation:19.0:*:*:*:*:*:*:* | 19.0 | Vulnerable | Oracle |
- cpe:2.3:a:hibernate:hibernate_orm:*:*:*:*:*:*:*:* Versions before 5.3.20; 5.4.0 to before 5.4.24 Vulnerable ·Hibernate
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
- cpe:2.3:a:quarkus:quarkus:*:*:*:*:*:*:*:* Versions up to 1.9.2 Vulnerable ·quarkusio
- cpe:2.3:a:oracle:communications_cloud_native_core_console:1.9.0:*:*:*:*:*:*:* Versions 1.9.0 Vulnerable ·Oracle
- cpe:2.3:a:oracle:retail_customer_management_and_segmentation_foundation:19.0:*:*:*:*:*:*:* Versions 19.0 Vulnerable ·Oracle
Remediation
- Fix · GHSA-j8jw-g6fq-mp7h org.hibernate:hibernate-core (Maven) Fixed in 5.4.24.Final Advisory →
- Fix · GHSA-j8jw-g6fq-mp7h org.hibernate:hibernate-core (Maven) Fixed in 5.3.20.Final Advisory →
Red Hat 19 advisories
- RHSA-2025:9582 Released 2025-06-25 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.1.11 on RHEL 7 security update
- Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 Server eap7-glassfish-el-3.0.1-4.b08_redhat_00005.1.ep7.el7, eap7-glassfish-el-impl-3.0.1-4.b08_redhat_00005.1.ep7.el7, eap7-hibernate-5.1.17-3.Final_redhat_00004.1.ep7.el7 +22
- RHSA-2021:3140 Released 2021-08-11 · Red Hat rating ModerateRed Hat Fuse 7.9.0 release and security update
- Red Hat Fuse 7.9
- RHSA-2021:2561 Released 2021-06-29 · Red Hat rating ModerateRed Hat JBoss Web Server 5.5.0 Security release
- Red Hat JBoss Web Server 5.5 for RHEL 7 Server jws5-ecj-4.12.0-3.redhat_2.2.el7jws, jws5-mod_cluster-1.4.3-2.Final_redhat_00002.1.el7jws, jws5-mod_cluster-tomcat-1.4.3-2.Final_redhat_00002.1.el7jws +15
- Red Hat JBoss Web Server 5.5 for RHEL 8 jws5-ecj-4.12.0-3.redhat_2.2.el8jws, jws5-mod_cluster-1.4.3-2.Final_redhat_00002.1.el8jws, jws5-mod_cluster-tomcat-1.4.3-2.Final_redhat_00002.1.el8jws +13
Show 16 more Red Hat advisories
- RHSA-2021:2562 Released 2021-06-29 · Red Hat rating ModerateRed Hat JBoss Web Server 5.5.0 security release
- Red Hat JBoss Web Server 5
- RHSA-2021:2039 Released 2021-05-19 · Red Hat rating ModerateService Registry (container images) release and security update [1.1.1.GA]
- Red Hat Integration
- RHSA-2021:0603 Released 2021-02-17 · Red Hat rating ImportantRed Hat Decision Manager 7.10.0 security update
- RHDM 7.10.0
- RHSA-2021:0600 Released 2021-02-17 · Red Hat rating ImportantRed Hat Process Automation Manager 7.10.0 security update
- RHPAM 7.10.0
- RHSA-2021:0292 Released 2021-02-02 · Red Hat rating ImportantRed Hat support for Spring Boot 2.3.6 security update
- Red Hat support for Spring Boot 2.3.6
- RHSA-2020:5388 Released 2021-01-07 · Red Hat rating ImportantRed Hat support for Spring Boot 2.2.11 security update
- Text-Only RHOAR
- RHSA-2020:5361 Released 2020-12-16 · Red Hat rating ImportantRed Hat build of Thorntail 2.7.2 security and bug fix update
- Text-Only RHOAR
- RHSA-2020:5533 Released 2020-12-15 · Red Hat rating ImportantRed Hat Single Sign-On 7.4.4 security update
- Red Hat Single Sign-On 7
- RHSA-2020:5342 Released 2020-12-03 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.3.4 security update
- Red Hat JBoss EAP 7.3 for BaseOS-8 eap7-activemq-artemis-2.9.0-6.redhat_00016.1.el8eap, eap7-activemq-artemis-cli-2.9.0-6.redhat_00016.1.el8eap, eap7-activemq-artemis-commons-2.9.0-6.redhat_00016.1.el8eap +47
- RHSA-2020:5341 Released 2020-12-03 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.3.4 security update
- Red Hat JBoss EAP 7.3 for RHEL 7 Server eap7-activemq-artemis-2.9.0-6.redhat_00016.1.el7eap, eap7-activemq-artemis-cli-2.9.0-6.redhat_00016.1.el7eap, eap7-activemq-artemis-commons-2.9.0-6.redhat_00016.1.el7eap +47
- RHSA-2020:5340 Released 2020-12-03 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.3.4 security update
- Red Hat JBoss EAP 7.3 for RHEL 6 Server eap7-activemq-artemis-2.9.0-6.redhat_00016.1.el6eap, eap7-activemq-artemis-cli-2.9.0-6.redhat_00016.1.el6eap, eap7-activemq-artemis-commons-2.9.0-6.redhat_00016.1.el6eap +47
- RHSA-2020:5344 Released 2020-12-03 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.3.4 security update
- Red Hat JBoss Enterprise Application Platform 7
- RHSA-2020:5302 Released 2020-12-01 · Red Hat rating ImportantRed Hat build of Quarkus 1.7.5 SP1 release and security update
- Red Hat build of Quarkus 1.7.5 SP1
- RHSA-2020:5254 Released 2020-11-30 · Red Hat rating ImportantRed Hat Single Sign-On 7.4.3 one-off security update
- Red Hat Single Sign-On 7.4.3 one-off
- RHSA-2020:5175 Released 2020-11-23 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.3 security update
- Red Hat JBoss EAP 7.3 for BaseOS-8 eap7-hibernate-5.3.18-2.Final_redhat_00002.1.el8eap, eap7-hibernate-core-5.3.18-2.Final_redhat_00002.1.el8eap, eap7-hibernate-entitymanager-5.3.18-2.Final_redhat_00002.1.el8eap +2
- Red Hat JBoss EAP 7.3 for RHEL 6 Server eap7-hibernate-5.3.18-2.Final_redhat_00002.1.el6eap, eap7-hibernate-core-5.3.18-2.Final_redhat_00002.1.el6eap, eap7-hibernate-entitymanager-5.3.18-2.Final_redhat_00002.1.el6eap +2
- Red Hat JBoss EAP 7.3 for RHEL 7 Server eap7-hibernate-5.3.18-2.Final_redhat_00002.1.el7eap, eap7-hibernate-core-5.3.18-2.Final_redhat_00002.1.el7eap, eap7-hibernate-entitymanager-5.3.18-2.Final_redhat_00002.1.el7eap +2
- RHSA-2020:5174 Released 2020-11-23 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.3.3 security update
- EAP 7.3.3
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat BPM Suite 6 | Affected | No fix planned: Out of support scope |
| Red Hat Decision Manager 7 | Affected | No fix planned: Will not fix |
| Red Hat JBoss BRMS 5 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss BRMS 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Data Virtualization 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Enterprise Application Platform 5 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Enterprise Application Platform 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Fuse 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Fuse Service Works 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Operations Network 3 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss SOA Platform 5 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Application Runtimes | Affected | No fix yet |
| Red Hat OpenStack Platform 10 (Newton) | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 13 (Queens) | Affected | No fix planned: Will not fix |
| Red Hat Process Automation 7 | Affected | No fix planned: Will not fix |
| Red Hat support for Spring Boot | Affected | No fix yet |
| EAP 7.3.3 | Fixed | RHSA-2020:5174 |
| RHDM 7.10.0 | Fixed | RHSA-2021:0603 |
| RHPAM 7.10.0 | Fixed | RHSA-2021:0600 |
| Red Hat Fuse 7.9 | Fixed | RHSA-2021:3140 |
| Red Hat Integration | Fixed | RHSA-2021:2039 |
| Red Hat JBoss EAP 7.3 for BaseOS-8 | Fixed | RHSA-2020:5175, RHSA-2020:5342 |
| Red Hat JBoss EAP 7.3 for RHEL 6 Server | Fixed | RHSA-2020:5175, RHSA-2020:5340 |
| Red Hat JBoss EAP 7.3 for RHEL 7 Server | Fixed | RHSA-2020:5175, RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7 | Fixed | RHSA-2020:5344 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 Server | Fixed | RHSA-2025:9582 |
| Red Hat JBoss Web Server 5 | Fixed | RHSA-2021:2562 |
| Red Hat JBoss Web Server 5.5 for RHEL 7 Server | Fixed | RHSA-2021:2561 |
| Red Hat JBoss Web Server 5.5 for RHEL 8 | Fixed | RHSA-2021:2561 |
| Red Hat Single Sign-On 7 | Fixed | RHSA-2020:5533 |
| Red Hat Single Sign-On 7.4.3 one-off | Fixed | RHSA-2020:5254 |
| Red Hat build of Quarkus 1.7.5 SP1 | Fixed | RHSA-2020:5302 |
| Red Hat support for Spring Boot 2.3.6 | Fixed | RHSA-2021:0292 |
| Text-Only RHOAR | Fixed | RHSA-2020:5361 |
Not affected: 2 products
- A-MQ Clients 2
- Red Hat Integration Camel K 1
Timeline
- 2026-10-02 Threatist record created from CVE-2020-25638
- 2026-10-03 Alias added: GHSA-j8jw-g6fq-mp7h
- 2026-11-04 Fix available: Red Hat Single Sign-On 7 · Red Hat
References
Patch 3
Advisory 4
Other 8
- [turbine-dev] 20211015 Fulcrum Security Hibernate Module
- [turbine-commits] 20211018 [turbine-fulcrum-security] 02/02: disable module hibernate (JIRA issue TRB-103), update docs, remove suppression
- https://github.com/hibernate/hibernate-orm/commit/36ebf7d3836e83e99f2a91777b5389e1daf1f2b7
- https://github.com/hibernate/hibernate-orm/commit/59fede7acaaa1579b561407aefa582311f7ebe78
- https://github.com/hibernate/hibernate-orm/commit/d22bbb5c339c9df7712c3365bb1df97c91b35ec5
- https://github.com/hibernate/hibernate-orm
- https://lists.apache.org/thread.html/r833c1276e41334fa675848a08daf0c61f39009f9f9a400d9f7006d44@%3Cdev.turbine.apache.org%3E
- https://lists.apache.org/thread.html/rf2378209c676a28b71f9b604a3b3517c448540b85367160e558ef9df@%3Ccommits.turbine.apache.org%3E
Sources
- CVE-2020-25638 · CVE Program
- CVE-2020-25638 · NVD
- FIRST EPSS
- GHSA-j8jw-g6fq-mp7h · GitHub Advisory Database · CC BY 4.0
- CVE-2020-25638 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences