CVE-2026-0603
8.3Hibernate · Hibernate Core
Hibernate is vulnerable to a second-order SQL injection in the InlineIdsOrClauseBuilder component, allowing low-privileged attackers to disclose sensitive data or trigger a denial of service.
Executive summary
A second-order SQL injection vulnerability in the Hibernate library poses a significant risk of data exfiltration and database corruption, warranting immediate attention.
Vulnerability
This is a second-order SQL injection flaw (CWE-89) triggered when the InlineIdsOrClauseBuilder processes unsanitized, non-alphanumeric characters in the ID column. The vulnerability requires low-level authentication to execute, allowing an attacker to manipulate database queries to read system files or delete application data.
Business impact
The ability to perform unauthorized database operations represents a severe threat to data integrity and confidentiality. With a CVSS score of 8.3, this high-severity flaw could lead to the exposure of sensitive corporate information, unauthorized modification of records, or application-level denial of service, potentially resulting in significant operational disruption and regulatory non-compliance.
Remediation
Immediate Action: Organizations using Red Hat JBoss Enterprise Application Platform should apply the specific security errata (RHSA-2026:4915, 4916, 4917, 4924, 6011, or 6012) immediately. For generic Hibernate implementations, verify if your specific version is impacted and consult vendor documentation for available patches or configuration workarounds.
Proactive Monitoring: Security teams should monitor database logs for abnormal SQL syntax errors or unexpected query patterns originating from the application layer. Review application access logs for attempts to inject non-alphanumeric characters into ID-related input fields.
Compensating Controls: Deploy or update Web Application Firewall (WAF) rules to inspect and sanitize input parameters, specifically looking for SQL injection signatures targeting ID fields. Implement strict input validation on all application endpoints that handle user-supplied identifiers.
Exploitation status
Public Exploit Available: Yes, a public proof-of-concept exists via a GitHub repository.
Analyst recommendation
Given the high CVSS score and the confirmed existence of public proof-of-concept material, this vulnerability should be prioritized for remediation. Administrators must confirm their dependency versions and apply the patches provided by their respective vendors or upgrade the Hibernate library to a secure version to prevent potential database compromise.
Sources
Originally found and disclosed by Red Hat would like to thank Christiaan Swiers (YouGina) and Tommy Williams (HeroDevs) for reporting this issue., per the CVE Program record.
- RHSA-2026:4915 Vendor advisory
- RHSA-2026:4916 Vendor advisory
- RHSA-2026:4917 Vendor advisory
- RHSA-2026:4924 Vendor advisory
- RHSA-2026:6011 Vendor advisory
- RHSA-2026:6012 Vendor advisory
- Vulnerability database entry
- RHBZ#2427147 Issue tracker