CVE-2025-68383: Github.com/elastic/beats/v7 Filebeat Beats Has Buffer Overflow Vulnerability

MODERATE
Advisory Identifier: GHSA-2mj3-6grc-px38
CVSS 6.5
CWE-120 CWE-1284
Published
Advisory Summary

CVE-2025-68383 is a MODERATE (CVSS 6.5) filebeat beats has buffer overflow vulnerability (CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')) affecting Github.com/elastic/beats/v7 libraries in the Go ecosystem. The issue involves filebeat beats has buffer overflow via malformed syslog message or malicious tokenizer pattern in dissect configuration. Remediation is available by upgrading affected packages to version 8.19.9, 9.1.9, 9.2.3, 7.0.0-alpha2.0.20251204214633-dd3af18220bf.

CVE-2025-68383 at a Glance

CVE Identifier CVE-2025-68383
GHSA Identifier GHSA-2mj3-6grc-px38
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Affected Product Github.com/elastic/beats/v7
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2025-68383

To remediate this vulnerability, upgrade all affected Github.com/elastic/beats/v7 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/beats/v7 fixed: 8.19.9
Upgrade github.com/elastic/beats/v7 to 8.19.9
github.com/elastic/beats/v7 fixed: 9.1.9
Upgrade github.com/elastic/beats/v7 to 9.1.9
github.com/elastic/beats/v7 fixed: 9.2.3
Upgrade github.com/elastic/beats/v7 to 9.2.3
github.com/elastic/beats/v7 fixed: 7.0.0-alpha2.0.20251204214633-dd3af18220bf
Upgrade github.com/elastic/beats/v7 to 7.0.0-alpha2.0.20251204214633-dd3af18220bf
github.com/elastic/beats fixed: Latest secure release
Upgrade github.com/elastic/beats to Latest secure release
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/beats/v7

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-68383, inspect your project dependencies for Github.com/elastic/beats/v7:

inspect dependencies for github.com/elastic/beats/v7

Analyze the terminal output to locate any version of Github.com/elastic/beats/v7 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.19.9), 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-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'), where the product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer. In Github.com/elastic/beats/v7, 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

Improper Validation of Specified Index, Position, or Offset in Input (CWE-1285) in Filebeat Syslog parser and the Libbeat Dissect processor can allow a user to trigger a Buffer Overflow (CAPEC-100) and cause a denial of service (panic/crash) of the Filebeat process via either a malformed Syslog message or a malicious tokenizer pattern in the Dissect configuration.

CVE-2025-68383 Affected Github.com/elastic/beats/v7 Versions

5 component(s)
Fixed Versions:
8.19.99.1.99.2.37.0.0-alpha2.0.20251204214633-dd3af18220bf
Product / Package Ecosystem Affected Versions Fixed Version
github.com/elastic/beats/v7
Go
≥ 7.7.0
< 8.19.9
8.19.9
github.com/elastic/beats/v7
Go
≥ 9.0.0
< 9.1.9
9.1.9
github.com/elastic/beats/v7
Go
≥ 9.2.0
< 9.2.3
9.2.3
github.com/elastic/beats/v7
Go
< 7.0.0-alpha2.0.20251204214633-dd3af18220bf
7.0.0-alpha2.0.20251204214633-dd3af18220bf
github.com/elastic/beats
Go
≤ 7.6.2

References

Frequently Asked Questions

What is CVE-2025-68383?
CVE-2025-68383 is a security vulnerability in Github.com/elastic/beats/v7 involving Filebeat Beats has Buffer Overflow via Malformed Syslog Message or Malicious Tokenizer Pattern in Dissect Configuration under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow').
Which Github.com/elastic/beats/v7 versions are affected?
Affected versions include releases prior to 8.19.9, 9.1.9, 9.2.3, 7.0.0-alpha2.0.20251204214633-dd3af18220bf across affected packages: github.com/elastic/beats/v7, github.com/elastic/beats.
What version fixes CVE-2025-68383?
Upgrading to 8.19.9, 9.1.9, 9.2.3, 7.0.0-alpha2.0.20251204214633-dd3af18220bf (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/elastic/beats/v7 affected?
Yes, github.com/elastic/beats/v7 is affected in releases prior to 8.19.9, 9.1.9, 9.2.3, 7.0.0-alpha2.0.20251204214633-dd3af18220bf. Upgrade your dependency to 8.19.9, 9.1.9, 9.2.3, 7.0.0-alpha2.0.20251204214633-dd3af18220bf or later.
Is github.com/elastic/beats affected?
Yes, github.com/elastic/beats is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-68383?
CVE-2025-68383 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2025-68383?
CVE-2025-68383 is classified under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') (The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.).
How can I check Go dependencies for CVE-2025-68383?
Run the dependency tree command: 'inspect dependencies for github.com/elastic/beats/v7'. 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-2mj3-6grc-px38",
  "modified" : "2025-12-19T21:04:09Z",
  "published" : "2025-12-19T00:31:42Z",
  "aliases" : [ "CVE-2025-68383" ],
  "summary" : "Filebeat Beats has Buffer Overflow via Malformed Syslog Message or Malicious Tokenizer Pattern in Dissect Configuration",
  "details" : "Improper Validation of Specified Index, Position, or Offset in Input (CWE-1285) in Filebeat Syslog parser and the Libbeat Dissect processor can allow a user to trigger a Buffer Overflow (CAPEC-100) and cause a denial of service (panic/crash) of the Filebeat process via either a malformed Syslog message or a malicious tokenizer pattern in the Dissect configuration.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/elastic/beats/v7"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.7.0"
      }, {
        "fixed" : "8.19.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/elastic/beats/v7"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.1.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/elastic/beats/v7"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.2.0"
      }, {
        "fixed" : "9.2.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/elastic/beats/v7"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.0.0-alpha2.0.20251204214633-dd3af18220bf"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/elastic/beats"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "7.6.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-68383"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/elastic/beats/commit/27a168fb1c598d4a16748e9a7382bc0d197335a5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/elastic/beats/commit/2f971a057eea68e057b47829950cd8c26805df30"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/elastic/beats/commit/339fa3f887a14c91e0c955b50a3b8819393bd632"
  }, {
    "type" : "WEB",
    "url" : "https://discuss.elastic.co/t/filebeat-8-19-9-9-1-9-and-9-2-3-security-update-esa-2025-32/384180"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/elastic/elasticsearch"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-120", "CWE-1284" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-19T21:04:09Z",
    "nvd_published_at" : "2025-12-18T22:16:02Z"
  }
}