CVE Vulnerabilities

CVE-2012-2666

Insecure Temporary File

Published: Jul 09, 2021 | Modified: Nov 21, 2024
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

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

Creating and using insecure temporary files can leave application and system data vulnerable to attack.

Affected Software

NameVendorStart VersionEnd Version
GoGolang1.0.2 (including)1.0.2 (including)
GolangUbuntutrusty*
GolangUbuntuupstream*
Golang-1.10Ubuntutrusty*
Golang-1.16Ubuntutrusty*
Golang-1.16Ubuntuxenial*
Golang-1.6Ubuntutrusty*

References