CVE-2019-7617 — elastic-apm
HIGHCVE-2019-7617 is a high-severity (CVSS 7.2) Improper Input Validation vulnerability in elastic-apm. A fix is available for elastic-apm — see the affected versions and patch details below.
Elastic APM agent for Python client CGI proxy redirection flaw
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
elastic-apmReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
When the Elastic APM agent for Python versions before 5.1.0 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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | elastic-apm | all versions | 5.1.0pip install --upgrade 'elastic-apm==5.1.0' |
Affected Products
apm agentelasticDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for elastic-apm, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update elastic-apm to 5.1.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2019-7617 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2019-7617 in your dependencies?
Find it across PyPI, including transitive dependencies.