Is NHibernate 5.4 vulnerable?

NuGet · 11 releases from 5.4.0 to 5.4.10 · latest NHibernate is 5.7.1 · checked 18 Nov 2026

No known advisories in the last release

NHibernate 5.4.10, the last 5.4 release, has no known advisories. 1 advisory affects earlier 5.4.x releases, so update to 5.4.10.

Update within 5.4:dotnet add package NHibernate --version 5.4.10

Is your project on an affected NHibernate?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several .NET apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Fixed within 5.4.x, affecting earlier releases

  • HighCVE-2024-39677GHSA-fg4q-ccq8-3r5q8 Jul 2024

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

    Affected
    <5.4.9 · >=5.5.0 <5.5.2
    Fixed in
    5.4.9, 5.5.2

Every NHibernate 5.4.x release

Affected: 5.4.0 to 5.4.8. 5.4.9 and later are not affected. Latest NHibernate: 5.7.1.

VersionKnown advisories
NHibernate 5.4.10None
NHibernate 5.4.9None
NHibernate 5.4.8CVE-2024-39677
NHibernate 5.4.7CVE-2024-39677
NHibernate 5.4.6CVE-2024-39677
NHibernate 5.4.5CVE-2024-39677
NHibernate 5.4.4CVE-2024-39677
NHibernate 5.4.3CVE-2024-39677
NHibernate 5.4.2CVE-2024-39677
NHibernate 5.4.1CVE-2024-39677
NHibernate 5.4.0CVE-2024-39677

Which of your client projects are still on NHibernate 5.4?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact NHibernate version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other NHibernate versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the NuGet registry. Refreshed daily.