Advisory

GHSA-vfj6-275q-4pvm

Also known as: CVE-2017-18638, PYSEC-2019-151

Summary

graphite.composer.views.send_email vulnerable to SSRF

Details

Impact
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. Email will be send through SMTP server configured in Graphite, by default it's 'localhost'

Patches
Problem was patched in Graphite-web 1.1.6. Also patches was released for graphite-web 1.0.x and 0.9.x, and we'll discuss releases of non-supported branches later.

Workarounds
You 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.

References
For more information check this graphite-web Github issue #2008

For more information
If you have any questions or comments about this advisory:

Severity

High Basis: The source's own band: HIGH

Dates

Published
2019-10-25 13:55 UTC
Modified
2026-07-08 06:00 UTC

Affected packages and fixes

graphite-web

PyPI · All systems

Affected

  • introduced 0, fixed 1.1.6 (ecosystem)

Fixed versions

1.1.6

Fix

  • Fixed version 1.1.6
    pip install --upgrade graphite-web==1.1.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences