CVE-2021-21371: Tenable jira cloud Execution Of Untrusted Code Through Vulnerability
MODERATECVE-2021-21371 is a MODERATE (CVSS 5.0) execution of untrusted code through vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Tenable jira cloud libraries in the PyPI ecosystem. The issue involves execution of untrusted code through config file. Remediation is available by upgrading affected packages to version 1.1.21.
CVE-2021-21371 at a Glance
Security Impact
CVSS: 5.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2021-21371
To remediate this vulnerability, upgrade all affected Tenable jira cloud 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 tenable-jira-cloud>=1.1.21
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show tenable-jira-cloud
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2021-21371, inspect your installed packages using pip:
pip show tenable-jira-cloud
Analyze the terminal output to locate any version of Tenable jira cloud in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.21), your application is affected.
Note: The pip show tenable-jira-cloud command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Tenable jira cloud, 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
CVE-2021-21371 Affected Tenable jira cloud Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tenable-jira-cloud
|
PyPI |
< 1.1.21
|
1.1.21
|
References
Frequently Asked Questions
What is CVE-2021-21371?
Which Tenable jira cloud versions are affected?
What version fixes CVE-2021-21371?
Is tenable-jira-cloud affected?
What is the CVSS score of CVE-2021-21371?
What CWE is associated with CVE-2021-21371?
How can I check PyPI dependencies for CVE-2021-21371?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8278-88vv-x98r",
"modified" : "2024-10-27T15:38:08Z",
"published" : "2021-03-10T21:51:17Z",
"aliases" : [ "CVE-2021-21371" ],
"summary" : "Execution of untrusted code through config file",
"details" : "### Impact\nIt is possible to run arbitrary commands through the yaml.load() method. This could allow an attacker with local access to the host to run arbitrary code by running the application with a specially crafted YAML configuration file.\n\n### Workarounds\nManually adjust yaml.load() to yaml.safe_load()\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [tenable/integration-jira-cloud](https://github.com/tenable/integration-jira-cloud/issues)\n* Email us at [vulnreport@tenable.com](mailto:vulnreport@tenable.com)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "tenable-jira-cloud"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.21"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/tenable/integration-jira-cloud/security/advisories/GHSA-8278-88vv-x98r"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-21371"
}, {
"type" : "WEB",
"url" : "https://github.com/tenable/integration-jira-cloud/commit/f8c2095fd529e664e7fa25403a0a4a85bb3907d0"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/tenable-jira-cloud/PYSEC-2021-60.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tenable/integration-jira-cloud"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/tenable-jira-cloud"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-03-10T21:51:06Z",
"nvd_published_at" : "2021-03-10T22:15:00Z"
}
}