Vulnerabilities in pkg:pypi/graphite-web
PACKAGECVE-2017-18638 is a HIGH (CVSS 7.5) graphite.composer.views.send_email vulnerable to ssrf vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Graphite web libraries in the PyPI ecosystem. The issue involves graphite.composer.views.send_email vulnerable to ssrf. Remediation is available by upgrading affected packages to version 1.1.6.
pkg:pypi/graphite-web
Vulnerability advisories affecting package pkg:pypi/graphite-web. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-vfj6-275q-4pvm | CVE-2017-18638 | HIGH | graphite.composer.views.send_email vulnerable to SSRF |
| GHSA-ch3j-w953-hfcm | CVE-2013-5942 | CRITICAL | graphite-web is vulnerable to Remote Code Execution |
| GHSA-m923-w2gj-v43g | CVE-2013-5093 | CRITICAL | graphite-web is vulnerable to Remote Code Execution via renderLocalView function |
| GHSA-m973-4vpc-x43c | CVE-2022-4730 | MODERATE | Graphite Web Cross-site Scripting vulnerability |
| GHSA-3c5x-4hvx-qrrr | CVE-2022-4728 | MODERATE | Graphite Web Cross-site Scripting vulnerability |
| GHSA-q99p-78hp-xg5c | CVE-2022-4729 | MODERATE | Graphite Web Cross-site Scripting vulnerability |
CVE-2017-18638 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2017-18638
To remediate this vulnerability, upgrade all affected Graphite web 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 graphite-web>=1.1.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show graphite-web
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2017-18638, inspect your installed packages using pip:
pip show graphite-web
Analyze the terminal output to locate any version of Graphite web in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.6), your application is affected.
Note: The pip show graphite-web 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 Graphite web, 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-18638 Affected Graphite web Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
graphite-web
|
PyPI |
< 1.1.6
|
1.1.6
|
References
Frequently Asked Questions
What is CVE-2017-18638?
Which Graphite web versions are affected?
What version fixes CVE-2017-18638?
Is graphite-web affected?
What is the CVSS score of CVE-2017-18638?
What CWE is associated with CVE-2017-18638?
How can I check PyPI dependencies for CVE-2017-18638?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vfj6-275q-4pvm",
"modified" : "2024-09-20T21:42:27Z",
"published" : "2019-10-25T13:55:20Z",
"aliases" : [ "CVE-2017-18638" ],
"summary" : "graphite.composer.views.send_email vulnerable to SSRF",
"details" : "### Impact\nsend_email in graphite-web/webapp/graphite/composer/views.py in Graphite through 1.1.5 is vulnerable to SSRF. The vulnerable SSRF endpoint can be used by an attacker to have the Graphite web server request any resource. The response to this SSRF request is encoded into an image file and then sent to an e-mail address that can be supplied by the attacker. Thus, an attacker can exfiltrate any information. Email will be send through SMTP server configured in Graphite, by default it's 'localhost'\n\n### Patches\nProblem was patched in Graphite-web 1.1.6. Also patches was released for graphite-web [1.0.x](https://github.com/graphite-project/graphite-web/pull/2501) and [0.9.x](https://github.com/graphite-project/graphite-web/pull/2500), and we'll discuss releases of non-supported branches later.\n\n### Workarounds\nYou can manually remove function `send_email` from file `webapp/graphite/composer/views.py`. This function are not in use and will not affect your Graphite installation.\n\n### References\nFor more information check this graphite-web Github issue #2008 \n\n### For more information\nIf you have any questions or comments about this advisory:\n* Add comment in [issue #2008](https://github.com/graphite-project/graphite-web/issues/2008)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "graphite-web"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/graphite-project/graphite-web/security/advisories/GHSA-vfj6-275q-4pvm"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-18638"
}, {
"type" : "WEB",
"url" : "https://github.com/graphite-project/graphite-web/issues/2008"
}, {
"type" : "WEB",
"url" : "https://github.com/graphite-project/graphite-web/pull/2499"
}, {
"type" : "WEB",
"url" : "https://github.com/graphite-project/graphite-web/commit/71726a0e41a5263f49b973a7b856505a5b931c1f"
}, {
"type" : "WEB",
"url" : "https://blog.orange.tw/2017/07/how-i-chained-4-vulnerabilities-on.html#second-bug-internal-graphite-ssrf"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/graphite-project/graphite-web"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/graphite-web/PYSEC-2019-151.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2019/10/msg00030.html"
}, {
"type" : "WEB",
"url" : "https://www.youtube.com/watch?v=ds4Gp4xoaeA"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-03T23:34:36Z",
"nvd_published_at" : null
}
}