CVE-2026-0603 Org.hibernate/hibernate-core: hibernate: information disclosure and data deletion via second-order sql injection
A second-order SQL injection in Hibernate allows attackers to read sensitive data and delete database records when specific ID builders are used.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-0603?
CVE-2026-0603 is a high-severity SQL injection vulnerability in Red Hat RHEL-8 based Middleware Containers, published on 23 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Weakness: CWE-89
Which versions are affected by CVE-2026-0603?
2 open source packages ship an affected version, including org.hibernate:hibernate-core.
| Package | Affected | Fixed in |
|---|---|---|
org.hibernate:hibernate-core Maven | From 5.2.8 | 5.3.38 |
org.hibernate:hibernate-core Maven | From 5.2.8 | 5.3.38 |
How do I fix CVE-2026-0603?
Upgrade org.hibernate:hibernate-core to 5.3.38 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2026-0603 being exploited?
There is no known exploitation of CVE-2026-0603 in the wild and no public exploit code.
Public exploit code: 2 proofs of concept on GitHub.
Sources
Also known as CLSA-2026-1769731733, CLSA-2026-1778892379, CLSA-2026-1779151631, CLSA-2026-1779238047, CLSA-2026-1783299710, CLSA-2026-1783386136 and 3 more.