Lucene search

K
vulnrichmentGitHub_MVULNRICHMENT:CVE-2024-39677
HistoryJul 08, 2024 - 2:52 p.m.

CVE-2024-39677 NHibernate SQL injection vulnerability in discriminator mappings, static fields referenced in HQL, and some utilities

2024-07-0814:52:39
CWE-89
GitHub_M
github.com
6
nhibernate
sql injection
discriminator mappings
static fields
hql
iliteraltype
sqlinsertbuilder
sqlupdatebuilder

CVSS3

5.9

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

AI Score

7.7

Confidence

Low

EPSS

0.001

Percentile

30.4%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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.

CNA Affected

[
  {
    "vendor": "nhibernate",
    "product": "nhibernate-core",
    "versions": [
      {
        "status": "affected",
        "version": "< 5.4.9"
      },
      {
        "status": "affected",
        "version": ">= 5.5.0, < 5.5.2"
      }
    ]
  }
]

CVSS3

5.9

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

AI Score

7.7

Confidence

Low

EPSS

0.001

Percentile

30.4%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

Related for VULNRICHMENT:CVE-2024-39677