CVE-2021-37942: APM Java Agent Local Privilege Escalation
Vulnerability summary
CVE-2021-37942 is a high (CVSS 7.8) Improper Privilege Management vulnerability in elastic apm_java_agent. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 19.1% of scored vulnerabilities.
Not severe (CVSS 7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 22-11-2023PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA7.0HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · MavenEcosystem advisory · calculated7.0HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
0.26%
Chance of exploitation in the next 30 days
Percentile
19%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.25% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Co.elastic.apm2 products
- apm-agent-parent≥ 1.18.0, < 1.27.1
- elastic-apm-agent≥ 1.18.0, < 1.27.1
Elastic2 products
- apm_java_agent≥ 1.18.0, ≤ 1.27.0
- elastic apm java agent≥ 1.18.0, < 1.27.0
2 vendors · 4 products