CVE-2023-51982: Crate Authentication Bypass Vulnerability

HIGH
Advisory Identifier: GHSA-7mgx-gvjw-m3w3
CVSS 7.5
CWE-287
Published
Advisory Summary

CVE-2023-51982 is a HIGH (CVSS 7.5) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Crate libraries in the Maven ecosystem. The issue involves cratedb authentication bypass vulnerability. Remediation is available by upgrading affected packages to version 5.2.11, 5.3.8, 5.4.7, 5.5.2.

CVE-2023-51982 at a Glance

CVE Identifier CVE-2023-51982
GHSA Identifier GHSA-7mgx-gvjw-m3w3
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-287: Improper Authentication
Affected Product Crate
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-51982

To remediate this vulnerability, upgrade all affected Crate dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

io.crate:crate fixed: 5.2.11
<dependency>
    <groupId>io.crate</groupId>
    <artifactId>crate</artifactId>
    <version>5.2.11</version>
</dependency>
io.crate:crate fixed: 5.3.8
<dependency>
    <groupId>io.crate</groupId>
    <artifactId>crate</artifactId>
    <version>5.3.8</version>
</dependency>
io.crate:crate fixed: 5.4.7
<dependency>
    <groupId>io.crate</groupId>
    <artifactId>crate</artifactId>
    <version>5.4.7</version>
</dependency>
io.crate:crate fixed: 5.5.2
<dependency>
    <groupId>io.crate</groupId>
    <artifactId>crate</artifactId>
    <version>5.5.2</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=io.crate

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-51982, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=io.crate

Analyze the terminal output to locate any version of Crate in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.2.11), your application is affected.

Note: The mvn dependency:tree -Dincludes=io.crate command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Crate, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

CrateDB 5.5.1 is contains an authentication bypass vulnerability in the Admin UI component. After configuring password authentication and_ Local_ In the case of an address, identity authentication can be bypassed by setting the X-Real IP request header to a specific value and accessing the Admin UI directly using the default user identity.

CVE-2023-51982 Affected Crate Versions

4 component(s)
Fixed Versions:
5.2.115.3.85.4.75.5.2
Product / Package Ecosystem Affected Versions Fixed Version
io.crate:crate
Maven
< 5.2.11
5.2.11
io.crate:crate
Maven
≥ 5.3.0
< 5.3.8
5.3.8
io.crate:crate
Maven
≥ 5.4.0
< 5.4.7
5.4.7
io.crate:crate
Maven
≥ 5.5.0
< 5.5.2
5.5.2

References

Frequently Asked Questions

What is CVE-2023-51982?
CVE-2023-51982 is a security vulnerability in Crate involving CrateDB authentication bypass vulnerability under CWE-287: Improper Authentication.
Which Crate versions are affected?
Affected versions include releases prior to 5.2.11, 5.3.8, 5.4.7, 5.5.2 across affected packages: io.crate:crate.
What version fixes CVE-2023-51982?
Upgrading to 5.2.11, 5.3.8, 5.4.7, 5.5.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is crate affected?
Yes, io.crate:crate is affected in releases prior to 5.2.11, 5.3.8, 5.4.7, 5.5.2. Upgrade your dependency to 5.2.11, 5.3.8, 5.4.7, 5.5.2 or later.
What is the CVSS score of CVE-2023-51982?
CVE-2023-51982 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-51982?
CVE-2023-51982 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Maven dependencies for CVE-2023-51982?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.crate'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7mgx-gvjw-m3w3",
  "modified" : "2024-11-20T18:42:39Z",
  "published" : "2024-01-30T03:30:30Z",
  "aliases" : [ "CVE-2023-51982" ],
  "summary" : "CrateDB authentication bypass vulnerability",
  "details" : "CrateDB 5.5.1 is contains an authentication bypass vulnerability in the Admin UI component. After configuring password authentication and_ Local_ In the case of an address, identity authentication can be bypassed by setting the X-Real IP request header to a specific value and accessing the Admin UI directly using the default user identity.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.crate:crate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.2.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.crate:crate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.3.0"
      }, {
        "fixed" : "5.3.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.crate:crate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.4.0"
      }, {
        "fixed" : "5.4.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.crate:crate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.5.0"
      }, {
        "fixed" : "5.5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-51982"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/crate/crate/issues/15231"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/crate/crate/pull/15234"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/crate/crate/commit/0c166ef083bec4d64dd55c1d8cb9b3dec350d241"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/crate/crate/commit/5be7b3864137c23305ece10df3f7c311ee50ae4d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/crate/crate/commit/b8b4cec49a1c7eb2b5af568400bd571d194dc03e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/crate/crate/commit/da59311ca920743ebc58ee64c29cfe5723487f56"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/crate/crate"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/crate/PYSEC-2024-27.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-30T18:43:26Z",
    "nvd_published_at" : "2024-01-30T01:15:59Z"
  }
}