Vulnerabilities in pkg:pypi/vantage6-node

PACKAGE
Advisory Identifier: GHSA-vc3v-ppc7-v486
Advisory Summary

CVE-2023-47631 is a HIGH (CVSS 7.2) vantage6-server node accepts non-whitelisted algorithms vulnerability (CWE-358: Improperly Implemented Security Check for Standard) affecting Vantage6 server libraries in the PyPI ecosystem. The issue involves vantage6-server node accepts non-whitelisted algorithms from malicious server. Remediation is available by upgrading affected packages to version 4.1.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/vantage6-node

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/vantage6-node. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-vc3v-ppc7-v486 CVE-2023-47631 HIGH vantage6-server node accepts non-whitelisted algorithms from malicious server

CVE-2023-47631 at a Glance

CVE Identifier CVE-2023-47631
GHSA Identifier GHSA-vc3v-ppc7-v486
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-358: Improperly Implemented Security Check for Standard
Affected Product Vantage6 server
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.2

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:U/C:H/I:H/A:H).

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

How to Fix CVE-2023-47631

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

vantage6-server fixed: 4.1.2
pip install vantage6-server>=4.1.2
vantage6-node fixed: 4.1.2
pip install vantage6-node>=4.1.2
Verify Direct and Transitive Dependencies

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

pip show vantage6-server

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2023-47631, inspect your installed packages using pip:

pip show vantage6-server

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

Note: The pip show vantage6-server command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-358: Improperly Implemented Security Check for Standard, where the product does not implement or incorrectly implements one or more security-relevant checks as specified by the design of a standardized algorithm, protocol, or technique. In Vantage6 server, 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 A node does not check if an image is allowed to run if a `parent_id` is set. A malicious party that breaches the server may modify it to set a fake `parent_id` and send a task of a non-whitelisted algorithm. The node will then execute it because the `parent_id` that is set prevents checks from being run. Relevant node code [here](https://github.com/vantage6/vantage6/blob/version/4.1.1/vantage6-node/vantage6/node/docker/docker_manager.py#L265-L268) This impacts all servers that are breached by an expert user ### Patches Fixed in v4.1.2 ### Workarounds None

CVE-2023-47631 Affected Vantage6 server Versions

2 component(s)
Fixed Versions:
4.1.2
Product / Package Ecosystem Affected Versions Fixed Version
vantage6-server
PyPI
< 4.1.2
4.1.2
vantage6-node
PyPI
< 4.1.2
4.1.2

References

Frequently Asked Questions

What is CVE-2023-47631?
CVE-2023-47631 is a security vulnerability in Vantage6 server involving vantage6-server node accepts non-whitelisted algorithms from malicious server under CWE-358: Improperly Implemented Security Check for Standard.
Which Vantage6 server versions are affected?
Affected versions include releases prior to 4.1.2 across affected packages: vantage6-server, vantage6-node.
What version fixes CVE-2023-47631?
Upgrading to 4.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is vantage6-server affected?
Yes, vantage6-server is affected in releases prior to 4.1.2. Upgrade your dependency to 4.1.2 or later.
Is vantage6-node affected?
Yes, vantage6-node is affected in releases prior to 4.1.2. Upgrade your dependency to 4.1.2 or later.
What is the CVSS score of CVE-2023-47631?
CVE-2023-47631 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-47631?
CVE-2023-47631 is classified under CWE-358: Improperly Implemented Security Check for Standard (The product does not implement or incorrectly implements one or more security-relevant checks as specified by the design of a standardized algorithm, protocol, or technique.).
How can I check PyPI dependencies for CVE-2023-47631?
Run the dependency tree command: 'pip show vantage6-server'. 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-vc3v-ppc7-v486",
  "modified" : "2024-11-22T20:43:06Z",
  "published" : "2023-11-14T22:21:57Z",
  "aliases" : [ "CVE-2023-47631" ],
  "summary" : "vantage6-server node accepts non-whitelisted algorithms from malicious server",
  "details" : "### Impact\nA node does not check if an image is allowed to run if a `parent_id` is set. A malicious party that breaches the server may modify it to set a fake `parent_id` and send a task of a non-whitelisted algorithm. The node will then execute it because the `parent_id` that is set prevents checks from being run. Relevant node code [here](https://github.com/vantage6/vantage6/blob/version/4.1.1/vantage6-node/vantage6/node/docker/docker_manager.py#L265-L268)\n\nThis impacts all servers that are breached by an expert user\n\n### Patches\nFixed in v4.1.2\n\n### Workarounds\nNone\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "vantage6-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.1.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "vantage6-node"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vantage6/vantage6/security/advisories/GHSA-vc3v-ppc7-v486"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-47631"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vantage6/vantage6/commit/bf83521eb12fa80aa5fc92ef1692010a9a7f8243"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/vantage6-node/PYSEC-2023-303.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/vantage6-server/PYSEC-2023-304.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vantage6/vantage6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vantage6/vantage6/blob/version/4.1.1/vantage6-node/vantage6/node/docker/docker_manager.py#L265-L268"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345", "CWE-358" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-14T22:21:57Z",
    "nvd_published_at" : "2023-11-14T21:15:13Z"
  }
}