Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE-2024-39677
Summary
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 issue affects the package NHibernate versions prior to 5.4.9, 5.5.x prior to 5.5.2.
- LOW
- NETWORK
- HIGH
- UNCHANGED
- NONE
- NONE
- HIGH
- HIGH
CWE-89 - SQL Injection
Structured Query Language (SQL) injection attacks are one of the most common types of vulnerabilities. They exploit weaknesses in vulnerable applications to gain unauthorized access to backend databases. This often occurs when an attacker enters unexpected SQL syntax in an input field. The resulting SQL statement behaves in the background in an unintended manner, which allows the possibility of unauthorized data retrieval, data modification, execution of database administration operations, and execution of commands on the operating system.
References
Advisory Timeline
- Published