CVE-2021-37941

High

Description

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

SeverityHigh
CVSS7.8
Exploit probability—
ProductElastic Apm Agent
PublishedDec 8, 2021
First seenDec 8, 2021

How to fix

Update
  • elastic-apm1.27.0 or later

Affected products

ProductAffected versionsFixed in
elastic apm_agent1.10.0 ≤ v ≤ 1.26.0—
elastic-apmPyPI1.10.0 ≤ v < 1.27.01.27.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2021-37941 · Elastic Apm Agent · Dark Radar