CVE-2021-37942Elastic Apm Java Agent
High 7.8
Follow: this CVE · Elastic · Elastic Apm Java Agent We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.3% probability of exploitation in 30 days · percentile 11
- Auth required
- Yes
- Published
- Nov 22, 2023
- 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 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.
What to do
- Apply the vendor's security update for Apm Java Agent.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | co.elastic.apm:apm-agent-parent |
≥ 1.18.0 < 1.27.1 |
1.27.1 |
— |
| Maven | co.elastic.apm:elastic-apm-agent |
≥ 1.18.0 < 1.27.1 |
1.27.1 |
— |
Per OSV / GitHub Advisories (GHSA-5xqm-hc45-f2g2). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| elastic | apm_java_agent | ≥ 1.18.0 ≤ 1.27.0 |
Official sources
References
Links published by the sources. Open them with care.
- discuss.elastic.co Vendor Advisory
- www.elastic.co Product