Advisory record · GHSA-fg4q-ccq8-3r5q

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

CVSS 5.9 MediumEPSS 0.0058 · 48th percentile

Published by the GitHub Advisory Database at 8 Jul 2024, 14:20 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
NHibernateNuGet<5.4.9 || >=5.5.0, <5.5.25.4.9, 5.5.2
Identifiers
GHSA-fg4q-ccq8-3r5q · CVE-2024-39677
Weakness (CWE)
CWE-89
Published
8 Jul 2024
Updated
10 Sept 2026

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.

Written 9 Nov 2026.

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

ScoreRatingCVSSVectorSource
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

  1. 31 Oct 2026, 15:21 UTC First seen by agentprime
  2. 31 Oct 2026, 15:21 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.