Advisory

PYSEC-2026-634

Also known as: CVE-2021-37941, GHSA-r562-m862-63w3

Summary

APM Java Agent Local Privilege Escalation

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

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-07-02 14:13 UTC
Modified
2026-07-06 08:00 UTC

Affected packages and fixes

elastic-apm

PyPI · All systems

Affected

  • introduced 1.10.0, fixed 1.27.0 (ecosystem)

Fixed versions

1.27.0

Fix

  • Fixed version 1.27.0
    pip install --upgrade elastic-apm==1.27.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences