Vulnerabilities in pkg:pypi/nemo_toolkit

PACKAGE
Advisory Summary

GHSA-rpx7-33j2-xx9x is a LOW (CVSS 2.0) arbitrary file deletion vulnerability (General Security Weakness) affecting Nemo toolkit libraries in the PyPI ecosystem. The issue involves arbitrary file deletion in nemo asr webapp. Remediation is available by upgrading affected packages to version 1.6.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/nemo_toolkit

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-rpx7-33j2-xx9x - LOW Arbitrary file deletion in NeMo ASR webapp

GHSA-rpx7-33j2-xx9x at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-rpx7-33j2-xx9x
Severity LOW
CVSS v3.1 Base Score 2.0
CWE Classification General Security Weakness
Affected Product Nemo toolkit
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 2.0

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

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

How to Fix GHSA-rpx7-33j2-xx9x

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

nemo_toolkit fixed: 1.6.0
pip install nemo_toolkit>=1.6.0
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 nemo_toolkit

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-rpx7-33j2-xx9x, inspect your installed packages using pip:

pip show nemo_toolkit

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Nemo toolkit, 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

### Description NVIDIA NeMo contains a vulnerability in ASR WebApp, where Relative Path Traversal (CWE-23) may lead to deletion of any directory through the "../" structure when admin privileges are available. CVSS Score = 2.0 https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N ### Impact When the optional tool ASR Webapp (https://github.com/NVIDIA/NeMo/tree/main/tools/asr_webapp) is used prior to commit https://github.com/NVIDIA/NeMo/commit/f7e4ed7e4f7f2fa43765a38c2fafa1b6d1ebd7c0, some interfaces do not verify user input. Malicious attackers can construct malicious requests to delete any directory through the "../" structure. The vulnerability affects only cases where this particular web app is started by a user with superuser permissions. The web application is *not* a part of the regular pip release or the corresponding container, and impacts only users that clone the repository in its entirety and execute the web app (while also possessing superuser permissions). ## Patches This vulnerability has been patched via https://github.com/NVIDIA/NeMo/commit/f7e4ed7e4f7f2fa43765a38c2fafa1b6d1ebd7c0, which is effectively any clone of the repository post r1.5.1 branch. Since the web app is not distributed via pip release or container, users who clone the main branch post this commit will possess the patch. ### Workarounds The changes in commit https://github.com/NVIDIA/NeMo/commit/f7e4ed7e4f7f2fa43765a38c2fafa1b6d1ebd7c0 can be applied to any version of the web app without any adverse effect. ### Additional Information Exploit Found on: 2021.12.16 Exploit Found by: @haby0

GHSA-rpx7-33j2-xx9x Affected Nemo toolkit Versions

1 component(s)
Fixed Versions:
1.6.0
Product / Package Ecosystem Affected Versions Fixed Version
nemo_toolkit
PyPI
< 1.6.0
1.6.0

References

Frequently Asked Questions

What is GHSA-rpx7-33j2-xx9x?
GHSA-rpx7-33j2-xx9x is a security vulnerability in Nemo toolkit involving Arbitrary file deletion in NeMo ASR webapp under General Security Weakness.
Which Nemo toolkit versions are affected?
Affected versions include releases prior to 1.6.0 across affected packages: nemo_toolkit.
What version fixes GHSA-rpx7-33j2-xx9x?
Upgrading to 1.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nemo_toolkit affected?
Yes, nemo_toolkit is affected in releases prior to 1.6.0. Upgrade your dependency to 1.6.0 or later.
What is the CVSS score of GHSA-rpx7-33j2-xx9x?
GHSA-rpx7-33j2-xx9x has a CVSS v3.1 base score of 2.0 (LOW) with vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N.
What CWE is associated with GHSA-rpx7-33j2-xx9x?
GHSA-rpx7-33j2-xx9x is classified under General Security Weakness.
How can I check PyPI dependencies for GHSA-rpx7-33j2-xx9x?
Run the dependency tree command: 'pip show nemo_toolkit'. 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-rpx7-33j2-xx9x",
  "modified" : "2022-01-07T22:34:36Z",
  "published" : "2022-02-15T01:57:18Z",
  "aliases" : [ ],
  "summary" : "Arbitrary file deletion in NeMo ASR webapp",
  "details" : "### Description\n\nNVIDIA NeMo contains a vulnerability in ASR WebApp, where Relative Path Traversal (CWE-23) may lead to deletion of any directory through the \"../\" structure when admin privileges are available.\n\nCVSS Score = 2.0\nhttps://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N\n\n### Impact\nWhen the optional tool ASR Webapp (https://github.com/NVIDIA/NeMo/tree/main/tools/asr_webapp) is used prior to commit https://github.com/NVIDIA/NeMo/commit/f7e4ed7e4f7f2fa43765a38c2fafa1b6d1ebd7c0, some interfaces do not verify user input. Malicious attackers can construct malicious requests to delete any directory through the \"../\" structure.\n\nThe vulnerability affects only cases where this particular web app is started by a user with superuser permissions. The web application is *not* a part of the regular pip release or the corresponding container, and impacts only users that clone the repository in its entirety and execute the web app (while also possessing superuser permissions).\n\n## Patches\n\nThis vulnerability has been patched via https://github.com/NVIDIA/NeMo/commit/f7e4ed7e4f7f2fa43765a38c2fafa1b6d1ebd7c0, which is effectively any clone of the repository post r1.5.1 branch. Since the web app is not distributed via pip release or container, users who clone the main branch post this commit will possess the patch.\n\n### Workarounds\nThe changes in commit https://github.com/NVIDIA/NeMo/commit/f7e4ed7e4f7f2fa43765a38c2fafa1b6d1ebd7c0 can be applied to any version of the web app without any adverse effect.\n\n### Additional Information\nExploit Found on: 2021.12.16\nExploit Found by: @haby0\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nemo_toolkit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/NVIDIA/NeMo/security/advisories/GHSA-rpx7-33j2-xx9x"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/NVIDIA/NeMo/commit/f7e4ed7e4f7f2fa43765a38c2fafa1b6d1ebd7c0"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/NVIDIA/NeMo"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-01-07T22:34:36Z",
    "nvd_published_at" : null
  }
}