{"cve":"CVE-2021-37941","nvd":{"published":"2021-12-08T22:15:08.677","modified":"2026-06-17T04:01:17.607","status":"Modified","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","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-269"],"references":["https://discuss.elastic.co/t/apm-java-agent-security-update/289627","https://discuss.elastic.co/t/apm-java-agent-security-update/289627"],"products":["elastic:apm_agent"],"source":"nvd","synced_at":"2026-10-19T21:25:41.256909649+00:00"},"epss":{"cve":"CVE-2021-37941","score":0.00214,"percentile":0.11821,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-r562-m862-63w3","url":"https://osv.dev/vulnerability/GHSA-r562-m862-63w3","summary":"APM Java Agent Local Privilege Escalation","modified":"2026-07-06T08:11:23.942614930Z","packages":[{"ecosystem":"PyPI","name":"elastic-apm","purl":"pkg:pypi/elastic-apm","ranges":[">=1.10.0 <1.27.0"],"fixed":["1.27.0"]}]},{"id":"PYSEC-2026-634","url":"https://osv.dev/vulnerability/PYSEC-2026-634","summary":"APM Java Agent Local Privilege Escalation","modified":"2026-07-06T08:00:38.208150748Z","packages":[{"ecosystem":"PyPI","name":"elastic-apm","purl":"pkg:pypi/elastic-apm","ranges":[">=1.10.0 <1.27.0"],"fixed":["1.27.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}