Live threats

All CVEs / Nhibernate

CVE-2024-39677Nhibernate-core

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.0%
probability of exploitation in 30 days · percentile 60
Auth required
No
Published
Jul 8, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Nhibernate-core.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
NuGet NHibernate < 5.4.9 5.4.9 dotnet add package NHibernate --version 5.4.9
NuGet NHibernate ≥ 5.5.0 < 5.5.2 5.5.2 dotnet add package NHibernate --version 5.5.2

Per OSV / GitHub Advisories (GHSA-fg4q-ccq8-3r5q). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
nhibernatenhibernate-core< 5.4.9
nhibernatenhibernate-core≥ 5.5.0 < 5.5.2

Official sources

References

Links published by the sources. Open them with care.