CVE-2019-7617:
Elastic APM agent for Python client CGI proxy redirection flaw
7.2
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.43844%
CWE
Published
5/24/2022
Updated
9/20/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
elastic-apm | pip | < 5.1.0 | 5.1.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper input validation (CWE-20) when handling proxy configuration in CGI environments. CGI scripts convert HTTP headers to environment variables (e.g., 'Proxy' header becomes HTTP_PROXY). The Elastic APM agent's transport layer likely used these environment variables directly to configure its proxy settings without validation. This allowed attackers to manipulate the proxy destination by injecting malicious headers. The function responsible for setting the proxy (e.g., set_proxy in the HTTP transport) would be vulnerable as it trusted environment variables without sanitizing them in CGI contexts. The fix in 5.1.0 likely added validation or avoided using untrusted environment variables in this context.