CVE-2022-4134: Glance OpenStack Glance Inclusion Of Functionality Vulnerability

LOW
Advisory Identifier: GHSA-5gp5-vxj6-4257
CVSS 2.8
CWE-829
Published
Advisory Summary

CVE-2022-4134 is a LOW (CVSS 2.8) openstack glance inclusion of functionality vulnerability (CWE-829: Inclusion of Functionality from Untrusted Control Sphere) affecting Glance libraries in the PyPI ecosystem. The issue involves openstack glance inclusion of functionality from untrusted control sphere vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2022-4134 at a Glance

CVE Identifier CVE-2022-4134
GHSA Identifier GHSA-5gp5-vxj6-4257
Severity LOW
CVSS v3.1 Base Score 2.8
CWE Classification CWE-829: Inclusion of Functionality from Untrusted Control Sphere
Affected Product Glance
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 2.8

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:R/S:U/C:N/I:L/A:N).

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

How to Fix CVE-2022-4134

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

glance fixed: Latest secure release
pip install glance>=Latest secure release
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 glance

How to Check if You Are Affected

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

pip show glance

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere, where the product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere. In Glance, 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

A flaw was found in openstack-glance. This issue could allow a remote, authenticated attacker to tamper with images, compromising the integrity of virtual machines created using these modified images.

CVE-2022-4134 Affected Glance Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
glance
PyPI
≤ 25.1.0

References

Frequently Asked Questions

What is CVE-2022-4134?
CVE-2022-4134 is a security vulnerability in Glance involving OpenStack Glance Inclusion of Functionality from Untrusted Control Sphere vulnerability under CWE-829: Inclusion of Functionality from Untrusted Control Sphere.
Which Glance versions are affected?
Affected versions include releases prior to current release patches across affected packages: glance.
What version fixes CVE-2022-4134?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is glance affected?
Yes, glance is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2022-4134?
CVE-2022-4134 has a CVSS v3.1 base score of 2.8 (LOW) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2022-4134?
CVE-2022-4134 is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere (The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.).
How can I check PyPI dependencies for CVE-2022-4134?
Run the dependency tree command: 'pip show glance'. 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-5gp5-vxj6-4257",
  "modified" : "2025-03-06T21:36:21Z",
  "published" : "2023-03-07T00:30:24Z",
  "aliases" : [ "CVE-2022-4134" ],
  "summary" : "OpenStack Glance Inclusion of Functionality from Untrusted Control Sphere vulnerability",
  "details" : "A flaw was found in openstack-glance. This issue could allow a remote, authenticated attacker to tamper with images, compromising the integrity of virtual machines created using these modified images.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "glance"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "25.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-0757"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-4134"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/glance/+bug/1990157"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2147462"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/glance"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/glance/PYSEC-2023-270.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://wiki.openstack.org/wiki/OSSN/OSSN-0090"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-829" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-08T00:16:31Z",
    "nvd_published_at" : "2023-03-06T23:15:00Z"
  }
}