CVE-2020-25638
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.hibernate:hibernate-core | Maven Central | 5.4.24, 5.3.20 |
| quarkus | quarkus | 1.9.2 |
| hibernate_orm | hibernate | 5.4.24, 5.3.20 |
| 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 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | hibernate-core | Hibernate ORM versions before 5.4.24.Final |
| Maven | org.hibernate:hibernate-core | 0, 5.4.0 |
| n/a | hibernate-core | 5.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
References
- x_refsource_MISC
- [debian-lts-announce] 20210103 [SECURITY] [DLA 2512-1] libhibernate3-java security update mailing-listx_refsource_MLIST
- DSA-4908 vendor-advisoryx_refsource_DEBIAN
- x_refsource_MISC
- [turbine-dev] 20211015 Fulcrum Security Hibernate Module mailing-listx_refsource_MLIST
- [turbine-commits] 20211018 [turbine-fulcrum-security] 02/02: disable module hibernate (JIRA issue TRB-103), update docs, remove suppression mailing-listx_refsource_MLIST
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2020-25638 advisory