CVE-2024-23448: Github.com/elastic/apm server APM Server Vulnerable To Insertion Vulnerability

HIGH
Advisory Identifier: GHSA-8r33-q5j5-rh7g
CVSS 5.7
CWE-532
Published
Advisory Summary

CVE-2024-23448 is a HIGH (CVSS 5.7) apm server vulnerable to insertion vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Github.com/elastic/apm server libraries in the Go ecosystem. The issue involves apm server vulnerable to insertion of sensitive information into log file. Remediation is available by upgrading affected packages to version 8.12.1.

CVE-2024-23448 at a Glance

CVE Identifier CVE-2024-23448
GHSA Identifier GHSA-8r33-q5j5-rh7g
Severity HIGH
CVSS v3.1 Base Score 5.7
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Github.com/elastic/apm server
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-23448

To remediate this vulnerability, upgrade all affected Github.com/elastic/apm server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/elastic/apm-server fixed: 8.12.1
Upgrade github.com/elastic/apm-server to 8.12.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/elastic/apm-server

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-23448, inspect your project dependencies for Github.com/elastic/apm server:

inspect dependencies for github.com/elastic/apm-server

Analyze the terminal output to locate any version of Github.com/elastic/apm server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.12.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Github.com/elastic/apm server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An issue was discovered whereby APM Server could log at ERROR level, a response from Elasticsearch indicating that indexing the document failed and that response would contain parts of the original document. Depending on the nature of the document that the APM Server attempted to ingest, this could lead to the insertion of sensitive or private information in the APM Server logs.

CVE-2024-23448 Affected Github.com/elastic/apm server Versions

1 component(s)
Fixed Versions:
8.12.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/elastic/apm-server
Go
< 8.12.1
8.12.1

References

Frequently Asked Questions

What is CVE-2024-23448?
CVE-2024-23448 is a security vulnerability in Github.com/elastic/apm server involving APM Server vulnerable to Insertion of Sensitive Information into Log File under CWE-532: Insertion of Sensitive Information into Log File.
Which Github.com/elastic/apm server versions are affected?
Affected versions include releases prior to 8.12.1 across affected packages: github.com/elastic/apm-server.
What version fixes CVE-2024-23448?
Upgrading to 8.12.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/elastic/apm-server affected?
Yes, github.com/elastic/apm-server is affected in releases prior to 8.12.1. Upgrade your dependency to 8.12.1 or later.
What is the CVSS score of CVE-2024-23448?
CVE-2024-23448 has a CVSS v3.1 base score of 5.7 (HIGH) with vector string CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-23448?
CVE-2024-23448 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Go dependencies for CVE-2024-23448?
Run the dependency tree command: 'inspect dependencies for github.com/elastic/apm-server'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8r33-q5j5-rh7g",
  "modified" : "2024-11-18T16:26:36Z",
  "published" : "2024-02-08T00:32:19Z",
  "aliases" : [ "CVE-2024-23448" ],
  "summary" : "APM Server vulnerable to Insertion of Sensitive Information into Log File",
  "details" : "An issue was discovered whereby APM Server could log at ERROR level, a response from Elasticsearch indicating that indexing the document failed and that response would contain parts of the original document. Depending on the nature of the document that the APM Server attempted to ingest, this could lead to the insertion of sensitive or private information in the APM Server logs.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/elastic/apm-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.12.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23448"
  }, {
    "type" : "WEB",
    "url" : "https://discuss.elastic.co/t/apm-server-8-12-1-security-update-esa-2024-03/352688"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/elastic/apm-server"
  }, {
    "type" : "WEB",
    "url" : "https://www.elastic.co/community/security"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-16T23:18:07Z",
    "nvd_published_at" : "2024-02-07T22:15:09Z"
  }
}