Improper privilege management in Elastic APM Java Agent
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Privilege escalation
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-269.
Summary
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
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Elastic | APM Java Agent | 1.10.0 through 1.26.0 | — | No fix listed | CNA |
| — | elastic-apm (PyPI) | 1.10.0 to before 1.27.0 | 1.27.0 | Patch available | GHSA-r562-m862-63w3 |
- APM Java Agent VendorElastic Affected 1.10.0 through 1.26.0 Fixed in — No fix listed CNA
- elastic-apm (PyPI) Vendor— Affected 1.10.0 to before 1.27.0 Fixed in 1.27.0 Patch available GHSA-r562-m862-63w3
Remediation
- Fix · GHSA-r562-m862-63w3 elastic-apm (PyPI) Fixed in 1.27.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-37941
- 2026-10-03 Alias added: GHSA-r562-m862-63w3
References
More Elastic Apm Agent vulnerabilities
- TI-2019-05371 Improper input validation in Elastic APM agent for Python CVSS 3.0HIGH 7.2
- TI-2021-05123 Sensitive information in log files in Elastic APM Agent for Go CVSS 3.1LOW 2.4
Sources
- CVE-2021-37941 · CVE Program
- CVE-2021-37941 · NVD
- FIRST EPSS
- GHSA-r562-m862-63w3 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences