CVE-2021-21371: Tenable jira cloud Execution Of Untrusted Code Through Vulnerability

MODERATE
Advisory Identifier: GHSA-8278-88vv-x98r
CVSS 5.0
CWE-502
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2021-21371
GHSA Identifier GHSA-8278-88vv-x98r
Severity MODERATE
CVSS v3.1 Base Score 5.0
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Tenable jira cloud
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

tenable-jira-cloud fixed: 1.1.21
pip install tenable-jira-cloud>=1.1.21
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 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

### Impact It 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. ### Workarounds Manually adjust yaml.load() to yaml.safe_load() ### For more information If you have any questions or comments about this advisory: * Open an issue in [tenable/integration-jira-cloud](https://github.com/tenable/integration-jira-cloud/issues) * Email us at [vulnreport@tenable.com](mailto:vulnreport@tenable.com)

CVE-2021-21371 Affected Tenable jira cloud Versions

1 component(s)
Fixed Versions:
1.1.21
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?
CVE-2021-21371 is a security vulnerability in Tenable jira cloud involving Execution of untrusted code through config file under CWE-502: Deserialization of Untrusted Data.
Which Tenable jira cloud versions are affected?
Affected versions include releases prior to 1.1.21 across affected packages: tenable-jira-cloud.
What version fixes CVE-2021-21371?
Upgrading to 1.1.21 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tenable-jira-cloud affected?
Yes, tenable-jira-cloud is affected in releases prior to 1.1.21. Upgrade your dependency to 1.1.21 or later.
What is the CVSS score of CVE-2021-21371?
CVE-2021-21371 has a CVSS v3.1 base score of 5.0 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2021-21371?
CVE-2021-21371 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check PyPI dependencies for CVE-2021-21371?
Run the dependency tree command: 'pip show tenable-jira-cloud'. 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-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"
  }
}