# Elastic APM agent for Python 5.1.0 security update

**URL:** <https://discuss.elastic.co/t/elastic-apm-agent-for-python-5-1-0-security-update/196145>\
**Category:** Security Announcements\
**Created:** [August 21, 2019, 3:19pm UTC](https://discuss.elastic.co/t/elastic-apm-agent-for-python-5-1-0-security-update/196145 "2019-08-21T15:19:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshbressers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshbressers/32/42332_2.png) [@joshbressers](https://discuss.elastic.co/u/joshbressers)\
**Post date:** [August 21, 2019, 3:19pm UTC](https://discuss.elastic.co/t/elastic-apm-agent-for-python-5-1-0-security-update/196145/1 "2019-08-21T15:19:54Z")

</div>

**Elastic APM agent for Python client CGI proxy redirection flaw (ESA-2019-11)**

When the Elastic APM agent for Python is run as a CGI script, there is a variable name clash flaw if a remote attacker can control the proxy header. This could result in an attacker redirecting collected APM data to a proxy of their choosing.

This flaw only affects the APM agent for Python when it is run as a CGI script. If you are not using the agent as a CGI script this flaw does not affect you.

**Affected Versions:**  
All Elastic APM agent for Python versions before 5.1.0

**Solutions and Mitigations:**  
Users running the Elastic APM agent for Python as a CGI script should upgrade to Elastic APM agent for Python version 5.1.0 or later.

**CVE ID:** CVE-2019-7617

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 4, 2022, 7:22am UTC](https://discuss.elastic.co/t/elastic-apm-agent-for-python-5-1-0-security-update/196145/2 "2022-11-04T07:22:17Z")

</div>


