GO-2022-0532
Dashboard / Vulnerabilities / GO-2022-0532
GO-2022-0532
Published: 26 Jul 2022Last Modified: 20 May 2024
Aliases:
Summary: Empty Cmd.Path can trigger unintended binary in os/exec on Windows
Details: On Windows, executing Cmd.Run, Cmd.Start, Cmd.Output, or Cmd.CombinedOutput when Cmd.Path is unset will unintentionally trigger execution of any binaries in the working directory named either "..com" or "..exe".
References: https://go.dev/cl/403759, https://go.googlesource.com/go/+/960ffa98ce73ef2c2060c84c7ac28d37a83f345e, https://go.dev/issue/52574, https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ
Affected packages
Package
Name: stdlib
Purl: pkg:golang/stdlib
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.17.11
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
