CVE-2023-24531

NameCVE-2023-24531
DescriptionCommand go env is documented as outputting a shell script containing the Go environment. However, go env doesn't sanitize values, so executing its output as a shell script can cause various bad bahaviors, including executing arbitrary commands or inserting new environment variables. This issue is relatively minor because, in general, if an attacker can set arbitrary environment variables on a system, they have better attack vectors than making "go env" print them out.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-1.11 (PTS)buster (security), buster, buster (lts)1.11.6-1+deb10u7vulnerable
golang-1.15 (PTS)bullseye1.15.15-1~deb11u4vulnerable
golang-1.19 (PTS)bookworm1.19.8-2vulnerable
golang-1.7 (PTS)stretch (security), stretch (lts), stretch1.7.4-2+deb9u5vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-1.11source(unstable)(unfixed)
golang-1.15source(unstable)(unfixed)
golang-1.19source(unstable)(unfixed)
golang-1.21unknown(unstable)(not affected)
golang-1.7source(unstable)(unfixed)

Notes

- golang-1.21 <not-affected> (Fixed with initial upload to Debian unstable)
[bookworm] - golang-1.19 <no-dsa> (Minor issue)
[bullseye] - golang-1.15 <no-dsa> (Minor issue)
https://github.com/golang/go/issues/58508
https://github.com/golang/go/commit/f379e78951a405e7e99a60fb231eeedbf976c108 (go1.21rc1)
https://github.com/golang/go/commit/05cc9e55876874462a4726ca0101c970838c80e5 (go1.21rc1)
[buster] - golang-1.11 <postponed> (Limited support, follow DLAs)
[stretch] - golang-1.7 <postponed> (Limited support, follow DLAs)

Search for package or bug name: Reporting problems