CVE-2012-2666CWE-377

golang/go in 1.0.2 fixes all.bash on shared machines

published July 9, 2021

CVSS
—
EPSS
2%
Percentile
79.9
In the wild
Unconfirmed
What it is

⚠️ A temporary file with a predictable name? This vulnerability comes straight out of a security-themed sitcom! Think of it as using a sticky note with your password on your computer screen. Anyone glancing at the right spot can take advantage of that little error and run wild! An attacker could potentially execute arbitrary commands on a shared machine simply by exploiting this flaw. With the wrong hands on the keyboard, it could mean unauthorized access to sensitive data or even complete control of the environment. That's a drama no one wants to star in!

Put simply

Think of it as using a sticky note with your password on your computer screen. Anyone glancing at the right spot can take advantage of that little error and run wild! This vulnerability arises from a predictable temporary file name created by the `dotest()` function in `pclntab_test.go`. When executed, it runs as a shell script, allowing attackers to inject and execute their own malicious code if they can interfere with the execution context.

What to do

An attacker could potentially execute arbitrary commands on a shared machine simply by exploiting this flaw. With the wrong hands on the keyboard, it could mean unauthorized access to sensitive data or even complete control of the environment. That's a drama no one wants to star in! Update to the latest version of Go, as the fix is included in version 1.0.2. It's important to review your shared environment's file handling and ensure proper permissions are set to avoid such predictable patterns. 🛡️ You've got this! Stay vigilant and keep your systems secure! 🚀

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01935 · 79.9th percentile
Weakness
CWE-377 · Insecure Temporary File
Published
2021-07-09T10:50Z
EPSS history
Timeline
  • 09 JUL 10:50Z
    golang/go in 1.0.2 fixes all.bash on shared machines
    cvelistv5