Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
NHibernate versions before 5.4.9 and from 5.5.0 before 5.5.2 are vulnerable to SQL injection through some types implementing ILiteralType.ObjectToSQLString, affecting discriminator mappings, HQL queries referencing static fields, and the SqlInsertBuilder and SqlUpdateBuilder utilities. The source does not say what privileges an attacker needs, but the injection can alter SQL run against the database. Upgrade to NHibernate 5.4.9 or 5.5.2. Where upgrading is not possible, avoid the affected features and keep discriminator values free of quotes.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 5.9 | Medium | 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0058, the 48th percentile, on 11 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 15:21 UTC First seen by agentprime
- 31 Oct 2026, 15:21 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-fg4q-ccq8-3r5q
- OSV: GHSA-fg4q-ccq8-3r5q
- github.com/nhibernate/nhibernate-core/security/advisories/GHSA-fg4q-ccq8-3r5q
- nvd.nist.gov/vuln/detail/CVE-2024-39677
- github.com/nhibernate/nhibernate-core/issues/3516
- github.com/nhibernate/nhibernate-core/pull/3517
- github.com/nhibernate/nhibernate-core/pull/3547
- github.com/nhibernate/nhibernate-core/commit/b4a69d1a5ff5744312478d70308329af496e4ba9
- github.com/nhibernate/nhibernate-core