HIGH 8.3

CVE-2026-0603

Hibernate vulnerable to SQL Injection

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.hibernate » hibernate-core
>= 5.2.8, < 5.3.38
5.3.38

Blast radius

1affected artifacts
98affected versions
4,333dependent artifacts (est.)
346,659dependent versions

41% of the dependent artifacts (1,797) still pull an affected version in their latest release.

DepthDependent versions
Direct
39,363
2 hops
203,834
3 hops
71,694
4 hops
26,571
5 hops
4,113
6 hops
1,084

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.