CVE-2022-37394: Nova OpenStack Nova Changing Vnic_type Breaks Vulnerability

LOW
Advisory Identifier: GHSA-v725-c588-h936
CVSS 3.3
Published
Advisory Summary

CVE-2022-37394 is a LOW (CVSS 3.3) openstack nova changing vnic_type breaks vulnerability (General Security Weakness) affecting Nova libraries in the PyPI ecosystem. The issue involves openstack nova changing vnic_type breaks compute service restart. Remediation is available by upgrading affected packages to version 23.2.2, 24.1.2, 25.0.2.

CVE-2022-37394 at a Glance

CVE Identifier CVE-2022-37394
GHSA Identifier GHSA-v725-c588-h936
Severity LOW
CVSS v3.1 Base Score 3.3
CWE Classification General Security Weakness
Affected Product Nova
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 3.3

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:N/A:L).

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 None (I:N)
Availability Low (A:L)

How to Fix CVE-2022-37394

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

nova fixed: 23.2.2
pip install nova>=23.2.2
nova fixed: 24.1.2
pip install nova>=24.1.2
nova fixed: 25.0.2
pip install nova>=25.0.2
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 nova

How to Check if You Are Affected

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

pip show nova

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

Note: The pip show nova 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 Nova, 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 Nova before 23.2.2, 24.x before 24.1.2, and 25.x before 25.0.2. By creating a neutron port with the direct vnic_type, creating an instance bound to that port, and then changing the vnic_type of the bound port to macvtap, an authenticated user may cause the compute service to fail to restart, resulting in a possible denial of service. Only Nova deployments configured with SR-IOV are affected.

CVE-2022-37394 Affected Nova Versions

3 component(s)
Fixed Versions:
23.2.224.1.225.0.2
Product / Package Ecosystem Affected Versions Fixed Version
nova
PyPI
< 23.2.2
23.2.2
nova
PyPI
≥ 24.0.0
< 24.1.2
24.1.2
nova
PyPI
≥ 25.0.0
< 25.0.2
25.0.2

References

Frequently Asked Questions

What is CVE-2022-37394?
CVE-2022-37394 is a security vulnerability in Nova involving OpenStack Nova Changing vnic_type breaks compute service restart under General Security Weakness.
Which Nova versions are affected?
Affected versions include releases prior to 23.2.2, 24.1.2, 25.0.2 across affected packages: nova.
What version fixes CVE-2022-37394?
Upgrading to 23.2.2, 24.1.2, 25.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nova affected?
Yes, nova is affected in releases prior to 23.2.2, 24.1.2, 25.0.2. Upgrade your dependency to 23.2.2, 24.1.2, 25.0.2 or later.
What is the CVSS score of CVE-2022-37394?
CVE-2022-37394 has a CVSS v3.1 base score of 3.3 (LOW) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2022-37394?
CVE-2022-37394 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2022-37394?
Run the dependency tree command: 'pip show nova'. 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-v725-c588-h936",
  "modified" : "2024-05-14T21:27:20Z",
  "published" : "2022-08-04T00:00:26Z",
  "aliases" : [ "CVE-2022-37394" ],
  "summary" : "OpenStack Nova Changing vnic_type breaks compute service restart",
  "details" : "An issue was discovered in OpenStack Nova before 23.2.2, 24.x before 24.1.2, and 25.x before 25.0.2. By creating a neutron port with the direct vnic_type, creating an instance bound to that port, and then changing the vnic_type of the bound port to macvtap, an authenticated user may cause the compute service to fail to restart, resulting in a possible denial of service. Only Nova deployments configured with SR-IOV are affected.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nova"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "23.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nova"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "24.0.0"
      }, {
        "fixed" : "24.1.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nova"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "25.0.0"
      }, {
        "fixed" : "25.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-37394"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/0c87681135cfb3ce61d2a0392928c1dbc1fe5fde"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/1a98a1a650d065a8ab3e1c474f3b9fd537dc2206"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/4954f993680c75fd9d3d507f2dcd00300c9b3d44"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/a28c82719545d5c8ee7f3ff1361b3a796e05095a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/e43bf900dc8ca66578603bed333c56b215b1876e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/f8c91eb75fc5504a37fc3b4be1d65d33dbc9b511"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/ossa/+bug/1981813"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/nova"
  }, {
    "type" : "WEB",
    "url" : "https://review.opendev.org/c/openstack/nova/+/849985"
  }, {
    "type" : "WEB",
    "url" : "https://review.opendev.org/c/openstack/nova/+/850003"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T21:27:20Z",
    "nvd_published_at" : "2022-08-03T07:15:00Z"
  }
}