CVE-2017-7200: Glance OpenStack Glance Server-Side Request Forgery Vulnerability

MODERATE
Advisory Identifier: GHSA-j6mr-cm6x-h6jg
CVSS 5.8
CWE-918
Published
Advisory Summary

CVE-2017-7200 is a MODERATE (CVSS 5.8) openstack glance server-side request forgery vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Glance libraries in the PyPI ecosystem. The issue involves openstack glance server-side request forgery (ssrf). Remediation is available by upgrading affected packages to version 11.0.0a0.

CVE-2017-7200 at a Glance

CVE Identifier CVE-2017-7200
GHSA Identifier GHSA-j6mr-cm6x-h6jg
Severity MODERATE
CVSS v3.1 Base Score 5.8
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Glance
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.8

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

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

How to Fix CVE-2017-7200

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: 11.0.0a0
pip install glance>=11.0.0a0
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-2017-7200, 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 11.0.0a0), 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. 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

An SSRF issue was discovered in OpenStack Glance before Newton. The 'copy_from' feature in the Image Service API v1 allowed an attacker to perform masked network port scans. With v1, it is possible to create images with a URL such as 'http://localhost:22'. This could then allow an attacker to enumerate internal network details while appearing masked, since the scan would appear to originate from the Glance Image service.

CVE-2017-7200 Affected Glance Versions

1 component(s)
Fixed Versions:
11.0.0a0
Product / Package Ecosystem Affected Versions Fixed Version
glance
PyPI
< 11.0.0a0
11.0.0a0

References

Frequently Asked Questions

What is CVE-2017-7200?
CVE-2017-7200 is a security vulnerability in Glance involving OpenStack Glance Server-Side Request Forgery (SSRF) under CWE-918: Server-Side Request Forgery (SSRF).
Which Glance versions are affected?
Affected versions include releases prior to 11.0.0a0 across affected packages: glance.
What version fixes CVE-2017-7200?
Upgrading to 11.0.0a0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is glance affected?
Yes, glance is affected in releases prior to 11.0.0a0. Upgrade your dependency to 11.0.0a0 or later.
What is the CVSS score of CVE-2017-7200?
CVE-2017-7200 has a CVSS v3.1 base score of 5.8 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2017-7200?
CVE-2017-7200 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check PyPI dependencies for CVE-2017-7200?
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-j6mr-cm6x-h6jg",
  "modified" : "2024-05-14T21:32:12Z",
  "published" : "2022-05-17T02:52:29Z",
  "aliases" : [ "CVE-2017-7200" ],
  "summary" : "OpenStack Glance Server-Side Request Forgery (SSRF)",
  "details" : "An SSRF issue was discovered in OpenStack Glance before Newton. The 'copy_from' feature in the Image Service API v1 allowed an attacker to perform masked network port scans. With v1, it is possible to create images with a URL such as 'http://localhost:22'. This could then allow an attacker to enumerate internal network details while appearing masked, since the scan would appear to originate from the Glance Image service.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "glance"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "11.0.0a0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-7200"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/glance/commit/b1ac90f7914d91b25144cc4063fa994fb5019ee3"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/ossn/+bug/1153614"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/ossn/+bug/1606495"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/glance"
  }, {
    "type" : "WEB",
    "url" : "https://wiki.openstack.org/wiki/OSSN/OSSN-0078"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/96988"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T21:32:12Z",
    "nvd_published_at" : "2017-03-21T06:59:00Z"
  }
}