HIGH8.3
GHSA-2p5w-cvg5-gc5c
Hibernate vulnerable to SQL Injection
Details
A flaw was found in Hibernate. A remote attacker with low privileges could exploit a second-order SQL injection vulnerability by providing specially crafted, unsanitized non-alphanumeric characters in the ID column when the InlineIdsOrClauseBuilder is used. This could lead to sensitive information disclosure, such as reading system files, and allow for data manipulation or deletion within the application's database, resulting in an application level denial of service.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.hibernate:hibernate-core
Introduced in:
5.2.8No fixed version published yet for org.hibernate:hibernate-core (maven). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-0603[ADVISORY]
- https://access.redhat.com/errata/RHSA-2026:4915[WEB]
- https://access.redhat.com/errata/RHSA-2026:4916[WEB]
- https://access.redhat.com/errata/RHSA-2026:4917[WEB]
- https://access.redhat.com/errata/RHSA-2026:4924[WEB]
- https://access.redhat.com/errata/RHSA-2026:6011[WEB]
- https://access.redhat.com/errata/RHSA-2026:6012[WEB]
- https://access.redhat.com/security/cve/CVE-2026-0603[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2427147[WEB]
- https://github.com/hibernate/hibernate-orm[PACKAGE]