GHSA-rpx7-33j2-xx9x: Nemo toolkit Arbitrary File Deletion Vulnerability
LOWGHSA-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.
GHSA-rpx7-33j2-xx9x at a Glance
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).
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.
pip install nemo_toolkit>=1.6.0
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
GHSA-rpx7-33j2-xx9x Affected Nemo toolkit Versions
1 component(s)| 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?
Which Nemo toolkit versions are affected?
What version fixes GHSA-rpx7-33j2-xx9x?
Is nemo_toolkit affected?
What is the CVSS score of GHSA-rpx7-33j2-xx9x?
What CWE is associated with GHSA-rpx7-33j2-xx9x?
How can I check PyPI dependencies for GHSA-rpx7-33j2-xx9x?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}