CVE-2021-37942
HIGH 7.8CVSS 3.1APM Java Agent Local Privilege Escalation issue
A local privilege escalation issue was found with the APM Java agent, where a user on the system could attach a malicious plugin to an application running the APM Java agent. By using this vulnerability, an attacker could execute code at a potentially higher level of permissions than their user typically has access to.
- Published
- 22 Nov 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security@elastic.co
- NVD status
- Modified
- Weakness
- CWE-269
- Also known as
- GHSA-5xqm-hc45-f2g2
- Sources
- NVDJSONOSV GHSA-5xqm-hc45-f2g2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security@elastic.co (Secondary) | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | elastic | apm_java_agentcpe:2.3:a:elastic:apm_java_agent:*:*:*:*:*:*:*:* |
>= 1.18.0, <= 1.27.0 | |
| OSV | Maven | co.elastic.apm:apm-agent-parent | >= 1.18.0, < 1.27.1 | 1.27.1 |
| OSV | Maven | co.elastic.apm:elastic-apm-agent | >= 1.18.0, < 1.27.1 | 1.27.1 |
References
- https://discuss.elastic.co/t/apm-java-agent-security-update/291355 · Vendor Advisory, WEB
- https://www.elastic.co/community/security · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-37942 · ADVISORY
- https://github.com/elastic/apm-agent-java · PACKAGE
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 22 Nov 2023)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 22 Nov 2023)