cve.bz

CVE-2021-37941

7.8 highEPSS 0.2%

High (7.8) in elastic apm agent. EPSS 0.2% chance of exploitation in the next 30 days. Fixed in elastic-apm 1.27.0.

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

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% chance of exploitation in the next 30 days; higher than 11% of CVEs (scores of 2026-10-31)
CWE
CWE-269
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-r562-m862-63w3PyPIelastic-apm>=1.10.0 <1.27.01.27.0
PYSEC-2026-634PyPIelastic-apm>=1.10.0 <1.27.01.27.0

References

Check your stackJSON