CVE-2026-0603: Hibernate vulnerable to SQL Injection
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.
Published Jan 23, 2026 · Updated Oct 6, 2026
Affected packages
org.hibernate:hibernate-core
- Ecosystem
- Maven
- Affected
- >= 5.2.8, < 5.3.38
- Fixed in
- 5.3.38
- Check
mvn dependency:tree -Dincludes=org.hibernate:hibernate-core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to kmoens, InitFlo.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-0603
- https://access.redhat.com/security/cve/CVE-2026-0603
- https://bugzilla.redhat.com/show_bug.cgi?id=2427147
- https://access.redhat.com/errata/RHSA-2026:4915
- https://access.redhat.com/errata/RHSA-2026:4916
- https://access.redhat.com/errata/RHSA-2026:4917
- https://access.redhat.com/errata/RHSA-2026:4924
- https://access.redhat.com/errata/RHSA-2026:6011
- https://access.redhat.com/errata/RHSA-2026:6012
- https://github.com/hibernate/hibernate-orm/commit/3f820fdf16ee4d1f556bc73b259625416d703048
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0603.json
- https://access.redhat.com/errata/RHSA-2026:76132
- https://access.redhat.com/errata/RHSA-2026:76134
- https://access.redhat.com/errata/RHSA-2026:76129
- https://access.redhat.com/errata/RHSA-2026:76130
- https://access.redhat.com/errata/RHSA-2026:76128
- https://github.com/advisories/GHSA-2p5w-cvg5-gc5c
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
