{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-39677","published":"2024-07-08T15:15:22.450000Z","last_modified":"2026-06-17T07:42:26.680000Z","status":"Modified","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-89"],"cpes":[{"criteria":"cpe:2.3:a:nhibernate:nhibernate-core:*:*:*:*:*:*:*:*","part":"a","vendor":"nhibernate","product":"nhibernate-core","version_end_excluding":"5.4.9"},{"criteria":"cpe:2.3:a:nhibernate:nhibernate-core:*:*:*:*:*:*:*:*","part":"a","vendor":"nhibernate","product":"nhibernate-core","version_start_including":"5.5.0","version_end_excluding":"5.5.2"}],"cpes_truncated":false,"vendors":["nhibernate"],"products":["nhibernate/nhibernate-core"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00954,"percentile":0.59977,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-fg4q-ccq8-3r5q","ecosystem":"NuGet","name":"NHibernate","purl":"pkg:nuget/NHibernate","ranges":[{"introduced":"0","fixed":"5.4.9"}],"versions":["2.1.2.4000","3.0.0.2001","3.0.0.3001","3.0.0.4000","3.1.0.4000","3.2.0.1001","3.2.0.1002","3.2.0.1003","3.2.0.2001","3.2.0.2002","3.2.0.3001","3.2.0.4000","3.3.0-CR1","3.3.0.4000","3.3.1.4000","3.3.2.4000","3.3.3-CR1","3.3.3.4000","3.3.3.4001","3.3.4.4000","3.3.5.4000","3.4.0-CR1","3.4.0.4000","3.4.1.4000","4.0.0-Alpha1","4.0.0-Alpha2","4.0.0-CR1","4.0.0.4000","4.0.1.4000","4.0.2.4000","4.0.3.4000","4.0.4.4000","4.1.0-CR1","4.1.0.4000","4.1.1.4000","4.1.2.4000","5.0.0","5.0.1","5.0.2","5.0.3","5.0.4","5.0.5","5.0.6","5.0.7","5.0.8","5.1.0","5.1.1","5.1.2","5.1.3","5.1.4","5.1.5","5.1.6","5.1.7","5.2.0","5.2.1","5.2.2","5.2.3","5.2.4","5.2.5","5.2.6","5.2.7","5.3.0","5.3.1","5.3.10","5.3.11","5.3.12","5.3.13","5.3.14","5.3.15","5.3.16","5.3.17","5.3.18","5.3.19","5.3.2","5.3.20","5.3.3","5.3.4","5.3.5","5.3.6","5.3.7","5.3.8","5.3.9","5.4.0","5.4.1","5.4.2","5.4.3","5.4.4","5.4.5","5.4.6","5.4.7","5.4.8"],"versions_truncated":false},{"advisory":"GHSA-fg4q-ccq8-3r5q","ecosystem":"NuGet","name":"NHibernate","purl":"pkg:nuget/NHibernate","ranges":[{"introduced":"5.5.0","fixed":"5.5.2"}],"versions":["5.5.0","5.5.1"],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2024-39677/","html_en":"/en/cve/CVE-2024-39677/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-39677","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-39677"},"untrusted":{"vendor_name":"Nhibernate","product_name":"Nhibernate-core","desc_en":"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":[{"untrusted_vendor":"nhibernate","untrusted_product":"nhibernate-core","versions":[]}],"references":[{"url":"https://github.com/nhibernate/nhibernate-core/commit/b4a69d1a5ff5744312478d70308329af496e4ba9","tags":["Patch"]},{"url":"https://github.com/nhibernate/nhibernate-core/issues/3516","tags":["Issue Tracking"]},{"url":"https://github.com/nhibernate/nhibernate-core/pull/3517","tags":["Issue Tracking"]},{"url":"https://github.com/nhibernate/nhibernate-core/pull/3547","tags":["Issue Tracking","Patch"]},{"url":"https://github.com/nhibernate/nhibernate-core/security/advisories/GHSA-fg4q-ccq8-3r5q","tags":["Vendor Advisory"]}]}}