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.
Tracking
Sign in to view the affected projects.
Advisories
| Source | ID | Title |
|---|---|---|
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 |
GHSA-fg4q-ccq8-3r5q | NHibernate SQL injection vulnerability in discriminator mappings, static fields referenced in HQL, and some utilities |
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
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 |
Status: PUBLISHED
Assigner: GitHub_M
Published:
Updated: 2024-08-02T04:26:15.958Z
Reserved: 2024-06-27T18:44:13.033Z
Link: CVE-2024-39677
Updated: 2024-07-08T19:58:43.573Z
Status : Modified
Published: 2024-07-08T15:15:22.450
Modified: 2024-11-21T09:28:12.080
Link: CVE-2024-39677
No data.
OpenCVE Enrichment
No data.
Weaknesses
EUVD
Github GHSA