Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. co.elastic.apm/apm-agent-parent
  4. ›
  5. CVE-2021-37942

CVE-2021-37942: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

November 22, 2023

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.

References

  • discuss.elastic.co/t/apm-java-agent-security-update/291355
  • github.com/advisories/GHSA-5xqm-hc45-f2g2
  • nvd.nist.gov/vuln/detail/CVE-2021-37942
  • www.elastic.co/community/security

Code Behaviors & Features

Detect and mitigate CVE-2021-37942 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.18.0 before 1.27.1

Fixed versions

  • 1.27.1

Solution

Upgrade to version 1.27.1 or above.

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

maven/co.elastic.apm/apm-agent-parent/CVE-2021-37942.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:03 +0000.