CVE-2012-2666 Other in go/golang
An attacker on a shared machine could execute arbitrary code by exploiting a predictable temporary file name in the Go test suite.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2012-2666?
CVE-2012-2666 is a critical vulnerability in Golang Go, published on 9 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
golang/go in 1.0.2 fixes all.bash on shared machines. dotest() in src/pkg/debug/gosym/pclntab_test.go creates a temporary file with predicable name and executes it as shell script.
Weakness: CWE-377
Which versions are affected by CVE-2012-2666?
It affects 1 product.
Products include Golang Go.
How do I fix CVE-2012-2666?
No fix has been published for CVE-2012-2666 yet. Limit exposure of the affected software until one is available.
Is CVE-2012-2666 being exploited?
There is no known exploitation of CVE-2012-2666 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-259v-fw35-w989.