CVE-2021-37942
JSON

7.0high

APM Java Agent Local Privilege Escalation

Severity
7.0high CVSS:3.1 by elastic
Exploit likelihood
0.26% (higher than 19% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
elastic
Also known as
GHSA-5xqm-hc45-f2g2

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.

Affected

Product or packageVersionsReported by
Elastic Elastic APM Java Agentfrom 1.18.0 before 1.27.0CVE List
co.elastic.apm:apm-agent-parent (Maven)from 1.18.0 before 1.27.1GitHub Advisory Database
co.elastic.apm:elastic-apm-agent (Maven)from 1.18.0 before 1.27.1GitHub Advisory Database
elastic apm_java_agentfrom 1.18.0 up to 1.27.0NVD

All scores

elastic7.0high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub7.0high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

What each source says

CVE List

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.

NVD (es)

Se encontró un problema de escalada de privilegios local con APM Java Agent, donde un usuario del sistema podía adjuntar un complemento malicioso a una aplicación que ejecutaba APM Java Agent. Al utilizar esta vulnerabilidad, un atacante podría ejecutar código con un nivel de permisos potencialmente más alto del que normalmente tiene acceso su usuario.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-37942 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-5xqm-hc45-f2g2 changed 2025-09-30CC-BY-4.0
NVDCVE-2021-37942 changed 2026-06-17Public domain