CVE-2021-37942: APM Java Agent Local Privilege Escalation

Published Nov 22, 2023
·
Updated

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.

Affected Software

2 affected componentsFixes available
maven/co.elastic.apm:apm-agent-parent>=1.18.0<1.27.1
1.27.1
Elastic Apm Java Agent>=1.18.0<=1.27.0

Event History

Nov 22, 2023
CVE Published
via MITRE·01:33 AM
Data Sourced
via MITRE·01:33 AM
DescriptionSeverityWeakness
Advisory Published
03:30 AM

Frequently Asked Questions

1

What is CVE-2021-37942?

CVE-2021-37942 is a vulnerability in the APM Java agent that allows local privilege escalation.

2

What is the severity of CVE-2021-37942?

CVE-2021-37942 has a severity rating of high (7 out of 10).

3

How can an attacker exploit CVE-2021-37942?

An attacker can exploit CVE-2021-37942 by attaching a malicious plugin to an application running the APM Java agent.

4

Which versions of the APM Java agent are affected by CVE-2021-37942?

Versions 1.18.0 to 1.27.1 of the APM Java agent are affected by CVE-2021-37942.

5

How can I fix CVE-2021-37942?

To fix CVE-2021-37942, update the APM Java agent to version 1.27.1.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203