golang-1.18: Command go env is documented as outputting a shell script containing the Go environment
CVE-2023-24531 is fixed in 6 products on 1 platform, first by golang-1.17 1.17.13-3ubuntu1.2, released July 2, 2024. It is not reported as exploited. Patch Radar priority: Routine.
Command 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.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| golang-1.17 · Ubuntu 22.04.1 LTS (jammy) | 1.17.13-3ubuntu1.2 | golang-1.17 1.17.13-3ubuntu1.2 | Jul 2, 2024 |
| golang-1.17-go · Ubuntu 22.04.1 LTS (jammy) | 1.17.13-3ubuntu1.2 | golang-1.17-go 1.17.13-3ubuntu1.2 | Jul 2, 2024 |
| golang-1.17-src · Ubuntu 22.04.1 LTS (jammy) | 1.17.13-3ubuntu1.2 | golang-1.17-src 1.17.13-3ubuntu1.2 | Jul 2, 2024 |
| golang-1.18 · Ubuntu 18.04.6 LTS (bionic) | 1.18.1-1ubuntu1~18.04.4+esm1 | golang-1.18 1.18.1-1ubuntu1~18.04.4+esm1 | Sep 6, 2024 |
| golang-1.18 · Ubuntu 20.04 LTS (focal) | 1.18.1-1ubuntu1~20.04.3 | golang-1.18 1.18.1-1ubuntu1~20.04.3 | Sep 6, 2024 |
| golang-1.18 · Ubuntu 22.04.1 LTS (jammy) | 1.18.1-1ubuntu1.2 | golang-1.18 1.18.1-1ubuntu1.2 | Sep 6, 2024 |
| golang-1.18-go · Ubuntu 18.04.6 LTS (bionic) | 1.18.1-1ubuntu1~18.04.4+esm1 | golang-1.18-go 1.18.1-1ubuntu1~18.04.4+esm1 | Sep 6, 2024 |
| golang-1.18-go · Ubuntu 20.04 LTS (focal) | 1.18.1-1ubuntu1~20.04.3 | golang-1.18-go 1.18.1-1ubuntu1~20.04.3 | Sep 6, 2024 |
| golang-1.18-go · Ubuntu 22.04.1 LTS (jammy) | 1.18.1-1ubuntu1.2 | golang-1.18-go 1.18.1-1ubuntu1.2 | Sep 6, 2024 |
| golang-1.18-src · Ubuntu 18.04.6 LTS (bionic) | 1.18.1-1ubuntu1~18.04.4+esm1 | golang-1.18-src 1.18.1-1ubuntu1~18.04.4+esm1 | Sep 6, 2024 |
| golang-1.18-src · Ubuntu 20.04 LTS (focal) | 1.18.1-1ubuntu1~20.04.3 | golang-1.18-src 1.18.1-1ubuntu1~20.04.3 | Sep 6, 2024 |
| golang-1.18-src · Ubuntu 22.04.1 LTS (jammy) | 1.18.1-1ubuntu1.2 | golang-1.18-src 1.18.1-1ubuntu1.2 | Sep 6, 2024 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.