{"schemaVersion":3,"id":"CVE-2021-37941","aliases":["GHSA-r562-m862-63w3","PYSEC-2026-634"],"status":"published","duplicateOf":null,"title":null,"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","dates":{"published":"2021-12-08T21:15:19.000Z","modified":"2024-08-04T01:30:08.522Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.4,"severity":"medium","vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00214,"percentile":0.11124,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.006000000000000016,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00208},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00214,"percentile":0.11124}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00208,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00214,"percentile":0.11124}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-269","name":"Improper Privilege Management","description":"The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/269.html"}],"affected":[{"vendor":"elastic","product":"apm_agent","name":"apm agent","label":"apm_agent","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.10.0, ≤ 1.26.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.10.0, ≤ 1.26.0","eol":null,"hubHref":"/vendor/elastic/apm_agent"},{"vendor":"elastic","product":"apm_java_agent","name":"apm java agent","label":"apm_java_agent","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.10.0 through 1.26.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.10.0 through 1.26.0","eol":null,"hubHref":"/vendor/elastic/apm_java_agent"},{"vendor":"PyPI","product":"elastic-apm","name":"elastic-apm","label":"elastic-apm","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/elastic-apm","purlType":"pypi","versions":[{"text":"≥ 1.10.0, < 1.27.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.10.0, < 1.27.0","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://discuss.elastic.co/t/apm-java-agent-security-update/289627","label":"discuss.elastic.co/t/apm-java-agent-security-update/289627","hostname":"discuss.elastic.co","tags":["X Refsource MISC","WEB","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37941","label":"nvd.nist.gov/vuln/detail/CVE-2021-37941","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/elastic/apm-agent-python","label":"github.com/elastic/apm-agent-python","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pypi.org/project/elastic-apm","label":"pypi.org/project/elastic-apm","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-r562-m862-63w3","label":"github.com/advisories/GHSA-r562-m862-63w3","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-12-08T21:15:19.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T01:30:08.522Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T17:23:07.337Z","stale":false,"partial":false}}