VDB
Sign up
HIGH7.8

PYSEC-2026-634

APM Java Agent Local Privilege Escalation

Quick fix

PYSEC-2026-634 — elastic-apm: upgrade to the fixed version with the command below.

pip install --upgrade 'elastic-apm>=1.27.0'

Details

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

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/elastic-apm
Introduced in: 1.10.0Fixed in: 1.27.0
Fixpip install --upgrade 'elastic-apm>=1.27.0'

References