CVE-2023-38976: Github.com/weaviate/weaviate Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-8697-479h-5mfp
CVSS 7.5
CWE-704
Published
Advisory Summary

CVE-2023-38976 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-704: Incorrect Type Conversion or Cast) affecting Github.com/weaviate/weaviate libraries in the Go ecosystem. The issue involves weaviate denial of service vulnerability. Remediation is available by upgrading affected packages to version 1.20.6, 1.19.13, 1.18.6.

CVE-2023-38976 at a Glance

CVE Identifier CVE-2023-38976
GHSA Identifier GHSA-8697-479h-5mfp
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-704: Incorrect Type Conversion or Cast
Affected Product Github.com/weaviate/weaviate
Package Ecosystem Go
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:N/I:N/A:H).

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 None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2023-38976

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

github.com/weaviate/weaviate fixed: 1.20.6
Upgrade github.com/weaviate/weaviate to 1.20.6
github.com/weaviate/weaviate fixed: 1.19.13
Upgrade github.com/weaviate/weaviate to 1.19.13
github.com/weaviate/weaviate fixed: 1.18.6
Upgrade github.com/weaviate/weaviate to 1.18.6
Verify Direct and Transitive Dependencies

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

inspect dependencies for github.com/weaviate/weaviate

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-38976, inspect your project dependencies for Github.com/weaviate/weaviate:

inspect dependencies for github.com/weaviate/weaviate

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

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-704: Incorrect Type Conversion or Cast, where the product does not correctly convert an object, resource, or structure from one type to a different type. In Github.com/weaviate/weaviate, 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

### Impact This vulnerability is a type conversion issue that affects users of Weaviate Server versions 1.20.0 and earlier. Who is impacted: Users of Weaviate Server versions 1.20.0 and earlier are impacted by this vulnerability. ### Patches A patch has been developed for this vulnerability. Patch releases 1.20.6, 1.19.13, and 1.18.6 are fixing this vulnerability in each respective minor version release. Users are strongly recommended to upgrade to one of these patched versions to address the vulnerability. Keeping software up-to-date is crucial to avoid security vulnerabilities. ### Workarounds There are no known workarounds to fix or remediate this vulnerability without upgrading. Users must upgrade to a patched version to mitigate the risk. ### References * https://github.com/weaviate/weaviate/releases/tag/v1.18.6 * https://github.com/weaviate/weaviate/releases/tag/v1.19.13 * https://github.com/weaviate/weaviate/releases/tag/v1.20.6

CVE-2023-38976 Affected Github.com/weaviate/weaviate Versions

3 component(s)
Fixed Versions:
1.20.61.19.131.18.6
Product / Package Ecosystem Affected Versions Fixed Version
github.com/weaviate/weaviate
Go
≥ 1.20.0
< 1.20.6
1.20.6
github.com/weaviate/weaviate
Go
≥ 1.19.0
< 1.19.13
1.19.13
github.com/weaviate/weaviate
Go
< 1.18.6
1.18.6

References

Frequently Asked Questions

What is CVE-2023-38976?
CVE-2023-38976 is a security vulnerability in Github.com/weaviate/weaviate involving Weaviate denial of service vulnerability under CWE-704: Incorrect Type Conversion or Cast.
Which Github.com/weaviate/weaviate versions are affected?
Affected versions include releases prior to 1.20.6, 1.19.13, 1.18.6 across affected packages: github.com/weaviate/weaviate.
What version fixes CVE-2023-38976?
Upgrading to 1.20.6, 1.19.13, 1.18.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/weaviate/weaviate affected?
Yes, github.com/weaviate/weaviate is affected in releases prior to 1.20.6, 1.19.13, 1.18.6. Upgrade your dependency to 1.20.6, 1.19.13, 1.18.6 or later.
What is the CVSS score of CVE-2023-38976?
CVE-2023-38976 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:N/I:N/A:H.
What CWE is associated with CVE-2023-38976?
CVE-2023-38976 is classified under CWE-704: Incorrect Type Conversion or Cast (The product does not correctly convert an object, resource, or structure from one type to a different type.).
How can I check Go dependencies for CVE-2023-38976?
Run the dependency tree command: 'inspect dependencies for github.com/weaviate/weaviate'. 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-8697-479h-5mfp",
  "modified" : "2023-08-24T21:49:43Z",
  "published" : "2023-08-22T18:03:13Z",
  "aliases" : [ "CVE-2023-38976" ],
  "summary" : "Weaviate denial of service vulnerability",
  "details" : "### Impact\nThis vulnerability is a type conversion issue that affects users of Weaviate Server versions 1.20.0 and earlier.\nWho is impacted: Users of Weaviate Server versions 1.20.0 and earlier are impacted by this vulnerability.\n\n### Patches\nA patch has been developed for this vulnerability.\nPatch releases 1.20.6, 1.19.13, and 1.18.6 are fixing this vulnerability in each respective minor version release.\nUsers are strongly recommended to upgrade to one of these patched versions to address the vulnerability.\nKeeping software up-to-date is crucial to avoid security vulnerabilities.\n\n### Workarounds\nThere are no known workarounds to fix or remediate this vulnerability without upgrading.\nUsers must upgrade to a patched version to mitigate the risk.\n\n### References \n* https://github.com/weaviate/weaviate/releases/tag/v1.18.6\n* https://github.com/weaviate/weaviate/releases/tag/v1.19.13\n* https://github.com/weaviate/weaviate/releases/tag/v1.20.6\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/weaviate/weaviate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.20.0"
      }, {
        "fixed" : "1.20.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/weaviate/weaviate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.19.0"
      }, {
        "fixed" : "1.19.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/weaviate/weaviate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.18.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/weaviate/weaviate/security/advisories/GHSA-8697-479h-5mfp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-38976"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/weaviate/weaviate/issues/3258"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/weaviate/weaviate/pull/3431"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/weaviate/weaviate/commit/2a7b208d9aca07e28969e3be82689c184ccf9118"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/weaviate/weaviate"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/weaviate/weaviate/releases/tag/v1.18.6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/weaviate/weaviate/releases/tag/v1.19.13"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/weaviate/weaviate/releases/tag/v1.20.6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-704" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-22T18:03:13Z",
    "nvd_published_at" : null
  }
}