CVE-2021-21371 Execution of untrusted code through config file

Medium 5.0 Published Updated

An attacker with local access can execute arbitrary code via a crafted YAML configuration file due to unsafe deserialization in the Tenable Jira Cloud integration.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-21371?

CVE-2021-21371 is a medium-severity unsafe deserialization vulnerability in tenable integration-jira-cloud, published on 10 Mar 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Tenable for Jira Cloud is an open source project designed to pull Tenable.io vulnerability data, then generate Jira Tasks and sub-tasks based on the vulnerabilities' current state. It published in pypi as "tenable-jira-cloud". In tenable-jira-cloud before version 1.1.21, 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. This is fixed in version 1.1.21 by using yaml.safe_load() instead of yaml.load().

Weakness: CWE-502

Which versions are affected by CVE-2021-21371?

3 open source packages ship an affected version, including tenable-jira-cloud. It affects 1 product.

PackageAffectedFixed in
tenable-jira-cloud PyPIAll versions1.1.21
tenable-jira-cloud PyPIAll versions1.1.21
tenable-jira-cloud PyPIAll versions1.1.22

Products include Tenable Jira Cloud.

How do I fix CVE-2021-21371?

Upgrade tenable-jira-cloud to a fixed version for your release line: 1.1.21 or 1.1.22.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2021-21371 being exploited?

There is no known exploitation of CVE-2021-21371 in the wild and no public exploit code.

Sources

Also known as GHSA-8278-88vv-x98r, PYSEC-2021-60.

Is CVE-2021-21371 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free