CVE-2022-44020: Sushy tools OpenStack Sushy-Tools And VirtualBMC Improper Vulnerability

MODERATE
Advisory Identifier: GHSA-5pj3-6fqm-8m7m
CVSS 5.5
CWE-281
Published
Advisory Summary

CVE-2022-44020 is a MODERATE (CVSS 5.5) openstack sushy-tools and virtualbmc improper vulnerability (CWE-281: Improper Preservation of Permissions) affecting Sushy tools libraries in the PyPI ecosystem. The issue involves openstack sushy-tools and virtualbmc improper preservation of permissions. Remediation is available by upgrading affected packages to version 0.21.1, 3.0.0.

CVE-2022-44020 at a Glance

CVE Identifier CVE-2022-44020
GHSA Identifier GHSA-5pj3-6fqm-8m7m
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-281: Improper Preservation of Permissions
Affected Product Sushy tools
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.5

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

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

How to Fix CVE-2022-44020

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

sushy-tools fixed: 0.21.1
pip install sushy-tools>=0.21.1
virtualbmc fixed: 3.0.0
pip install virtualbmc>=3.0.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 sushy-tools

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2022-44020, inspect your installed packages using pip:

pip show sushy-tools

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-281: Improper Preservation of Permissions, where the product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended. In Sushy tools, 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

An issue was discovered in OpenStack Sushy-Tools through 0.21.0 and VirtualBMC through 2.2.2. Changing the boot device configuration with these packages removes password protection from the managed libvirt XML domain. NOTE: this only affects an "unsupported, production-like configuration."

CVE-2022-44020 Affected Sushy tools Versions

2 component(s)
Fixed Versions:
0.21.13.0.0
Product / Package Ecosystem Affected Versions Fixed Version
sushy-tools
PyPI
< 0.21.1
0.21.1
virtualbmc
PyPI
< 3.0.0
3.0.0

References

Frequently Asked Questions

What is CVE-2022-44020?
CVE-2022-44020 is a security vulnerability in Sushy tools involving OpenStack Sushy-Tools and VirtualBMC Improper Preservation of Permissions under CWE-281: Improper Preservation of Permissions.
Which Sushy tools versions are affected?
Affected versions include releases prior to 0.21.1, 3.0.0 across affected packages: sushy-tools, virtualbmc.
What version fixes CVE-2022-44020?
Upgrading to 0.21.1, 3.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sushy-tools affected?
Yes, sushy-tools is affected in releases prior to 0.21.1. Upgrade your dependency to 0.21.1 or later.
Is virtualbmc affected?
Yes, virtualbmc is affected in releases prior to 3.0.0. Upgrade your dependency to 3.0.0 or later.
What is the CVSS score of CVE-2022-44020?
CVE-2022-44020 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2022-44020?
CVE-2022-44020 is classified under CWE-281: Improper Preservation of Permissions (The product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended.).
How can I check PyPI dependencies for CVE-2022-44020?
Run the dependency tree command: 'pip show sushy-tools'. 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-5pj3-6fqm-8m7m",
  "modified" : "2024-04-22T22:35:35Z",
  "published" : "2022-10-30T12:00:28Z",
  "aliases" : [ "CVE-2022-44020" ],
  "summary" : "OpenStack Sushy-Tools and VirtualBMC Improper Preservation of Permissions",
  "details" : "An issue was discovered in OpenStack Sushy-Tools through 0.21.0 and VirtualBMC through 2.2.2. Changing the boot device configuration with these packages removes password protection from the managed libvirt XML domain. NOTE: this only affects an \"unsupported, production-like configuration.\"",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "sushy-tools"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.21.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "virtualbmc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-44020"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/umago/virtualbmc"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GAD7QJIUWPCKJIGYP7PPHH5DILOEONFE"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KEQVJF3OQGSDCSQTQQSC54JEGLMSNB4Q"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMSUGS4B6EBRHBJMTRXL5RIKJTZTEMJC"
  }, {
    "type" : "WEB",
    "url" : "https://review.opendev.org/c/openstack/sushy-tools/+/862625"
  }, {
    "type" : "WEB",
    "url" : "https://review.opendev.org/c/openstack/virtualbmc/+/862620"
  }, {
    "type" : "WEB",
    "url" : "https://storyboard.openstack.org/#!/story/2010382"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-281" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-22T22:35:35Z",
    "nvd_published_at" : "2022-10-30T00:15:00Z"
  }
}