CVE-2021-37941Elastic Apm Agent
High 7.8
Follow: this CVE · Elastic · Elastic Apm Agent We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.2% probability of exploitation in 30 days · percentile 7
- Auth required
- Yes
- Published
- Dec 8, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-269
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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
What to do
- Apply the vendor's security update for Apm Agent.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | elastic-apm |
≥ 1.10.0 < 1.27.0 |
1.27.0 |
pip install "elastic-apm>=1.27.0" |
| PyPI | elastic-apm |
≥ 1.10.0 < 1.27.0 |
1.27.0 |
pip install "elastic-apm>=1.27.0" |
Per OSV / GitHub Advisories (GHSA-r562-m862-63w3, PYSEC-2026-634). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| elastic | apm_agent | ≥ 1.10.0 ≤ 1.26.0 |
Official sources
References
Links published by the sources. Open them with care.
- discuss.elastic.co Vendor Advisory