CVE-2024-39677 — NHibernate SQL injection vulnerability in...
NHibernate SQL injection vulnerability in discriminator mappings, static fields referenced in HQL, and some utilities
Summary
Advisory Timeline
- First published July 8, 2024 (826 days ago).
- Last revised September 10, 2026 — 794 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package NHibernate --version 5.5.2
dotnet add package NHibernate --version 5.4.9
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: nuget (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| NHibernate | nuget | 5.5.0, 5.5.1 | 5.5.2 |
| NHibernate | nuget | 2.1.2.4000, 3.0.0.2001, 3.0.0.3001, 3.0.0.4000 (+87 more) | 5.4.9 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.9 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
References
- https://github.com/nhibernate/nhibernate-core/security/advisories/GHSA-fg4q-ccq8-3r5qWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-39677ADVISORY
- https://github.com/nhibernate/nhibernate-core/issues/3516WEB
- https://github.com/nhibernate/nhibernate-core/pull/3517WEB
- https://github.com/nhibernate/nhibernate-core/pull/3547WEB
- https://github.com/nhibernate/nhibernate-core/commit/b4a69d1a5ff5744312478d70308329af496e4ba9WEB
- https://github.com/nhibernate/nhibernate-corePACKAGE
Frequently Asked Questions
- What is CVE-2024-39677?
- NHibernate SQL injection vulnerability in discriminator mappings, static fields referenced in HQL, and some utilities This vulnerability has been assigned a severity rating of HIGH (CVSS score: 5.9/10).
- How do I check if my project is affected by CVE-2024-39677?
- CVE-2024-39677 affects NHibernate. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-39677 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2026-106112HIGH
ImageSharp: ICC LUT16 output channel count can write beyond Vector4
- CVE-2026-106115HIGH
ImageSharp: TIFF CCITT T6 encoder writes beyond an undersized output buffer
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies