VDB

CVE-2020-25638

CVE-2020-25638 PUBLISHED CVSS 7.400000095367432 HIGH

SQL injection in hibernate-core

Reported by redhat · Published December 2, 2020

hibernate-core is fixed in 5.4.24 and 5.3.20 (Maven Central)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
org.hibernate:hibernate-coreMaven Central5.4.24, 5.3.20
quarkusquarkus1.9.2
hibernate_ormhibernate5.4.24, 5.3.20
libhibernate3-javaUbuntu:20.04:LTS3.6.10.Final-9+deb10u1build0.20.04.1
libhibernate3-javaUbuntu:Pro:16.04:LTS3.6.10.Final-4ubuntu0.1~esm1
libhibernate3-javaUbuntu:Pro:18.04:LTS3.6.10.Final-9ubuntu0.18.04.1~esm1

Risk scores

CVSS 3.1
7.400000095367432
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected products

VendorProductVersions
n/ahibernate-coreHibernate ORM versions before 5.4.24.Final
Mavenorg.hibernate:hibernate-core0, 5.4.0
n/ahibernate-core5.4.24.Final

Timeline

  • Nov 23, 2020 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 6, 2026 Distribution Patch (21 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (22 in total, the first dated here)
  • Sep 2, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2020-25638
vulnetix vdb fixes CVE-2020-25638

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-25638/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›