CVE-2014-125026 Out-of-bounds write in github.com/cloudflare/golz4
An out-of-bounds write in the Go LZ4 bindings allows arbitrary code execution when processing untrusted input.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2014-125026?
CVE-2014-125026 is a critical memory corruption vulnerability in github.com/cloudflare/golz4, published on 27 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-787
Which versions are affected by CVE-2014-125026?
3 open source packages ship an affected version, including github.com/cloudflare/golz4. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/cloudflare/golz4 Go | All versions | 0.0.0-20140711154735-199f5f787806 |
github.com/cloudflare/golz4 Go | All versions | 0.0.0-20140711154735-199f5f787806 |
github.com/cloudflare/golz4 Go | All versions | 0.0.0-20140711154735-199f5f787806 |
Products include Cloudflare Golz4.
How do I fix CVE-2014-125026?
Upgrade github.com/cloudflare/golz4 to 0.0.0-20140711154735-199f5f787806 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2014-125026 being exploited?
There is no known exploitation of CVE-2014-125026 in the wild and no public exploit code.
Sources
Also known as GHSA-4wp2-8rm2-jgmh, GO-2020-0022.