Is NHibernate 5.0 vulnerable?
NuGet · 8 releases from 5.0.0 to 5.0.8 · latest NHibernate is 5.7.1 · checked 18 Nov 2026
Yes: 1 known advisory
Yes. NHibernate 5.0.8, the last 5.0 release, is affected by 1 known security advisory (1 high), including CVE-2024-39677. Upgrade to 5.4.9 or later to fix all of them.
dotnet add package NHibernate --version 5.4.9Is your project on an affected NHibernate?
Look after several .NET apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Advisories affecting NHibernate 5.0.8
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.0.x release
Affected: 5.0.0 to 5.0.8. Latest NHibernate: 5.7.1.
| Version | Known advisories |
|---|---|
| NHibernate 5.0.8 | CVE-2024-39677 |
| NHibernate 5.0.7 | CVE-2024-39677 |
| NHibernate 5.0.6 | CVE-2024-39677 |
| NHibernate 5.0.5 | CVE-2024-39677 |
| NHibernate 5.0.4 | CVE-2024-39677 |
| NHibernate 5.0.3 | CVE-2024-39677 |
| NHibernate 5.0.1 | CVE-2024-39677 |
| NHibernate 5.0.0 | CVE-2024-39677 |
Which of your client projects are still on NHibernate 5.0?
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.