Vulnerability

CVE-2024-39677

criticalCVSS 3.1 9.8Published 8 Jul 2024

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

NHibernate is an object-relational mapper for the .NET framework. A SQL injection vulnerability exists in some types implementing ILiteralType.ObjectToSQLString. Callers of these methods are exposed to the vulnerability, which includes mappings using inheritance with discriminator values; HQL queries referencing a static field of the application; users of the SqlInsertBuilder and SqlUpdateBuilder utilities, calling their AddColumn overload taking a literal value; and any direct use of the ObjectToSQLString methods for building SQL queries on the user side. This vulnerability is fixed in 5.4.9 and 5.5.2.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Nhibernate nhibernate-core

Weakness type

References

  • github.com /nhibernate/nhibernate-core/commit/b4a69d1a5ff5744312478d70…
  • 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/security/advisories/GHSA-fg4q-c…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning