{"id":"CVE-2020-25638","published":"2020-12-02T14:36:24Z","modified":"2025-04-23T19:47:38Z","title":"A flaw was found in hibernate-core in versions prior to and including 5.4.23.Final","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.02929,"percentile":0.87404,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1881353","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/01/msg00000.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.debian.org/security/2021/dsa-4908","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/r833c1276e41334fa675848a08daf0c61f39009f9f9a400d9f7006d44%40%3Cdev.turbine.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rf2378209c676a28b71f9b604a3b3517c448540b85367160e558ef9df%40%3Ccommits.turbine.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC"]}],"priority":{"score":22.7,"factors":[{"name":"EPSS percentile","points":17.48},{"name":"CVSS severity","points":5.18}]},"affectedVersions":[{"vendor":"n/a","product":"hibernate-core","versions":["Hibernate ORM versions before 5.4.24.Final"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T13:32:13.458483Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.hibernate:hibernate-core","vulnerableRanges":[">=5.4.0.Final, <5.4.24.Final","<5.3.20.Final"],"patched":["5.4.24.Final","5.3.20.Final"],"from":["GHSA-j8jw-g6fq-mp7h"],"provenance":"source"}],"summary":{"text":"A SQL injection flaw exists in the JPA Criteria API implementation of hibernate-core, in versions prior to and including 5.4.23.Final, where literals used in SQL comments of a query are not sanitized. An attacker with network access can exploit this by crafting a query whose literal contains injected SQL, with no authentication or user interaction required, though the attack is considered high in complexity and could expose unauthorized information or enable further attacks against data confidentiality and integrity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:42:02Z"},"euvd":{"id":"EUVD-2022-1070","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-0603","published":"2026-01-23","fixed":"5.3.38","kev":false},{"cve":"CVE-2020-25638","published":"2020-12-02","fixed":"5.4.24.Final","kev":false},{"cve":"CVE-2019-14900","published":"2020-07-06","fixed":"5.5.0.Beta1","kev":false,"link":{"from":"CVE-2019-14900","to":"CVE-2020-25638","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.hibernate:hibernate-core","fromFixed":"5.4.18","toFixed":"5.4.24.Final","daysApart":149},{"kind":"similar","provenance":"machine","score":0.74,"basis":"same package + description similarity"}]}}],"package":"Maven:org.hibernate:hibernate-core"}}