github.com/golang/go is vulnerable to Privilege Escalation. The vulnerability exists due to the unsanitized NULL values in the Start
function of exec.go
, allowing an attacker to maliciously set environment variables on windows. For example, the environment variable string A=B\x00C=D
sets the variables A=B
and C=D
.
github.com/golang/go/commit/2a7adf4ccde9734becf41acf8274d1a190f2ec64
github.com/golang/go/commit/aba57b07721cac39b4b7cf70f8dfbf9e2e299187
github.com/golang/go/issues/56284
go-review.googlesource.com/c/go/+/446916
go.dev/cl/446916
go.dev/issue/56284
groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ
pkg.go.dev/vuln/GO-2022-1095