IBM Support

Security Bulletin: Hibernate ORM is vulnerable to SQL injection (CVE-2026-133442)

Security Bulletin


Summary

Hibernate ORM is affected by an SQL injection vulnerability when using the `json_*` HQL function on MySQL or MariaDB.

Vulnerability Details

CVEID:   CVE-2026-133442
DESCRIPTION:   IBM Hibernate is vulnerable to SQL injection. A remote unauthenticated attacker could send specially crafted SQL statements, which could allow the attacker to view, add, modify, or delete information in the back-end database.
CWE:   CWE-89: Improper Neutralization of Special Elements used in an SQL Command
CVSS Source:   IBM
CVSS Base score:   8.6
CVSS Vector:   (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)

Affected Products and Versions

Affected Product(s)Version(s)
Hibernate ORM7.0.0.Beta2 - 7.2.25.Final
Hibernate ORM7.3.0.CR1 - 7.4.16.Final
Hibernate ORM8.0.0.Alpha1 - 8.0.0.CR1
 

 

Remediation/Fixes

It is strongly recommended to address the vulnerability by upgrading to the latest version.

Upgrade to 7.2.26.Final, 7.4.17.Final, or 8.0.0.CR2.

For more information see: https://github.com/hibernate/hibernate-orm/security/advisories/GHSA-v5mr-59hq-7mvm

Workarounds and Mitigations

  • Upgrade to a version addressing the vulnerability.
  • OR avoid passing untrusted values to path parameters of HQL JSON functions. Instead, use either hardcoded values or sanitized values (apply SQL escapes). Be careful about escaping as improper escaping could still leave the application vulnerable.
  • OR (on Hibernate ORM 7.x) disable HQL JSON functions completely by setting the configuration property `hibernate.query.hql.json_functions_enabled` to false, or leaving it unset (the default is false). Queries leveraging these functions will then simply error out.

Get Notified about Future Security Bulletins

References

Off

Acknowledgement

Change History

25 Nov 2026: Initial Publication

*The CVSS Environment Score is customer environment specific and will ultimately impact the Overall CVSS Score. Customers can evaluate the impact of this vulnerability in their environments by accessing the links in the Reference section of this Security Bulletin.

Disclaimer

According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES ""AS IS"" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY. In addition to other efforts to address potential vulnerabilities, IBM periodically updates the record of components contained in our product offerings. As part of that effort, if IBM identifies previously unidentified packages in a product/service inventory, we address relevant vulnerabilities regardless of CVE date. Inclusion of an older CVEID does not demonstrate that the referenced product has been used by IBM since that date, nor that IBM was aware of a vulnerability as of that date. We are making clients aware of relevant vulnerabilities as we become aware of them. "Affected Products and Versions" referenced in IBM Security Bulletins are intended to be only products and versions that are supported by IBM and have not passed their end-of-support or warranty date. Thus, failure to reference unsupported or extended-support products and versions in this Security Bulletin does not constitute a determination by IBM that they are unaffected by the vulnerability. Reference to one or more unsupported versions in this Security Bulletin shall not create an obligation for IBM to provide fixes for any unsupported or extended-support products or versions.

Document Location

Worldwide

[{"Business Unit":{"code":"","label":""},"Product":{"code":"SSSM1S","label":"Hibernate ORM"},"Component":"","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.x, 8.x","Edition":""}]

Document Information

Modified date:
25 November 2026

Initial Publish date:
25 November 2026

UID

ibm17297919