# CVE-2020-25638: SQL injection in hibernate-core

Source: https://junglewise.ai/threats/cve-2020-25638-sql-injection-in-hibernate-core  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-02-09  
License: CC BY 4.0 with a link back

CVE-2020-25638 · Severity: low · CVSS 3.1 · Published 2022-02-09

SQL injection in hibernate-core

Technologies: [org.hibernate:hibernate-core (Maven)](https://junglewise.ai/threats/technologies/org-hibernate-hibernate-core). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2020-25638 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2020-25638 being exploited in the wild.

**How severe is CVE-2020-25638?** Low severity, with a CVSS score of 3.1, published 9 February 2022.

**Which products and versions are affected?** org.hibernate:hibernate-core (Maven) ECOSYSTEM:introduced=5.4.0.Final,fixed=5.4.24.Final.

**Is there a fix for CVE-2020-25638?** Yes. org.hibernate:hibernate-core (Maven): upgrade to 5.4.24.Final or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2020-25638?** Check whether you run org.hibernate:hibernate-core (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.hibernate:hibernate-core (Maven): upgrade to 5.4.24.Final or later

  ```sh
  # set org.hibernate:hibernate-core to 5.4.24.Final in your pom.xml or build.gradle
  ```


## Affected products

- org.hibernate:hibernate-core (Maven) ECOSYSTEM:introduced=5.4.0.Final,fixed=5.4.24.Final

## Identifiers

- CVE-2020-25638
- GHSA-j8jw-g6fq-mp7h

## Related threats

- [Hibernate ORM second-order SQL injection in InlineIdsOrClauseBuilder](https://junglewise.ai/threats/cve-2026-0603-hibernate-orm-second-order-sql-injection-in)
- [SQL Injection in Hibernate ORM](https://junglewise.ai/threats/cve-2019-14900-sql-injection-in-hibernate-orm)
