Arbitrary Code Execution Affecting github.com/cloudflare/golz4 Open this link in a new tab package, versions <0.0.0-20150217214814-ef862a3cdc58
Attack Complexity
Low
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
Introduced: 11 Jul 2014
CWE-94 Open this link in a new tabHow 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()
.