High

APM Java Agent Local Privilege Escalation

  • Disclosed: 09.12.2021
  • Updated: 11.10.2026 13:17

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) elastic-apm >= 1.10.0, < 1.27.0 1.27.0

References

CVSS score 7.8/10
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-269
Platform
Python (PyPI)
Package
elastic-apm
Disclosed
09.12.2021
Updated
11.10.2026 13:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-634 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-r562-m862-63w3 - CC BY 4.0

Vulnerability history: elastic-apm

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
08.2019 12.2021
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 1

Disclosures per year

  1. 2019: 1
  2. 2020: 0
  3. 2021: 1
  4. 2022: 0
  5. 2023: 0
  6. 2024: 0
  7. 2025: 0
  8. 2026: 0
  1. APM Java Agent Local Privilege Escalation this entry
    High · 7.8 CVE-2021-37941 >= 1.10.0, < 1.27.0 1.27.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.