CVE-2014-125026: Github.com/cloudflare/golz4 LZ4 Vulnerable To Out-of-bounds Write Vulnerability

CRITICAL
Advisory Identifier: GHSA-4wp2-8rm2-jgmh
CVSS 9.8
CWE-787
Published
Advisory Summary

CVE-2014-125026 is a CRITICAL (CVSS 9.8) lz4 vulnerable to out-of-bounds write vulnerability (CWE-787: Out-of-bounds Write) affecting Github.com/cloudflare/golz4 libraries in the Go ecosystem. The issue involves lz4 vulnerable to out-of-bounds write. Remediation is available by upgrading affected packages to version 0.0.0-20140711154735-199f5f787806.

CVE-2014-125026 at a Glance

CVE Identifier CVE-2014-125026
GHSA Identifier GHSA-4wp2-8rm2-jgmh
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-787: Out-of-bounds Write
Affected Product Github.com/cloudflare/golz4
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

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

How to Fix CVE-2014-125026

To remediate this vulnerability, upgrade all affected Github.com/cloudflare/golz4 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/cloudflare/golz4 fixed: 0.0.0-20140711154735-199f5f787806
Upgrade github.com/cloudflare/golz4 to 0.0.0-20140711154735-199f5f787806
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/cloudflare/golz4

How to Check if You Are Affected

To determine whether your application is affected by CVE-2014-125026, inspect your project dependencies for Github.com/cloudflare/golz4:

inspect dependencies for github.com/cloudflare/golz4

Analyze the terminal output to locate any version of Github.com/cloudflare/golz4 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20140711154735-199f5f787806), 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-787: Out-of-bounds Write, where the product writes data past the end, or before the beginning, of the intended buffer. In Github.com/cloudflare/golz4, 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

LZ4 bindings use a deprecated C API that is vulnerable to memory corruption, which could lead to arbitrary code execution if called with untrusted user input.

CVE-2014-125026 Affected Github.com/cloudflare/golz4 Versions

1 component(s)
Fixed Versions:
0.0.0-20140711154735-199f5f787806
Product / Package Ecosystem Affected Versions Fixed Version
github.com/cloudflare/golz4
Go
< 0.0.0-20140711154735-199f5f787806
0.0.0-20140711154735-199f5f787806

References

Frequently Asked Questions

What is CVE-2014-125026?
CVE-2014-125026 is a security vulnerability in Github.com/cloudflare/golz4 involving LZ4 vulnerable to Out-of-bounds Write under CWE-787: Out-of-bounds Write.
Which Github.com/cloudflare/golz4 versions are affected?
Affected versions include releases prior to 0.0.0-20140711154735-199f5f787806 across affected packages: github.com/cloudflare/golz4.
What version fixes CVE-2014-125026?
Upgrading to 0.0.0-20140711154735-199f5f787806 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/cloudflare/golz4 affected?
Yes, github.com/cloudflare/golz4 is affected in releases prior to 0.0.0-20140711154735-199f5f787806. Upgrade your dependency to 0.0.0-20140711154735-199f5f787806 or later.
What is the CVSS score of CVE-2014-125026?
CVE-2014-125026 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2014-125026?
CVE-2014-125026 is classified under CWE-787: Out-of-bounds Write (The product writes data past the end, or before the beginning, of the intended buffer.).
How can I check Go dependencies for CVE-2014-125026?
Run the dependency tree command: 'inspect dependencies for github.com/cloudflare/golz4'. 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-4wp2-8rm2-jgmh",
  "modified" : "2024-05-20T19:43:07Z",
  "published" : "2022-12-28T00:30:23Z",
  "aliases" : [ "CVE-2014-125026" ],
  "summary" : "LZ4 vulnerable to Out-of-bounds Write",
  "details" : "LZ4 bindings use a deprecated C API that is vulnerable to memory corruption, which could lead to arbitrary code execution if called with untrusted user input.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cloudflare/golz4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20140711154735-199f5f787806"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-125026"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudflare/golz4/issues/5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudflare/golz4/commit/199f5f7878062ca17a98e079f2dbe1205e2ed898"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cloudflare/golz4"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2020-0022"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-787" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-09T21:49:10Z",
    "nvd_published_at" : "2022-12-27T22:15:00Z"
  }
}