CVE-2016-3958 Privilege escalation in n/a
Local attackers can escalate privileges by placing a malicious DLL in the working directory, affecting Go developers on Windows.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-3958?
CVE-2016-3958 is a high-severity vulnerability in Golang Go, published on 23 May 2016. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Untrusted search path vulnerability in Go before 1.5.4 and 1.6.x before 1.6.1 on Windows allows local users to gain privileges via a Trojan horse DLL in the current working directory, related to use of the LoadLibrary function.
Weakness: CWE-264
Which versions are affected by CVE-2016-3958?
1 open source package ship an affected version, including stdlib. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
stdlib Go | All versions | 1.5.4, 1.6.1 |
Products include Golang Go.
How do I fix CVE-2016-3958?
Upgrade stdlib to a fixed version for your release line: 1.5.4 or 1.6.1.
Is CVE-2016-3958 being exploited?
There is no known exploitation of CVE-2016-3958 in the wild and no public exploit code.
Other vulnerabilities in Golang Go
- CVE-2020-0601 Microsoft Windows CryptoAPI Spoofing
- CVE-2026-27143 Missing bound checks can lead to memory corruption in safe Go in cmd/compile
- CVE-2024-24790 Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses in net/netip
- CVE-2023-39320 Arbitrary code execution via go.mod toolchain directive in cmd/go
- CVE-2023-24540 Improper handling of JavaScript whitespace in html/template
Sources
Also known as GHSA-8w8c-fgc5-6f3r, GO-2021-0163.