CVE-2017-7200: Glance OpenStack Glance Server-Side Request Forgery Vulnerability
MODERATECVE-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
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).
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.
pip install glance>=11.0.0a0
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
CVE-2017-7200 Affected Glance Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
glance
|
PyPI |
< 11.0.0a0
|
11.0.0a0
|
References
Frequently Asked Questions
What is CVE-2017-7200?
Which Glance versions are affected?
What version fixes CVE-2017-7200?
Is glance affected?
What is the CVSS score of CVE-2017-7200?
What CWE is associated with CVE-2017-7200?
How can I check PyPI dependencies for CVE-2017-7200?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}