CVE-2023-29194: Vitess.io/vitess Vitess Allows Users To Create Vulnerability

MODERATE
Advisory Identifier: GHSA-735r-hv67-g38f
CVSS 4.1
CWE-703 CWE-20
Published
Advisory Summary

CVE-2023-29194 is a MODERATE (CVSS 4.1) vitess allows users to create vulnerability (CWE-703: Improper Check or Handling of Exceptional Conditions) affecting Vitess.io/vitess libraries in the Go ecosystem. The issue involves vitess allows users to create keyspaces that can deny access to already existing keyspaces. Remediation is available by upgrading affected packages to version 0.16.1.

CVE-2023-29194 at a Glance

CVE Identifier CVE-2023-29194
GHSA Identifier GHSA-735r-hv67-g38f
Severity MODERATE
CVSS v3.1 Base Score 4.1
CWE Classification CWE-703: Improper Check or Handling of Exceptional Conditions
Affected Product Vitess.io/vitess
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.1

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

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

How to Fix CVE-2023-29194

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

vitess.io/vitess fixed: 0.16.1
Upgrade vitess.io/vitess to 0.16.1
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 vitess.io/vitess

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-29194, inspect your project dependencies for Vitess.io/vitess:

inspect dependencies for vitess.io/vitess

Analyze the terminal output to locate any version of Vitess.io/vitess in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.16.1), 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-703: Improper Check or Handling of Exceptional Conditions, where the product does not properly anticipate or handle exceptional conditions that rarely occur during normal operation of the product. In Vitess.io/vitess, 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 Users can either intentionally or inadvertently create a keyspace containing `/` characters such that from that point on, anyone who tries to view keyspaces from VTAdmin will receive an error. Trying to list all the keyspaces using `vtctldclient GetKeyspaces` will also return an error. Note that all other keyspaces can still be administered using the CLI (vtctldclient). ### Patches v16.0.1 (corresponding to 0.16.1 on pkg.go.dev) ### Workarounds Delete the offending keyspace using a CLI client (vtctldclient) ``` vtctldclient --server ... DeleteKeyspace a/b ``` Found during a security audit sponsored by the [CNCF](https://cncf.io) and facilitated by [OSTIF](https://ostif.org).

CVE-2023-29194 Affected Vitess.io/vitess Versions

1 component(s)
Fixed Versions:
0.16.1
Product / Package Ecosystem Affected Versions Fixed Version
vitess.io/vitess
Go
< 0.16.1
0.16.1

References

Frequently Asked Questions

What is CVE-2023-29194?
CVE-2023-29194 is a security vulnerability in Vitess.io/vitess involving vitess allows users to create keyspaces that can deny access to already existing keyspaces under CWE-703: Improper Check or Handling of Exceptional Conditions.
Which Vitess.io/vitess versions are affected?
Affected versions include releases prior to 0.16.1 across affected packages: vitess.io/vitess.
What version fixes CVE-2023-29194?
Upgrading to 0.16.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is vitess.io/vitess affected?
Yes, vitess.io/vitess is affected in releases prior to 0.16.1. Upgrade your dependency to 0.16.1 or later.
What is the CVSS score of CVE-2023-29194?
CVE-2023-29194 has a CVSS v3.1 base score of 4.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:L.
What CWE is associated with CVE-2023-29194?
CVE-2023-29194 is classified under CWE-703: Improper Check or Handling of Exceptional Conditions (The product does not properly anticipate or handle exceptional conditions that rarely occur during normal operation of the product.).
How can I check Go dependencies for CVE-2023-29194?
Run the dependency tree command: 'inspect dependencies for vitess.io/vitess'. 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-735r-hv67-g38f",
  "modified" : "2024-05-20T21:51:28Z",
  "published" : "2023-04-11T21:12:42Z",
  "aliases" : [ "CVE-2023-29194" ],
  "summary" : "vitess allows users to create keyspaces that can deny access to already existing keyspaces",
  "details" : "### Impact\nUsers can either intentionally or inadvertently create a keyspace containing `/` characters such that from that point on, anyone who tries to view keyspaces from VTAdmin will receive an error. Trying to list all the keyspaces using `vtctldclient GetKeyspaces` will also return an error.\nNote that all other keyspaces can still be administered using the CLI (vtctldclient).\n\n### Patches\nv16.0.1 (corresponding to 0.16.1 on pkg.go.dev)\n\n### Workarounds\nDelete the offending keyspace using a CLI client (vtctldclient) \n```\nvtctldclient --server ... DeleteKeyspace a/b\n```\n\nFound during a security audit sponsored by the [CNCF](https://cncf.io) and facilitated by [OSTIF](https://ostif.org).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "vitess.io/vitess"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.16.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vitessio/vitess/security/advisories/GHSA-735r-hv67-g38f"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-29194"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vitessio/vitess/commit/adf10196760ad0b3991a7aa7a8580a544e6ddf88"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vitessio/vitess"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vitessio/vitess/commits/v0.16.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-703" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-11T21:12:42Z",
    "nvd_published_at" : "2023-04-14T19:15:00Z"
  }
}