Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-37942

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-37942
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 07:44 UTC · Revision 1

Source evidence

CVE-2021-37942

core-osv · Original source

Published 22 Nov 2023, 02:15 UTC

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.

osv:CVE-2021-37942
Complete source record
{
  "id": "b4f4e0599f9d79253aa0a1ec46f2a4464cd03a002d19c1eda475002aa409cebd",
  "url": "https://osv.dev/vulnerability/CVE-2021-37942",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-37942",
    "summary": "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.",
    "evidence": "osv:CVE-2021-37942",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-37942",
      "aliases": [
        "CVE-2021-37942",
        "GHSA-5xqm-hc45-f2g2"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/elastic/apm-agent-java",
              "type": "GIT",
              "events": [
                {
                  "introduced": "11313a510b8783147a100306efc1e915ef8d9ff1"
                },
                {
                  "last_affected": "eba15c19a61de14ffb104343c4e836e7a0f15f0d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:elastic:apm_java_agent:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.18.0"
                      },
                      {
                        "last_affected": "1.27.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.27.0",
            "v1.26.0",
            "v1.25.0",
            "v1.24.0",
            "v1.23.0",
            "stable",
            "v1.22.0",
            "v1.21.0",
            "v1.20.0",
            "v1.19.0",
            "v1.18.1",
            "v1.18.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37942.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:57.641128113Z",
      "provider": "osv",
      "references": [
        "https://www.elastic.co/community/security",
        "https://discuss.elastic.co/t/apm-java-agent-security-update/291355"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-37942",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 438905,
  "published_at": "2023-11-22T02:15:42.22+00:00"
}