Public vulnerability disclosure

CVE-2026-133442

Hibernate ORM is vulnerable to SQL injection

publishedCWE-89

Hibernate ORM 7.0.0.Beta2 through 7.2.25.Final, 7.3.0.CR1 through 7.4.16.Final, and 8.0.0.Alpha1 through 8.0.0.CR1 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.

Technical severity8.8 highCVSS 3.1 · CNA: ibm
Published2026-12-03Source updated 2026-12-03
Collected2026-12-033 attributed sources

Fixes and workarounds

Fix

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

Source: CNA: ibm

Workaround

* 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.

Source: CNA: ibm

Fix

The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.

Source: CNA: ibm

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
Hibernate ORM
Hibernate
≥ 7.0.0.Beta2; ≤ 7.2.25.Final (affected, custom)
≥ 7.3.0.CR1; ≤ 7.4.16.Final (affected, custom)
≥ 8.0.0.Alpha1; ≤ 8.0.0.CR1 (affected, custom)
CNA: ibm

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 8.8
high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCNA: ibm
3.1 / 8.8
high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD: [email protected]

Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide