Skip to content
Fencer Vulns
high 7.4

CVE-2020-25638 json

SQL injection in hibernate-core

published 2020-12-02 5 y ago modified 2026-06-17 4 mo ago also GHSA-j8jw-g6fq-mp7h , EUVD-2022-1070

cvss
7.4
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.9%
EPSS 2.9% chance of exploitation in 30 days, percentile 87%
public exploits
0
none known

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.

Patch / fix

  • maven org.hibernate:hibernate-core 5.3.20.Final, 5.4.24.Final
  • hibernate hibernate_orm 5.3.20, 5.4.24
  • libhibernate3-java Debian 14, Debian 13, Debian 12 3.6.10.Final-11

debian advisories DEBIAN-CVE-2020-25638

  • libhibernate3-java Ubuntu 20.04 LTS 3.6.10.Final-9+deb10u1build0.20.04.1
  • libhibernate3-java Ubuntu Pro 16.04 LTS 3.6.10.Final-4ubuntu0.1~esm1
  • libhibernate3-java Ubuntu Pro 18.04 LTS 3.6.10.Final-9ubuntu0.18.04.1~esm1

ubuntu advisories UBUNTU-CVE-2020-25638

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • jws5-ecj jboss enterprise web server 5.5 4.12.0-3.redhat_2.2.el7jws
  • jws5-ecj jboss enterprise web server 5.5 4.12.0-3.redhat_2.2.el8jws
  • jws5-tomcat jboss enterprise web server 5.5 9.0.43-11.redhat_00011.1.el7jws
  • jws5-tomcat jboss enterprise web server 5.5 9.0.43-11.redhat_00011.1.el8jws
  • jws5-tomcat-lib jboss enterprise web server 5.5 9.0.43-11.redhat_00011.1.el7jws
  • jws5-tomcat-lib jboss enterprise web server 5.5 9.0.43-11.redhat_00011.1.el8jws
  • jws5-mod_cluster jboss enterprise web server 5.5 1.4.3-2.Final_redhat_00002.1.el7jws
  • jws5-mod_cluster jboss enterprise web server 5.5 1.4.3-2.Final_redhat_00002.1.el8jws

red hat advisories RHSA-2025:9582RHSA-2021:2561RHSA-2020:5342RHSA-2020:5341RHSA-2020:5340RHSA-2020:5175

  • c3p0 Manager Server Module 4.2 0.9.5.2-150300.4.3.1
  • rhnlib Manager Server Module 4.2 4.2.5-150300.4.6.1
  • mgr-osad Manager Server Module 4.2 4.2.7-150300.2.6.1
  • mgr-push Manager Server Module 4.2 4.2.4-150300.2.6.1
  • spacecmd Manager Server Module 4.2 4.2.15-150300.4.15.1
  • hibernate5 Manager Server Module 4.2 5.3.7-150300.5.3.1
  • mgr-libmod Manager Server Module 4.2 4.2.7-150300.3.6.1
  • susemanager Manager Server Module 4.2 4.2.27-150300.3.19.1

suse advisories SUSE-SU-2022:0593-1SUSE-SU-2022:0225-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2020-25638 updated cvss 7.4

hibernate-core: SQL injection vulnerability when both hibernate.use_sql_comments and JPQL String literals are used

  • Red Hat BPM Suite 6 hibernate-core
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Decision Manager 7 hibernate-core-kie-server-ee7 hibernate-core-kie-server-ee7
    affected: workaround, no fix planned “Will not fix”
  • Red Hat JBoss BRMS 5 hibernate-core Red Hat JBoss BRMS 6 hibernate-core Red Hat JBoss Data Virtualization 6 hibernate-core Red Hat JBoss Enterprise Application Platform 5 hibernate-core Red Hat JBoss Enterprise Application Platform 6 hibernate-core Red Hat JBoss Fuse 6 hibernate-core
    +3 more products
    Red Hat JBoss Fuse Service Works 6 hibernate-core Red Hat JBoss Operations Network 3 hibernate-core Red Hat JBoss SOA Platform 5 hibernate-core
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat OpenShift Application Runtimes hibernate-core
    affected: workaround, no fix available
  • Red Hat OpenStack Platform 10 (Newton) opendaylight
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat OpenStack Platform 13 (Queens) opendaylight Red Hat Process Automation 7 hibernate-core-kie-server-ee7 hibernate-core-kie-server-ee7
    affected: workaround, no fix planned “Will not fix”
  • Red Hat support for Spring Boot hibernate-core
    affected: workaround, no fix available
  • Red Hat EAP 7.3.3
    fixed: vendor fix RHSA-2020:5174
show 17 more
  • Red Hat build of Quarkus 1.7.5 SP1
    fixed: vendor fix RHSA-2020:5302
  • Red Hat Fuse 7.9
    fixed: vendor fix RHSA-2021:3140
  • Red Hat Integration
    fixed: vendor fix RHSA-2021:2039
  • Red Hat JBoss EAP 7.3 for BaseOS-8 eap7-jasypt 1.9.3-1.redhat_00002.1.el8eap, eap7-fge-btf 1.2.0-1.redhat_00007.1.el8eap, eap7-wildfly 7.3.4-3.GA_redhat_00003.1.el8eap, eap7-jackson-core 2.10.4-1.redhat_00002.1.el8eap, eap7-undertow 2.0.32-1.SP1_redhat_00001.1.el8eap, eap7-fge-msg-simple 1.1.0-1.redhat_00007.1.el8eap, +66 more
    fixed: vendor fix RHSA-2020:5175
  • Red Hat JBoss EAP 7.3 for RHEL 6 Server eap7-jasypt 1.9.3-1.redhat_00002.1.el6eap, eap7-fge-btf 1.2.0-1.redhat_00007.1.el6eap, eap7-wildfly 7.3.4-3.GA_redhat_00003.1.el6eap, eap7-jackson-core 2.10.4-1.redhat_00002.1.el6eap, eap7-undertow 2.0.32-1.SP1_redhat_00001.1.el6eap, eap7-fge-msg-simple 1.1.0-1.redhat_00007.1.el6eap, +66 more
    fixed: vendor fix RHSA-2020:5340
  • Red Hat JBoss EAP 7.3 for RHEL 7 Server eap7-jasypt 1.9.3-1.redhat_00002.1.el7eap, eap7-fge-btf 1.2.0-1.redhat_00007.1.el7eap, eap7-wildfly 7.3.4-3.GA_redhat_00003.1.el7eap, eap7-jackson-core 2.10.4-1.redhat_00002.1.el7eap, eap7-undertow 2.0.32-1.SP1_redhat_00001.1.el7eap, eap7-fge-msg-simple 1.1.0-1.redhat_00007.1.el7eap, +68 more
    fixed: vendor fix RHSA-2020:5175
  • Red Hat JBoss Enterprise Application Platform 7
    fixed: vendor fix RHSA-2020:5344
  • Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 Server eap7-wildfly 7.1.11-4.GA_redhat_00002.1.ep7.el7, eap7-netty 4.1.63-2.Final_redhat_00003.1.ep7.el7, eap7-undertow 1.4.18-16.SP14_redhat_00001.1.ep7.el7, eap7-glassfish-el 3.0.1-4.b08_redhat_00005.1.ep7.el7, eap7-hibernate 5.1.17-3.Final_redhat_00004.1.ep7.el7, eap7-netty-all 4.1.63-2.Final_redhat_00003.1.ep7.el7, +19 more
    fixed: vendor fix RHSA-2025:9582
  • Red Hat JBoss Web Server 5
    fixed: vendor fix RHSA-2021:2562
  • Red Hat JBoss Web Server 5.5 for RHEL 7 Server jws5-ecj 4.12.0-3.redhat_2.2.el7jws, jws5-tomcat 9.0.43-11.redhat_00011.1.el7jws, jws5-tomcat-native 1.2.26-3.redhat_3.el7jws, jws5-tomcat-lib 9.0.43-11.redhat_00011.1.el7jws, jws5-tomcat-javadoc 9.0.43-11.redhat_00011.1.el7jws, jws5-tomcat-selinux 9.0.43-11.redhat_00011.1.el7jws, +12 more Red Hat JBoss Web Server 5.5 for RHEL 8 jws5-ecj 4.12.0-3.redhat_2.2.el8jws, jws5-tomcat 9.0.43-11.redhat_00011.1.el8jws, jws5-tomcat-native 1.2.26-3.redhat_3.el8jws, jws5-tomcat-lib 9.0.43-11.redhat_00011.1.el8jws, jws5-tomcat-javadoc 9.0.43-11.redhat_00011.1.el8jws, jws5-tomcat-selinux 9.0.43-11.redhat_00011.1.el8jws, +10 more
    fixed: vendor fix RHSA-2021:2561
  • Red Hat Single Sign-On 7
    fixed: vendor fix RHSA-2020:5533
  • Red Hat Single Sign-On 7.4.3 one-off
    fixed: vendor fix RHSA-2020:5254
  • Red Hat support for Spring Boot 2.3.6
    fixed: vendor fix RHSA-2021:0292
  • Red Hat RHDM 7.10.0
    fixed: vendor fix RHSA-2021:0603
  • Red Hat RHPAM 7.10.0
    fixed: vendor fix RHSA-2021:0600
  • Red Hat Text-Only RHOAR
    fixed: vendor fix RHSA-2020:5361
  • Red Hat A-MQ Clients 2 hibernate-core Red Hat Integration Camel K 1 hibernate-core
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
18 mo ago

Exploit prediction

2.93% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 7.4 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD 3.1 7.4 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
CNA 3.1 7.4 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD 2.0 5.8 AV:N/AC:M/Au:N/C:P/I:P/A:N
GitHub 3.1 7.4 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected packages

ecosystem package affected fixed in
maven org.hibernate:hibernate-core
>=5.4.0.Final, <5.4.24.Final
<5.3.20.Final
5.4.24.Final
5.3.20.Final

Affected products

  • n/a hibernate-core

Classification

Weakness
  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.