CVE-2017-18638 graphite.composer.views.send_email vulnerable to SSRF

High 7.5 Published Updated

An attacker can exploit a Server-Side Request Forgery vulnerability in Graphite to exfiltrate sensitive data via email.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-18638?

CVE-2017-18638 is a high-severity server-side request forgery vulnerability in n/a, published on 11 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

send_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.

Weakness: CWE-918

Which versions are affected by CVE-2017-18638?

3 open source packages ship an affected version, including graphite-web. It affects 1 product.

PackageAffectedFixed in
graphite-web PyPIAll versions1.1.6
graphite-web PyPIAll versions1.1.6
graphite-web PyPIAll versions1.1.6
Linux distribution packages (1)
graphite-web SUSE:Enterprise Storage 4All versions0.9.12-5.3.1

Products include Graphite Project Graphite.

How do I fix CVE-2017-18638?

Upgrade graphite-web to 1.1.6 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2017-18638 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-18638 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as DEBIAN-CVE-2017-18638, DLA-1962-1, GHSA-vfj6-275q-4pvm, PYSEC-2019-151, SUSE-SU-2019:2803-1, UBUNTU-CVE-2017-18638.

Is CVE-2017-18638 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free