CVE-2021-37941
JSON

7.8high

APM Java Agent Local Privilege Escalation

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
0.21% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
elastic
Also known as
GHSA-r562-m862-63w3PYSEC-2026-634

Description

A local privilege escalation issue was found with the APM Java agent, where a user on the system could attach a malicious file to an application running with the APM Java agent. Using this vector, a malicious or compromised user account could use the agent to run commands at a higher level of permissions than they possess. This vulnerability affects users that have set up the agent via the attacher cli 3, the attach API 2, as well as users that have enabled the profiling_inferred_spans_enabled option

Affected

Product or packageVersionsReported by
Elastic APM Java Agent1.10.0 through 1.26.0CVE List
elastic-apm (PyPI)from 1.10.0 before 1.27.0GitHub Advisory Database, PyPA Advisory Database
elastic apm_agentfrom 1.10.0 up to 1.26.0NVD

All scores

GitHub7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/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
NVD4.4medium CVSS:2.0AV:L/AC:M/Au:N/C:P/I:P/A:P
PyPA Advisory Database7.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 file to an application running with the APM Java agent. Using this vector, a malicious or compromised user account could use the agent to run commands at a higher level of permissions than they possess. This vulnerability affects users that have set up the agent via the attacher cli 3, the attach API 2, as well as users that have enabled the profiling_inferred_spans_enabled option

NVD (es)

Se encontró un problema de escalada de privilegios local con el agente Java de APM, donde un usuario en el sistema podría adjuntar un archivo malicioso a una aplicación que es ejecutada con el agente Java de APM. Usando este vector, una cuenta de usuario maliciosa o comprometida podría usar el agente para ejecutar comandos con un nivel de permisos superior al que posee. Esta vulnerabilidad afecta a los usuarios que han configurado el agente por medio del attacher cli 3, el attach API 2, así como a usuarios que han habilitado la opción profiling_inferred_spans_enabled

References

Sources

SourceRecordLicence
CVE ListCVE-2021-37941 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-r562-m862-63w3 changed 2026-07-06CC-BY-4.0
NVDCVE-2021-37941 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-634 changed 2026-07-06CC-BY-4.0