CVE-2021-37941: elastic apm_agent Improper Privilege Management
Vulnerability summary
CVE-2021-37941 is a high (CVSS 7.8) Improper Privilege Management vulnerability in elastic apm_agent. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 12.5% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 08-12-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
A local privilege escalation issue was found with the APM Java agent, where a user on the system could attach a malicious file to an application running with the APM Java agent. Using this vector, a malicious or compromised user account could use the agent to run commands at a higher level of permissions than they possess. This vulnerability affects users that have set up the agent via the attacher cli 3, the attach API 2, as well as users that have enabled the profiling_inferred_spans_enabled option
CVSS metrics
3 scores · 2 sources · 2 versions- OSV · PypiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.21%
Chance of exploitation in the next 30 days
Percentile
13%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.21% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Elastic2 products
- apm_agent≥ 1.10.0, ≤ 1.26.0
- apm_java_agent1.10.0 through 1.26.0
PyPI1 product
- elastic-apm≥ 1.10.0, < 1.27.0
2 vendors · 3 products
References
5 links- pypi.org/project/elastic-apmPACKAGE