CVE-2021-37941: APM Java Agent - Privilege Escalation
- Cve: CVE-2021-37941
- Name: APM Java Agent - Privilege Escalation
- 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
- Impact: Malicious users can escalate privileges and execute commands at higher levels, potentially leading to full system compromise.
- Remediation: Update to the latest version of the APM Java agent and review attachment and profiling configurations.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation
- Requirement type: logged_in
- Requirements: Attacker needs user access to attach files or enable profiling
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00214
- Epss percentile: 0.11668
- Assignee: [email protected]
- Published at: 2021-12-08T22:15:08Z
- Age in days: 1812
- Modified at: 2026-06-17T04:01:17Z
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-37941
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
Cwe
| Id | Name |
|---|---|
| CWE-269 | Improper Privilege Management |
Hackerone
- Reports: 1
- Rank: 5211
References
| Url | Source | Tags |
|---|---|---|
| https://discuss.elastic.co/t/apm-java-agent-security-update/289627 | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| elastic:apm_agent | >= 1.10.0, <= 1.26.0 | no | nvd | /v1/products/elastic/apm_agent |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| elastic/apm-agent-python | package | yes | /v1/repositories/elastic/apm-agent-python |
Index
- Repositories: 2
- Checked, none or zero: repositories high signal, packages
Exploitation
- Authentication required: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts