Arbitrary Code Execution Affecting github.com/cloudflare/golz4 package, versions <0.0.0-20150217214814-ef862a3cdc58


0.0
high

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    EPSS 0.21% (59th percentile)
Expand this section
NVD
9.8 critical

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMCLOUDFLAREGOLZ4-50050
  • published 1 Oct 2017
  • disclosed 11 Jul 2014
  • credit Don A. Bailey

How to fix?

Upgrade github.com/cloudflare/golz4 to version 0.0.0-20150217214814-ef862a3cdc58 or higher.

Overview

github.com/cloudflare/golz4 is a Golang interface to LZ4 compression.

Affected versions of this package are vulnerable to Arbitrary Code Execution. Vulnerable versions of the library used the obsolete native LZ4_uncompress() function possibly leading to memory corruption resulting in arbitrary code execution in case of successful exploitation. The fix made sure to use the safe version of the function called LZ4_decompress_safe().