CVE-2021-37942
Java vulnerability analysis and mitigation

Overview

A local privilege escalation vulnerability (CVE-2021-37942) was discovered in the Elastic APM Java agent versions 1.18.0 through 1.27.0. The vulnerability was disclosed on December 9, 2021, affecting the APM Java agent component of Elastic's application performance monitoring system (Elastic Advisory).

Technical details

The vulnerability allows a local user to attach a malicious plugin to an application running the APM Java agent. The issue has been assigned a CVSS v3.1 base score of 7.8 HIGH (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) by NIST NVD, while Elastic assigned it a score of 7.0 HIGH (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H). The vulnerability is classified under CWE-269 (Improper Privilege Management) (NVD).

Impact

By exploiting this vulnerability, an attacker could execute code at a potentially higher level of permissions than their user typically has access to, leading to privilege escalation on the affected system (Elastic Advisory).

Mitigation and workarounds

Users are advised to update to version 1.27.1 or newer of the APM Java agent. Alternatively, users can switch to the unaffected -javaagent-based installation method as a workaround (Elastic Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55749HIGH8.7
  • JavaJava
  • org.xwiki.platform:xwiki-platform-tool-jetty-resources
NoYesDec 01, 2025
CVE-2025-64775HIGH7.5
  • JavaJava
  • google-guice
NoYesDec 01, 2025
CVE-2025-13806MEDIUM6.9
  • JavaJava
  • org.nutz:nutzboot-parent
NoNoDec 01, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 2025
CVE-2025-13472MEDIUM5.3
  • JavaJava
  • com.blazemeter.plugins:blazemeterjenkinsplugin
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management