CVE-2020-25638
Public on
Last Modified:
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.
Statement
For Red Hat Process Automation Manager and Red Hat Decision Manager, the kie-server-ee7 zip is primarily for Weblogic/Websphere which is decided to stay on hibernate 5.1.x, it's not possible to make an upgrade to 5.3.x due to technical reasons. For this reason this fix is included only for kie-server-ee7. For this reason there are two components for RHPAM and RHDM.
Mitigation
Set hibernate.use_sql_comments to false, which is the default value, or use named parameters instead of literals. Please refer to details in This content is not included.https://docs.jboss.org/hibernate/orm/5.4/userguide/html_single/Hibernate_User_Guide.html#configurations-logging and This content is not included.https://docs.jboss.org/hibernate/orm/5.4/userguide/html_single/Hibernate_User_Guide.html#sql-query-parameters.
Additional Information
- This content is not included.Bugzilla 1881353: hibernate-core: SQL injection vulnerability when both hibernate.use_sql_comments and JPQL String literals are used
- Content from cwe.mitre.org is not included.CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- FAQ: Frequently asked questions about CVE-2020-25638
- Offline Security Data data is available for integration with other systems. See Offline Security Data API to get started.
External References
Content from www.cve.org is not included.https://www.cve.org/CVERecord?id=CVE-2020-25638
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2020-25638
Affected Packages and Issued Red Hat Security Errata
| Products / Services | Components | State | Errata |
|---|---|---|---|
| A-MQ Clients 2 | hibernate-core | Not affected | |
| EAP 7.3.3 | hibernate-core | Fixed | RHSA-2020:5174 |
| RHDM 7.10.0 | hibernate-core-kie-server-ee8 | Fixed | RHSA-2021:0603 |
| RHPAM 7.10.0 | hibernate-core-kie-server-ee8 | Fixed | RHSA-2021:0600 |
| Red Hat BPM Suite 6 | hibernate-core | Out of support scope | |
| Red Hat Decision Manager 7 | hibernate-core-kie-server-ee7 | Will not fix | |
| Red Hat Fuse 7.9 | hibernate-core | Fixed | RHSA-2021:3140 |
| Red Hat Integration | hibernate-core | Fixed | RHSA-2021:2039 |
| Red Hat Integration Camel K 1 | hibernate-core | Not affected | |
| Red Hat JBoss BRMS 5 | hibernate-core | Out of support scope | |
| Red Hat JBoss BRMS 6 | hibernate-core | Out of support scope | |
| Red Hat JBoss Data Virtualization 6 | hibernate-core | Out of support scope | |
| Red Hat JBoss Enterprise Application Platform 5 | hibernate-core | Out of support scope | |
| Red Hat JBoss Enterprise Application Platform 6 | hibernate-core | Out of support scope | |
| Red Hat JBoss Enterprise Application Platform 7 | hibernate-core | Fixed | RHSA-2020:5344 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-glassfish-el | Fixed | RHSA-2025:9582 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-hibernate | Fixed | RHSA-2025:9582 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-jackson-databind | Fixed | RHSA-2025:9582 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-jboss-ejb-client | Fixed | RHSA-2025:9582 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-netty | Fixed | RHSA-2025:9582 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-undertow | Fixed | RHSA-2025:9582 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-wildfly | Fixed | RHSA-2025:9582 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-wildfly-elytron | Fixed | RHSA-2025:9582 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-wildfly-http-client | Fixed | RHSA-2025:9582 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-wildfly-naming-client | Fixed | RHSA-2025:9582 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-wildfly-openssl | Fixed | RHSA-2025:9582 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-wildfly-openssl-linux | Fixed | RHSA-2025:9582 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-hibernate | Fixed | RHSA-2020:5175 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-activemq-artemis | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-fge-btf | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-fge-msg-simple | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-hal-console | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-hibernate-validator | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-jackson-annotations | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-jackson-core | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-jackson-coreutils | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-jackson-jaxrs-providers | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-jackson-modules-base | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-jackson-modules-java8 | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-jasypt | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-jboss-marshalling | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-jboss-remoting | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-jboss-server-migration | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-jboss-xnio-base | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-undertow | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-wildfly | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-wildfly-elytron | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6 | eap7-wildfly-openssl | Fixed | RHSA-2020:5340 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-hibernate | Fixed | RHSA-2020:5175 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-activemq-artemis | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-fge-btf | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-fge-msg-simple | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-hal-console | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-hibernate-validator | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-jackson-annotations | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-jackson-core | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-jackson-coreutils | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-jackson-jaxrs-providers | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-jackson-modules-base | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-jackson-modules-java8 | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-jasypt | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-jboss-marshalling | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-jboss-remoting | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-jboss-server-migration | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-jboss-xnio-base | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-undertow | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-wildfly | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-wildfly-elytron | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 7 | eap7-wildfly-openssl | Fixed | RHSA-2020:5341 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-hibernate | Fixed | RHSA-2020:5175 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-activemq-artemis | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-fge-btf | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-fge-msg-simple | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-hal-console | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-hibernate-validator | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-jackson-annotations | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-jackson-core | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-jackson-coreutils | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-jackson-jaxrs-providers | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-jackson-modules-base | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-jackson-modules-java8 | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-jasypt | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-jboss-marshalling | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-jboss-remoting | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-jboss-server-migration | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-jboss-xnio-base | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-undertow | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-wildfly | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-wildfly-elytron | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 8 | eap7-wildfly-openssl | Fixed | RHSA-2020:5342 |
| Red Hat JBoss Fuse 6 | hibernate-core | Out of support scope | |
| Red Hat JBoss Fuse Service Works 6 | hibernate-core | Out of support scope | |
| Red Hat JBoss Operations Network 3 | hibernate-core | Out of support scope | |
| Red Hat JBoss SOA Platform 5 | hibernate-core | Out of support scope | |
| Red Hat JBoss Web Server 5 | hibernate-core | Fixed | RHSA-2021:2562 |
| Red Hat JBoss Web Server 5.5 on RHEL 7 | jws5-ecj | Fixed | RHSA-2021:2561 |
| Red Hat JBoss Web Server 5.5 on RHEL 7 | jws5-mod_cluster | Fixed | RHSA-2021:2561 |
| Red Hat JBoss Web Server 5.5 on RHEL 7 | jws5-tomcat | Fixed | RHSA-2021:2561 |
| Red Hat JBoss Web Server 5.5 on RHEL 7 | jws5-tomcat-native | Fixed | RHSA-2021:2561 |
| Red Hat JBoss Web Server 5.5 on RHEL 7 | jws5-tomcat-vault | Fixed | RHSA-2021:2561 |
| Red Hat JBoss Web Server 5.5 on RHEL 8 | jws5-ecj | Fixed | RHSA-2021:2561 |
| Red Hat JBoss Web Server 5.5 on RHEL 8 | jws5-mod_cluster | Fixed | RHSA-2021:2561 |
| Red Hat JBoss Web Server 5.5 on RHEL 8 | jws5-tomcat | Fixed | RHSA-2021:2561 |
| Red Hat JBoss Web Server 5.5 on RHEL 8 | jws5-tomcat-native | Fixed | RHSA-2021:2561 |
| Red Hat JBoss Web Server 5.5 on RHEL 8 | jws5-tomcat-vault | Fixed | RHSA-2021:2561 |
| Red Hat OpenShift Application Runtimes | hibernate-core | Affected | |
| Red Hat OpenStack Platform 10 (Newton) | opendaylight | Out of support scope | |
| Red Hat OpenStack Platform 13 (Queens) | opendaylight | Will not fix | |
| Red Hat Process Automation 7 | hibernate-core-kie-server-ee7 | Will not fix | |
| Red Hat Single Sign-On 7.4.3 one-off | hibernate-core | Fixed | RHSA-2020:5254 |
| Red Hat build of Quarkus 1.7.5 SP1 | hibernate-core | Fixed | RHSA-2020:5302 |
| Red Hat support for Spring Boot | hibernate-core | Affected | |
| Red Hat support for Spring Boot 2.3.6 | hibernate-core | Fixed | RHSA-2021:0292 |
| Text-Only RHOAR | Fixed | RHSA-2020:5361 | |
| Text-Only RHOAR | Fixed | RHSA-2020:5388 | |
| Text-Only RHSSO | hibernate-core | Fixed | RHSA-2020:5533 |
Common Vulnerability Scoring System (CVSS) Score Details
Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authorities (CNA) source for its products and services (see Red Hat classifications ).
| CVSS v3 Score Breakdown | Red Hat | NVD |
|---|---|---|
| CVSS v3 Base Score | 7.4 | 7.4 |
| Attack Vector | Network | Network |
| Attack Complexity | High | High |
| Privileges Required | None | None |
| User Interaction | None | None |
| Scope | Unchanged | Unchanged |
| Confidentiality Impact | High | High |
| Integrity Impact | High | High |
| Availability Impact | None | None |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Frequently Asked Questions
Why is Red Hat's CVSS v3 score or Impact different from other vendors?
For more information, see https://access.redhat.com/solutions/762393.
My product is listed as "Under investigation" or "Affected", when will Red Hat release a fix for this vulnerability?
- "Under investigation" doesn't necessarily mean that the product is affected by this vulnerability. It only means that our Analysis Team is still working on determining whether the product is affected and how it is affected.
- "Affected" means that our Analysis Team has determined that this product is affected by this vulnerability and might release a fix to address this in the near future.
What can I do if my product is listed as "Will not fix"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Upgrade to a supported product version that includes a fix for this vulnerability (recommended).
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
What can I do if my product is listed as "Fix deferred"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
- Red Hat Engineering focuses on addressing high-priority issues based on their complexity or limited lifecycle support. Therefore, lower-priority issues will not receive immediate fixes.
What is a mitigation?
I have a Red Hat product but it is not in the above list, is it affected?
Why is my security scanner reporting my product as vulnerable to this vulnerability even though my product version is fixed or not affected?
My product is listed as "Out of Support Scope". What does this mean?
Not sure what something means? Check out our Security Glossary.