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 package | Versions | Reported by |
|---|---|---|
| Elastic APM Java Agent | 1.10.0 through 1.26.0 | CVE List |
| elastic-apm (PyPI) | from 1.10.0 before 1.27.0 | GitHub Advisory Database, PyPA Advisory Database |
| elastic apm_agent | from 1.10.0 up to 1.26.0 | NVD |
All scores
| GitHub | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 4.4medium CVSS:2.0 | AV:L/AC:M/Au:N/C:P/I:P/A:P |
| PyPA Advisory Database | 7.8high CVSS:3.1 | CVSS: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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-37941 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r562-m862-63w3 changed 2026-07-06 | CC-BY-4.0 |
| NVD | CVE-2021-37941 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-634 changed 2026-07-06 | CC-BY-4.0 |