Bug 2590954 (CVE-2026-145145)

Summary: CVE-2026-145145 hibernate-hql-parser: hibernate-hql-parser: Uncontrolled recursion in HQLParser leads to StackOverflowError
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in the HQLParser component of the Hibernate HQL Parser library, which is used to translate Hibernate Query Language (HQL) into executable queries. The parser fails to limit the depth of nested parenthesized expressions, causing it to consume excessive stack memory. An attacker could provide a specially crafted query to trigger a crash of the processing thread, leading to a denial-of-service.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-12-04 15:23:39 UTC
A vulnerability was found in the ANTLR3-based HQLParser within the hibernate-hql-parser library. The parser walks the predicate and expression precedence chain recursively without implementing a depth counter or limit. By submitting a specially crafted HQL query string containing deeply nested parenthesized predicates, a remote attacker can trigger uncontrolled recursion. This results in a java.lang.StackOverflowError, causing the parsing process to fail and potentially exhausting resources for the affected thread.