Live threats

All CVEs / Elastic

CVE-2021-37941Elastic Apm Agent

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
0.2%
probability of exploitation in 30 days · percentile 7
Auth required
Yes
Published
Dec 8, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-269
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Apm Agent.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI elastic-apm ≥ 1.10.0 < 1.27.0 1.27.0 pip install "elastic-apm>=1.27.0"
PyPI elastic-apm ≥ 1.10.0 < 1.27.0 1.27.0 pip install "elastic-apm>=1.27.0"

Per OSV / GitHub Advisories (GHSA-r562-m862-63w3, PYSEC-2026-634). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
elasticapm_agent≥ 1.10.0 ≤ 1.26.0

Official sources

References

Links published by the sources. Open them with care.