# CVE-2021-37941

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-12-08 · Modified: 2024-08-04
- Aliases: GHSA-r562-m862-63w3, PYSEC-2026-634
- Record: https://cvemate.com/vulnerability/CVE-2021-37941 · JSON: https://cvemate.com/vulnerability/CVE-2021-37941/json

## Description

```text
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
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.214%, percentile 12.534%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- elastic apm\_agent: ≥ 1.10.0, ≤ 1.26.0
- elastic apm\_java\_agent: 1.10.0 through 1.26.0
- PyPI elastic-apm (PyPI): ≥ 1.10.0, \< 1.27.0

## References

- <https://discuss.elastic.co/t/apm-java-agent-security-update/289627>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-37941>
- <https://github.com/elastic/apm-agent-python>
- <https://pypi.org/project/elastic-apm>
- <https://github.com/advisories/GHSA-r562-m862-63w3>

---

Data as of 2026-12-05T09:44:00.270Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
