First published: Tue Sep 22 2020(Updated: )
A flaw was found in Hibernate ORM of all versions before 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 retrieve/update/delete unauthorized information if only the attacker already has the table names and column names.
Credit: secalert@redhat.com secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/eap7-hibernate | <0:5.3.18-2.Final_redhat_00002.1.el6ea | 0:5.3.18-2.Final_redhat_00002.1.el6ea |
redhat/eap7-activemq-artemis | <0:2.9.0-6.redhat_00016.1.el6ea | 0:2.9.0-6.redhat_00016.1.el6ea |
redhat/eap7-fge-btf | <0:1.2.0-1.redhat_00007.1.el6ea | 0:1.2.0-1.redhat_00007.1.el6ea |
redhat/eap7-fge-msg-simple | <0:1.1.0-1.redhat_00007.1.el6ea | 0:1.1.0-1.redhat_00007.1.el6ea |
redhat/eap7-hal-console | <0:3.2.11-1.Final_redhat_00001.1.el6ea | 0:3.2.11-1.Final_redhat_00001.1.el6ea |
redhat/eap7-hibernate-validator | <0:6.0.21-1.Final_redhat_00001.1.el6ea | 0:6.0.21-1.Final_redhat_00001.1.el6ea |
redhat/eap7-jackson-annotations | <0:2.10.4-1.redhat_00002.1.el6ea | 0:2.10.4-1.redhat_00002.1.el6ea |
redhat/eap7-jackson-core | <0:2.10.4-1.redhat_00002.1.el6ea | 0:2.10.4-1.redhat_00002.1.el6ea |
redhat/eap7-jackson-coreutils | <0:1.6.0-1.redhat_00006.1.el6ea | 0:1.6.0-1.redhat_00006.1.el6ea |
redhat/eap7-jackson-jaxrs-providers | <0:2.10.4-1.redhat_00002.1.el6ea | 0:2.10.4-1.redhat_00002.1.el6ea |
redhat/eap7-jackson-modules-base | <0:2.10.4-3.redhat_00002.1.el6ea | 0:2.10.4-3.redhat_00002.1.el6ea |
redhat/eap7-jackson-modules-java8 | <0:2.10.4-1.redhat_00002.1.el6ea | 0:2.10.4-1.redhat_00002.1.el6ea |
redhat/eap7-jasypt | <0:1.9.3-1.redhat_00002.1.el6ea | 0:1.9.3-1.redhat_00002.1.el6ea |
redhat/eap7-jboss-marshalling | <0:2.0.10-1.Final_redhat_00001.1.el6ea | 0:2.0.10-1.Final_redhat_00001.1.el6ea |
redhat/eap7-jboss-remoting | <0:5.0.19-1.Final_redhat_00001.1.el6ea | 0:5.0.19-1.Final_redhat_00001.1.el6ea |
redhat/eap7-jboss-server-migration | <0:1.7.2-3.Final_redhat_00004.1.el6ea | 0:1.7.2-3.Final_redhat_00004.1.el6ea |
redhat/eap7-jboss-xnio-base | <0:3.7.11-1.Final_redhat_00001.1.el6ea | 0:3.7.11-1.Final_redhat_00001.1.el6ea |
redhat/eap7-undertow | <0:2.0.32-1.SP1_redhat_00001.1.el6ea | 0:2.0.32-1.SP1_redhat_00001.1.el6ea |
redhat/eap7-wildfly | <0:7.3.4-3.GA_redhat_00003.1.el6ea | 0:7.3.4-3.GA_redhat_00003.1.el6ea |
redhat/eap7-wildfly-elytron | <0:1.10.9-1.Final_redhat_00001.1.el6ea | 0:1.10.9-1.Final_redhat_00001.1.el6ea |
redhat/eap7-wildfly-openssl | <0:1.0.12-1.Final_redhat_00001.1.el6ea | 0:1.0.12-1.Final_redhat_00001.1.el6ea |
redhat/eap7-hibernate | <0:5.3.18-2.Final_redhat_00002.1.el7ea | 0:5.3.18-2.Final_redhat_00002.1.el7ea |
redhat/eap7-activemq-artemis | <0:2.9.0-6.redhat_00016.1.el7ea | 0:2.9.0-6.redhat_00016.1.el7ea |
redhat/eap7-fge-btf | <0:1.2.0-1.redhat_00007.1.el7ea | 0:1.2.0-1.redhat_00007.1.el7ea |
redhat/eap7-fge-msg-simple | <0:1.1.0-1.redhat_00007.1.el7ea | 0:1.1.0-1.redhat_00007.1.el7ea |
redhat/eap7-hal-console | <0:3.2.11-1.Final_redhat_00001.1.el7ea | 0:3.2.11-1.Final_redhat_00001.1.el7ea |
redhat/eap7-hibernate-validator | <0:6.0.21-1.Final_redhat_00001.1.el7ea | 0:6.0.21-1.Final_redhat_00001.1.el7ea |
redhat/eap7-jackson-annotations | <0:2.10.4-1.redhat_00002.1.el7ea | 0:2.10.4-1.redhat_00002.1.el7ea |
redhat/eap7-jackson-core | <0:2.10.4-1.redhat_00002.1.el7ea | 0:2.10.4-1.redhat_00002.1.el7ea |
redhat/eap7-jackson-coreutils | <0:1.6.0-1.redhat_00006.1.el7ea | 0:1.6.0-1.redhat_00006.1.el7ea |
redhat/eap7-jackson-jaxrs-providers | <0:2.10.4-1.redhat_00002.1.el7ea | 0:2.10.4-1.redhat_00002.1.el7ea |
redhat/eap7-jackson-modules-base | <0:2.10.4-3.redhat_00002.1.el7ea | 0:2.10.4-3.redhat_00002.1.el7ea |
redhat/eap7-jackson-modules-java8 | <0:2.10.4-1.redhat_00002.1.el7ea | 0:2.10.4-1.redhat_00002.1.el7ea |
redhat/eap7-jasypt | <0:1.9.3-1.redhat_00002.1.el7ea | 0:1.9.3-1.redhat_00002.1.el7ea |
redhat/eap7-jboss-marshalling | <0:2.0.10-1.Final_redhat_00001.1.el7ea | 0:2.0.10-1.Final_redhat_00001.1.el7ea |
redhat/eap7-jboss-remoting | <0:5.0.19-1.Final_redhat_00001.1.el7ea | 0:5.0.19-1.Final_redhat_00001.1.el7ea |
redhat/eap7-jboss-server-migration | <0:1.7.2-3.Final_redhat_00004.1.el7ea | 0:1.7.2-3.Final_redhat_00004.1.el7ea |
redhat/eap7-jboss-xnio-base | <0:3.7.11-1.Final_redhat_00001.1.el7ea | 0:3.7.11-1.Final_redhat_00001.1.el7ea |
redhat/eap7-undertow | <0:2.0.32-1.SP1_redhat_00001.1.el7ea | 0:2.0.32-1.SP1_redhat_00001.1.el7ea |
redhat/eap7-wildfly | <0:7.3.4-3.GA_redhat_00003.1.el7ea | 0:7.3.4-3.GA_redhat_00003.1.el7ea |
redhat/eap7-wildfly-elytron | <0:1.10.9-1.Final_redhat_00001.1.el7ea | 0:1.10.9-1.Final_redhat_00001.1.el7ea |
redhat/eap7-wildfly-openssl | <0:1.0.12-1.Final_redhat_00001.1.el7ea | 0:1.0.12-1.Final_redhat_00001.1.el7ea |
redhat/eap7-hibernate | <0:5.3.18-2.Final_redhat_00002.1.el8ea | 0:5.3.18-2.Final_redhat_00002.1.el8ea |
redhat/eap7-activemq-artemis | <0:2.9.0-6.redhat_00016.1.el8ea | 0:2.9.0-6.redhat_00016.1.el8ea |
redhat/eap7-fge-btf | <0:1.2.0-1.redhat_00007.1.el8ea | 0:1.2.0-1.redhat_00007.1.el8ea |
redhat/eap7-fge-msg-simple | <0:1.1.0-1.redhat_00007.1.el8ea | 0:1.1.0-1.redhat_00007.1.el8ea |
redhat/eap7-hal-console | <0:3.2.11-1.Final_redhat_00001.1.el8ea | 0:3.2.11-1.Final_redhat_00001.1.el8ea |
redhat/eap7-hibernate-validator | <0:6.0.21-1.Final_redhat_00001.1.el8ea | 0:6.0.21-1.Final_redhat_00001.1.el8ea |
redhat/eap7-jackson-annotations | <0:2.10.4-1.redhat_00002.1.el8ea | 0:2.10.4-1.redhat_00002.1.el8ea |
redhat/eap7-jackson-core | <0:2.10.4-1.redhat_00002.1.el8ea | 0:2.10.4-1.redhat_00002.1.el8ea |
redhat/eap7-jackson-coreutils | <0:1.6.0-1.redhat_00006.1.el8ea | 0:1.6.0-1.redhat_00006.1.el8ea |
redhat/eap7-jackson-jaxrs-providers | <0:2.10.4-1.redhat_00002.1.el8ea | 0:2.10.4-1.redhat_00002.1.el8ea |
redhat/eap7-jackson-modules-base | <0:2.10.4-3.redhat_00002.1.el8ea | 0:2.10.4-3.redhat_00002.1.el8ea |
redhat/eap7-jackson-modules-java8 | <0:2.10.4-1.redhat_00002.1.el8ea | 0:2.10.4-1.redhat_00002.1.el8ea |
redhat/eap7-jasypt | <0:1.9.3-1.redhat_00002.1.el8ea | 0:1.9.3-1.redhat_00002.1.el8ea |
redhat/eap7-jboss-marshalling | <0:2.0.10-1.Final_redhat_00001.1.el8ea | 0:2.0.10-1.Final_redhat_00001.1.el8ea |
redhat/eap7-jboss-remoting | <0:5.0.19-1.Final_redhat_00001.1.el8ea | 0:5.0.19-1.Final_redhat_00001.1.el8ea |
redhat/eap7-jboss-server-migration | <0:1.7.2-3.Final_redhat_00004.1.el8ea | 0:1.7.2-3.Final_redhat_00004.1.el8ea |
redhat/eap7-jboss-xnio-base | <0:3.7.11-1.Final_redhat_00001.1.el8ea | 0:3.7.11-1.Final_redhat_00001.1.el8ea |
redhat/eap7-undertow | <0:2.0.32-1.SP1_redhat_00001.1.el8ea | 0:2.0.32-1.SP1_redhat_00001.1.el8ea |
redhat/eap7-wildfly | <0:7.3.4-3.GA_redhat_00003.1.el8ea | 0:7.3.4-3.GA_redhat_00003.1.el8ea |
redhat/eap7-wildfly-elytron | <0:1.10.9-1.Final_redhat_00001.1.el8ea | 0:1.10.9-1.Final_redhat_00001.1.el8ea |
redhat/eap7-wildfly-openssl | <0:1.0.12-1.Final_redhat_00001.1.el8ea | 0:1.0.12-1.Final_redhat_00001.1.el8ea |
redhat/jws5-ecj | <0:4.12.0-3.redhat_2.2.el7 | 0:4.12.0-3.redhat_2.2.el7 |
redhat/jws5-tomcat | <0:9.0.43-11.redhat_00011.1.el7 | 0:9.0.43-11.redhat_00011.1.el7 |
redhat/jws5-tomcat-native | <0:1.2.26-3.redhat_3.el7 | 0:1.2.26-3.redhat_3.el7 |
redhat/jws5-tomcat-vault | <0:1.1.8-2.Final_redhat_00003.1.el7 | 0:1.1.8-2.Final_redhat_00003.1.el7 |
redhat/jws5-ecj | <0:4.12.0-3.redhat_2.2.el8 | 0:4.12.0-3.redhat_2.2.el8 |
redhat/jws5-tomcat | <0:9.0.43-11.redhat_00011.1.el8 | 0:9.0.43-11.redhat_00011.1.el8 |
redhat/jws5-tomcat-native | <0:1.2.26-3.redhat_3.el8 | 0:1.2.26-3.redhat_3.el8 |
redhat/jws5-tomcat-vault | <0:1.1.8-2.Final_redhat_00003.1.el8 | 0:1.1.8-2.Final_redhat_00003.1.el8 |
debian/libhibernate3-java | 3.6.10.Final-9+deb10u1 3.6.10.Final-11 3.6.10.Final-12 | |
redhat/Hibernate ORM | <5.4.24. | 5.4.24. |
Hibernate Hibernate Orm | <5.3.20 | |
Hibernate Hibernate Orm | >=5.4.0<5.4.24 | |
Debian Debian Linux | =9.0 | |
Debian Debian Linux | =10.0 | |
Quarkus Quarkus | <=1.9.2 | |
Oracle Communications Cloud Native Core Console | =1.9.0 | |
Oracle Retail Customer Management and Segmentation Foundation | =19.0 | |
maven/org.hibernate:hibernate-core | <5.3.20.Final | 5.3.20.Final |
maven/org.hibernate:hibernate-core | >=5.4.0.Final<5.4.24.Final | 5.4.24.Final |
Set hibernate.use_sql_comments to false, which is the default value, or use named parameters instead of literals. Please refer to details in https://docs.jboss.org/hibernate/orm/5.4/userguide/html_single/Hibernate_User_Guide.html#configurations-logging and https://docs.jboss.org/hibernate/orm/5.4/userguide/html_single/Hibernate_User_Guide.html#sql-query-parameters.
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)