{"id":"EUVD-2024-2335","enisaUuid":"22523471-e100-3b91-ad7e-9c39380286ac","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.","datePublished":"Jul 8, 2024, 2:52:39 PM","dateUpdated":"Aug 2, 2024, 4:26:15 AM","baseScore":5.9,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","references":"https://github.com/nhibernate/nhibernate-core/security/advisories/GHSA-fg4q-ccq8-3r5q\nhttps://github.com/nhibernate/nhibernate-core/issues/3516\nhttps://github.com/nhibernate/nhibernate-core/pull/3517\nhttps://github.com/nhibernate/nhibernate-core/pull/3547\nhttps://github.com/nhibernate/nhibernate-core/commit/b4a69d1a5ff5744312478d70308329af496e4ba9\n","aliases":"CVE-2024-39677\nGHSA-fg4q-ccq8-3r5q\n","assigner":"GitHub_M","epss":0.58,"enisaIdProduct":[{"id":"28c3e3fd-a637-34b9-b0a6-e33b8d3782c0","product":{"name":"nhibernate-core","vendor":{"name":"nhibernate"}},"product_version":"5.5.0, \u003c 5.5.2"},{"id":"6043fd0a-a418-3569-8050-dcba7c0bd701","product":{"name":"nhibernate-core","vendor":{"name":"nhibernate"}},"product_version":"\u003c 5.4.9"}],"enisaIdVendor":[{"id":"d495e134-ba61-3cdf-b99d-2b3ff057a4d9","vendor":{"name":"nhibernate"}}],"enisaIdVulnerability":[{"id":"27766bcd-cf73-3098-bf64-f075d873e5f1","vulnerability":{"id":"GHSA-fg4q-ccq8-3r5q","description":"NHibernate SQL injection vulnerability in discriminator mappings, static fields referenced in HQL, and some utilities","datePublished":"Jul 8, 2024, 2:20:33 PM","dateUpdated":"Nov 18, 2024, 4:26:49 PM","baseScore":null,"references":"https://github.com/nhibernate/nhibernate-core/security/advisories/GHSA-fg4q-ccq8-3r5q\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-39677\nhttps://github.com/nhibernate/nhibernate-core/issues/3516\nhttps://github.com/nhibernate/nhibernate-core/pull/3517\nhttps://github.com/nhibernate/nhibernate-core/pull/3547\nhttps://github.com/nhibernate/nhibernate-core/commit/b4a69d1a5ff5744312478d70308329af496e4ba9\nhttps://github.com/nhibernate/nhibernate-core\n","enisa_id":"EUVD-2024-2335\n","aliases":"CVE-2024-39677\nGHSA-fg4q-ccq8-3r5q\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:38:00 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"bfc50f9c-9306-38bf-8f85-6cbd5b989092","vulnerability":{"id":"CVE-2024-39677","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.","datePublished":"Jul 8, 2024, 2:52:39 PM","dateUpdated":"Aug 2, 2024, 4:26:15 AM","status":"PUBLISHED","baseScore":5.9,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","references":"https://github.com/nhibernate/nhibernate-core/security/advisories/GHSA-fg4q-ccq8-3r5q\nhttps://github.com/nhibernate/nhibernate-core/issues/3516\nhttps://github.com/nhibernate/nhibernate-core/pull/3517\nhttps://github.com/nhibernate/nhibernate-core/pull/3547\nhttps://github.com/nhibernate/nhibernate-core/commit/b4a69d1a5ff5744312478d70308329af496e4ba9\n","enisa_id":"EUVD-2024-2335\n","assigner":"GitHub_M","epss":0.58,"dataProcessed":"Nov 15, 2026, 1:38:18 AM","vulnerabilityProduct":[{"id":"7dab6891-1915-351c-892f-981d1d2e6b5a","product":{"name":"nhibernate-core","vendor":{"name":"nhibernate"}},"product_version":"5.5.0, \u003c 5.5.2"},{"id":"c59e3b81-2b4a-31ea-9b50-fe98f4224f68","product":{"name":"nhibernate-core","vendor":{"name":"nhibernate"}},"product_version":"\u003c 5.4.9"}],"vulnerabilityVendor":[{"id":"8514dbbf-49a0-3ef2-8469-931e436c75b8","vendor":{"name":"nhibernate"}}]}}],"enisaIdAdvisory":[]}