CVE-2022-3277: Neutron Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-w446-h7vg-wv3p
CVSS 6.5
CWE-400
Published
Advisory Summary

CVE-2022-3277 is a MODERATE (CVSS 6.5) remote code execution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Neutron libraries in the PyPI ecosystem. The issue involves openstack-neutron uncontrolled resource consumption flaw. Remediation is available by upgrading affected packages to version 19.5.0, 18.6.0, 20.3.0.

CVE-2022-3277 at a Glance

CVE Identifier CVE-2022-3277
GHSA Identifier GHSA-w446-h7vg-wv3p
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Neutron
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

Attack Vector Network (AV:N)
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 High (A:H)

How to Fix CVE-2022-3277

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

neutron fixed: 19.5.0
pip install neutron>=19.5.0
neutron fixed: 18.6.0
pip install neutron>=18.6.0
neutron fixed: 20.3.0
pip install neutron>=20.3.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 neutron

How to Check if You Are Affected

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

pip show neutron

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Neutron, 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 uncontrolled resource consumption flaw was found in openstack-neutron. This flaw allows a remote authenticated user to query a list of security groups for an invalid project. This issue creates resources that are unconstrained by the user's quota. If a malicious user were to submit a significant number of requests, this could lead to a denial of service.

CVE-2022-3277 Affected Neutron Versions

3 component(s)
Fixed Versions:
19.5.018.6.020.3.0
Product / Package Ecosystem Affected Versions Fixed Version
neutron
PyPI
≥ 19.0.0.0rc1
< 19.5.0
19.5.0
neutron
PyPI
< 18.6.0
18.6.0
neutron
PyPI
≥ 20.0.0.0rc1
< 20.3.0
20.3.0

References

Frequently Asked Questions

What is CVE-2022-3277?
CVE-2022-3277 is a security vulnerability in Neutron involving openstack-neutron uncontrolled resource consumption flaw under CWE-400: Uncontrolled Resource Consumption.
Which Neutron versions are affected?
Affected versions include releases prior to 19.5.0, 18.6.0, 20.3.0 across affected packages: neutron.
What version fixes CVE-2022-3277?
Upgrading to 19.5.0, 18.6.0, 20.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is neutron affected?
Yes, neutron is affected in releases prior to 19.5.0, 18.6.0, 20.3.0. Upgrade your dependency to 19.5.0, 18.6.0, 20.3.0 or later.
What is the CVSS score of CVE-2022-3277?
CVE-2022-3277 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2022-3277?
CVE-2022-3277 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check PyPI dependencies for CVE-2022-3277?
Run the dependency tree command: 'pip show neutron'. 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-w446-h7vg-wv3p",
  "modified" : "2025-03-07T19:13:15Z",
  "published" : "2023-03-07T00:30:25Z",
  "aliases" : [ "CVE-2022-3277" ],
  "summary" : "openstack-neutron uncontrolled resource consumption flaw",
  "details" : "An uncontrolled resource consumption flaw was found in openstack-neutron. This flaw allows a remote authenticated user to query a list of security groups for an invalid project. This issue creates resources that are unconstrained by the user's quota. If a malicious user were to submit a significant number of requests, this could lead to a denial of service.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "neutron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "19.0.0.0rc1"
      }, {
        "fixed" : "19.5.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "neutron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "18.6.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "neutron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "20.0.0.0rc1"
      }, {
        "fixed" : "20.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-3277"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/neutron/commit/01fc2b9195f999df4d810df4ee63f77ecbc81f7e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/neutron/commit/717e3e09556f1fb9a7a420863746fa785eb6c316"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/neutron/commit/733ef4f2d8c2a3734c360d1c1dd3a6fcd600cb8c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/neutron/commit/cbeee87fa44cd200d4997e02042098460167dce1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/neutron/commit/d0e1b54fb1de932b2b30ab4269cf5789632df476"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/neutron/commit/fd7fb0e9d8c602380f54975367d935ab69e10c05"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/neutron/+bug/1988026"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2129193"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/neutron"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T21:22:04Z",
    "nvd_published_at" : "2023-03-06T23:15:00Z"
  }
}