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.
Published: 2024-07-08
Score: 5.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

No analysis available yet.

Remediation

No remediation available yet.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2024-2335 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.
Github GHSA Github GHSA GHSA-fg4q-ccq8-3r5q NHibernate SQL injection vulnerability in discriminator mappings, static fields referenced in HQL, and some utilities
History

Thu, 29 Aug 2024 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Nhibernate
Nhibernate nhibernate-core
CPEs cpe:2.3:a:nhibernate:nhibernate-core:*:*:*:*:*:*:*:*
Vendors & Products Nhibernate
Nhibernate nhibernate-core

Subscriptions

Nhibernate Nhibernate-core
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2024-08-02T04:26:15.958Z

Reserved: 2024-06-27T18:44:13.033Z

Link: CVE-2024-39677

cve-icon Vulnrichment

Updated: 2024-07-08T19:58:43.573Z

cve-icon NVD

Status : Modified

Published: 2024-07-08T15:15:22.450

Modified: 2024-11-21T09:28:12.080

Link: CVE-2024-39677

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses