WaratekVRT Sign in

CVE-2020-25638

Affected software4 products, listed below
Severity7.4 High CVSS 3.1 3 scores
Fixed in5.4.24.Final, 5.3.20.Final
WeaknessSQL injection (CWE-89)
Published2 Dec 2020
Updated13 Nov 2026

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 5 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 2.9% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A researcher's recorded decision for this specific CVE
Finding A researcher found this CVE protected by the ARMR SQL rule.

Waratek research note

written 2026-11-13

Written by a Waratek engineer who reviewed this CVE. Their decision sets the status above, ahead of every automated rule except a withdrawal.

Comments

Rule Name: SQL rule

How to mitigate CVE-2020-25638

Upgrade the affected software to a release that fixes it: 5.4.24.Final or 5.3.20.Final. Until you can, Waratek RASP blocks exploitation with its SQL injection rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

7.4 HIGH v3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N 3 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 7.4 HIGH CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N NVD Primary published
CVSS 3.1 7.4 HIGH CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N CISA-ADP Secondary
CVSS 2.0 5.8 none AV:N/AC:M/Au:N/C:P/I:P/A:N NVD Primary

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update April 2024 ↗ CPU 2024-Q2 Oracle Utilities Applications / General (hibernate-core) (4.3.0.3.0-4.3.0.6.0, 4.4.0.0.0, 4.4.0.2.0, 4.4.0.3.0, 4.5.0.0.0, 4.5.0.1.1, 4.5.0.1.2)
Oracle Critical Patch Update April 2023 ↗ CPU 2023-Q2 Oracle Fusion Middleware / Core (JBoss Enterprise Application Platform) (14.1.1.0.0)
Oracle Critical Patch Update April 2022 ↗ CPU 2022-Q2 Oracle Communications / CNC Console (hibernate-core) (1.9.0)
Oracle Critical Patch Update July 2021 ↗ CPU 2021-Q3 Oracle Retail Applications / Segment (Hibernate) (19.0)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Communications CNC Console (hibernate-core) 1.9.0 1.9.0
Oracle Fusion Middleware Core (JBoss Enterprise Application Platform) 14.1.1.0.0 14.1.1.0.0
Oracle Retail Applications Segment (Hibernate) 19.0 19.0
Oracle Utilities Applications General (hibernate-core) 4.3.0.3.0-4.3.0.6.0, 4.4.0.0.0, 4.4.0.2.0, 4.4.0.3.0, 4.5.0.0.0, 4.5.0.1.1, 4.5.0.1.2 4.4.0.0.0 · 4.4.0.2.0 · 4.4.0.3.0 · 4.5.0.0.0 · 4.5.0.1.1 · 4.5.0.1.2

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.hibernate:hibernate-core 5.4.0.Final 5.4.24.Final unbounded
org.hibernate:hibernate-core 0 5.3.20.Final unbounded

Products and versions

6 products, 9 version entries
SourceVendorProductSchemeAffected versions
nvd debian debian linux generic 9.0 · 10.0
nvd hibernate hibernate orm generic < 5.3.20 · ≥ 5.4.0 and < 5.4.24
nvd oracle communications cloud native core console generic 1.9.0
nvd oracle retail customer management and segmentation foundation generic 19.0
osv org.hibernate hibernate-core generic < 5.3.20 · ≥ 5.4.0 and < 5.4.24
nvd quarkus quarkus generic ≤ 1.9.2

Earlier manual review

A reviewer classified this CVE in an older dataset. We kept the labels and products below, but not the reviewer's reasoning.

## Manual Classification Context **Labels:** HTTP, SEGMENT (HIBERNATE), NO AUTH REMOTE EXPLOIT **Products:** ORACLE RETAIL CUSTOMER MANAGEMENT AND SEGMENTATION FOUNDATION, ORACLE RETAIL APPLICATIONS

References

URLTags
https://github.com/hibernate/hibernate-orm/commit/36ebf7d3836e83e99f2a91777b5389e1daf1f2b7 WEB
https://github.com/hibernate/hibernate-orm/commit/59fede7acaaa1579b561407aefa582311f7ebe78 WEB
https://github.com/hibernate/hibernate-orm/commit/d22bbb5c339c9df7712c3365bb1df97c91b35ec5 WEB
https://bugzilla.redhat.com/show_bug.cgi?id=1881353 WEB
https://github.com/hibernate/hibernate-orm PACKAGE
https://lists.apache.org/thread.html/r833c1276e41334fa675848a08daf0c61f39009f9f9a400d9f7006d44@%3Cdev.turbine.apache.org%3E WEB
https://lists.apache.org/thread.html/rf2378209c676a28b71f9b604a3b3517c448540b85367160e558ef9df@%3Ccommits.turbine.apache.org%3E WEB
https://lists.debian.org/debian-lts-announce/2021/01/msg00000.html WEB
https://www.debian.org/security/2021/dsa-4908 WEB
https://www.oracle.com//security-alerts/cpujul2021.html WEB

Timeline

Published2020-12-02By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.
Classification created2026-11-13First commit adding this CVE's research note.
Last VRT activity2026-11-13Most recent commit touching this CVE's classification, patch or rule file.