Read the docs
TI-2024-26601 Aliases CVE-2024-39677GHSA-fg4q-ccq8-3r5q

NHibernate SQL injection vulnerability in discriminator mappings, static fields referenced in HQL, and some utilities

Priority MEDIUM 43CWE-89Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
SQL injection
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-89.

Summary

NHibernate is an object-relational mapper for the .NET framework. A SQL injection vulnerability exists in some types implementing ILiteralType.ObjectToSQLString. Callers of these methods are exposed to the vulnerability, which includes mappings using inheritance with discriminator values; HQL queries referencing a static field of the application; users of the SqlInsertBuilder and SqlUpdateBuilder utilities, calling their AddColumn overload taking a literal value; and any direct use of the ObjectToSQLString methods for building SQL queries on the user side. This vulnerability is fixed in 5.4.9 and 5.5.2.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00578 47th percentileScored 2026-11-07
Fix Fixed nhibernate-core (nhibernate): 5.4.9, 5.5.2NHibernate (NuGet): 5.4.9, 5.5.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
nhibernatenhibernate-corebefore 5.4.9; 5.5.0 to before 5.5.25.4.9, 5.5.2Patch availableCNA
—NHibernate (NuGet)before 5.4.95.4.9Patch availableGHSA-fg4q-ccq8-3r5q
—NHibernate (NuGet)5.5.0 to before 5.5.25.5.2Patch availableGHSA-fg4q-ccq8-3r5q
  • nhibernate-core Vendornhibernate Affected before 5.4.9; 5.5.0 to before 5.5.2 Fixed in 5.4.9, 5.5.2 Patch available CNA
  • NHibernate (NuGet) Vendor— Affected before 5.4.9 Fixed in 5.4.9 Patch available GHSA-fg4q-ccq8-3r5q
  • NHibernate (NuGet) Vendor— Affected 5.5.0 to before 5.5.2 Fixed in 5.5.2 Patch available GHSA-fg4q-ccq8-3r5q

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:nhibernate:nhibernate-core:*:*:*:*:*:*:*:*before 5.4.9; 5.5.0 to before 5.5.2Vulnerablenhibernate
  • cpe:2.3:a:nhibernate:nhibernate-core:*:*:*:*:*:*:*:* Versions before 5.4.9; 5.5.0 to before 5.5.2 Vulnerable ·nhibernate

Remediation

  • Fix · CNA nhibernate-core (nhibernate) Fixed in 5.4.9, 5.5.2
  • Fix · GHSA-fg4q-ccq8-3r5q NHibernate (NuGet) Fixed in 5.4.9 Advisory →
  • Fix · GHSA-fg4q-ccq8-3r5q NHibernate (NuGet) Fixed in 5.5.2 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-39677
  2. 2026-10-03 Alias added: GHSA-fg4q-ccq8-3r5q

References

Sources