CVE-2023-5573: @vrite/sdk Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-5ghm-h2wq-g3mh
CVSS 4.7
CWE-770
Published
Advisory Summary

CVE-2023-5573 is a MODERATE (CVSS 4.7) remote code execution vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting @vrite/sdk libraries in the npm ecosystem. The issue involves allocation of resources without limits or throttling in vriteio/vrite. Remediation is available by upgrading affected packages to version 0.3.0.

CVE-2023-5573 at a Glance

CVE Identifier CVE-2023-5573
GHSA Identifier GHSA-5ghm-h2wq-g3mh
Severity MODERATE
CVSS v3.1 Base Score 4.7
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product @vrite/sdk
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.7

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

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

How to Fix CVE-2023-5573

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

@vrite/sdk fixed: 0.3.0
npm install @vrite/sdk@0.3.0
Verify Direct and Transitive Dependencies

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

npm ls @vrite/sdk

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2023-5573, inspect your project dependencies using npm:

npm ls @vrite/sdk

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

Note: The npm ls @vrite/sdk command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In @vrite/sdk, 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

Allocation of Resources Without Limits or Throttling in GitHub repository vriteio/vrite prior to 0.3.0.

CVE-2023-5573 Affected @vrite/sdk Versions

1 component(s)
Fixed Versions:
0.3.0
Product / Package Ecosystem Affected Versions Fixed Version
@vrite/sdk
npm
< 0.3.0
0.3.0

References

Frequently Asked Questions

What is CVE-2023-5573?
CVE-2023-5573 is a security vulnerability in @vrite/sdk involving Allocation of Resources Without Limits or Throttling in vriteio/vrite under CWE-770: Allocation of Resources Without Limits or Throttling.
Which @vrite/sdk versions are affected?
Affected versions include releases prior to 0.3.0 across affected packages: @vrite/sdk.
What version fixes CVE-2023-5573?
Upgrading to 0.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @vrite/sdk affected?
Yes, @vrite/sdk is affected in releases prior to 0.3.0. Upgrade your dependency to 0.3.0 or later.
What is the CVSS score of CVE-2023-5573?
CVE-2023-5573 has a CVSS v3.1 base score of 4.7 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2023-5573?
CVE-2023-5573 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check npm dependencies for CVE-2023-5573?
Run the dependency tree command: 'npm ls @vrite/sdk'. 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-5ghm-h2wq-g3mh",
  "modified" : "2023-10-13T19:24:51Z",
  "published" : "2023-10-13T12:30:16Z",
  "aliases" : [ "CVE-2023-5573" ],
  "summary" : "Allocation of Resources Without Limits or Throttling in vriteio/vrite",
  "details" : "Allocation of Resources Without Limits or Throttling in GitHub repository vriteio/vrite prior to 0.3.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@vrite/sdk"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-5573"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vriteio/vrite/commit/1877683b932bb33fb20d688e476284b70bb9fe23"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vriteio/vrite"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/46a2bb2c-712a-4008-a147-b862e3af7d72"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-13T19:24:51Z",
    "nvd_published_at" : "2023-10-13T10:15:10Z"
  }
}