{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-37942","id":"CVE-2021-37942","title":"APM Java Agent Local Privilege Escalation","description":"A local privilege escalation issue was found with the APM Java agent, where a user on the system could attach a malicious plugin to an application running the APM Java agent. By using this vulnerability, an attacker could execute code at a potentially higher level of permissions than their user typically has access to.","descriptionLong":"A local privilege escalation issue was found with the APM Java agent, where a user on the system could attach a malicious plugin to an application running the APM Java agent. By using this vulnerability, an attacker could execute code at a potentially higher level of permissions than their user typically has access to.","published":"2023-11-22T01:33:48.984Z","updated":"2026-10-24T10:30:57.641128113Z","reserved":"2021-08-03T20:49:52.462Z","status":"Modified","rejected":false,"assigner":"elastic","metric":{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"elastic"},"metrics":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"elastic"},{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"elastic.co"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["Elastic APM Java Agent"],"affectedProducts":[{"vendor":"Elastic","product":"Elastic APM Java Agent","defaultStatus":"unaffected","versions":[{"lessThan":"1.27.0","status":"affected","version":"1.18.0","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"co.elastic.apm:apm-agent-parent","purl":"pkg:maven/co.elastic.apm/apm-agent-parent","ranges":[">=1.18.0 <1.27.1"],"fixed":["1.27.1"],"advisory":"GHSA-5xqm-hc45-f2g2"},{"ecosystem":"Maven","name":"co.elastic.apm:elastic-apm-agent","purl":"pkg:maven/co.elastic.apm/elastic-apm-agent","ranges":[">=1.18.0 <1.27.1"],"fixed":["1.27.1"],"advisory":"GHSA-5xqm-hc45-f2g2"}],"cwes":["CWE-269"],"aliases":["GHSA-5xqm-hc45-f2g2"],"references":[{"url":"https://discuss.elastic.co/t/apm-java-agent-security-update/291355","tags":["x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://www.elastic.co/community/security","tags":["x_transferred","Product","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37942","tags":["advisory"]},{"url":"https://github.com/elastic/apm-agent-java","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00249,"epssPercentile":0.16537,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-37942","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37942","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-37942","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-5xqm-hc45-f2g2","ok":true,"note":"GHSA-5xqm-hc45-f2g2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-37942","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}