Description
The go command may generate unexpected code at build time when using cgo. This may result in unexpected behavior when running a go program which uses cgo. This may occur when running an untrusted module which contains directories with newline characters in their names. Modules which are retrieved using the go command, i.e. via "go get", are not affected (modules retrieved using GOPATH-mode, i.e. GO111MODULE=off, may be affected).
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Go toolchain | cmd/go | < 1.19.10, 1.20.0-0 – < 1.20.5 | 1.19.10 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | golang-1.19 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | golang-1.17 | 1.17.13-3ubuntu1.2 | USN-7061-1 |
| Ubuntu 22.04 LTS | golang-1.18 | 1.18.1-1ubuntu1.2 | USN-7109-1 |
| Ubuntu 22.04 LTS | golang-1.20 | No fix yet | — |
| Ubuntu 20.04 LTS | golang-1.13 +2 | No fix yet | — |
| Ubuntu 20.04 LTS | golang-1.18 | 1.18.1-1ubuntu1~20.04.3 | USN-7109-1 |
| Ubuntu 18.04 LTS | golang-1.8 +2 | No fix yet | — |
| Ubuntu 16.04 LTS | golang-1.6 +1 | No fix yet | — |
| Ubuntu 14.04 LTS | golang-1.10 | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | golang-1.13 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | golang-1.16 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | golang-1.13 +1 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | golang-1.18 | 1.18.1-1ubuntu1~18.04.4+esm1 | USN-7109-1 |
| Ubuntu Pro 16.04 LTS | golang-1.13 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | golang-1.18 | 1.18.1-1ubuntu1~16.04.6+esm1 | USN-7109-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | golang +7 | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| RHEL 8 | delve | 1.9.1-1.module+el8.8.0+16778+5fbb74f5 | RHSA-2023:3922 |
| RHEL 8 | golang +7 | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Devtools 2023 | go-toolset-1.19 +10 | 1.19.10-1.el7_9 | RHSA-2023:3920 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | golang +7 | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux 8 | delve | 1.9.1-1.module_el8.8.0+3471+a62632a0 | ALSA-2023:3922 |
| AlmaLinux 8 | golang +7 | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | golang +1 | 1.19.10-1.el9_2 | RLSA-2023:3923 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | go1.19 | 1.19.10-150000.1.34.1 | SUSE-SU-2023:2525-1 |
| SLES 15 SP5 | go1.20 | 1.20.5-150000.1.14.1 | SUSE-SU-2023:2526-1 |
| SLES 15 SP4 | go1.19 | 1.19.10-150000.1.34.1 | SUSE-SU-2023:2525-1 |
| SLES 15 SP4 | go1.20 | 1.20.5-150000.1.14.1 | SUSE-SU-2023:2526-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLE Real Time 15 SP3 | go1.19 | 1.19.10-150000.1.34.1 | SUSE-SU-2023:2525-1 |
| SLE Real Time 15 SP3 | go1.20 | 1.20.5-150000.1.14.1 | SUSE-SU-2023:2526-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | go1.19 | 1.19.10-1.1 | openSUSE-SU-2024:12987-1 |
| openSUSE Tumbleweed | go1.20 | 1.20.5-1.1 | openSUSE-SU-2024:12988-1 |
| openSUSE Leap 15.5 | go1.19 | 1.19.10-150000.1.34.1 | SUSE-SU-2023:2525-1 |
| openSUSE Leap 15.5 | go1.20 | 1.20.5-150000.1.14.1 | SUSE-SU-2023:2526-1 |
| openSUSE Leap 15.4 | go1.19 | 1.19.10-150000.1.34.1 | SUSE-SU-2023:2525-1 |
| openSUSE Leap 15.4 | go1.20 | 1.20.5-150000.1.14.1 | SUSE-SU-2023:2526-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | go | 1.20.5-r0 | — |
| Alpine v3.23 | go | 1.20.5-r0 | — |
| Alpine v3.22 | go | 1.20.5-r0 | — |
| Alpine v3.21 | go | 1.20.5-r0 | — |
| Alpine v3.20 | go | 1.20.5-r0 | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | go | 1.20.5-r0 | — |
| Alpine v3.18 | go | 1.20.5-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | golang +6 | 1.20.5-1.amzn2023.0.2 | ALAS2023-2023-269 |
| Amazon Linux 2 | golang +7 | 1.18.9-1.amzn2.0.6 | ALAS2-2023-2131 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | golang | 1.22.7-2 | — |
| Azure Linux 2 (CBL-Mariner) | golang | 1.20.7-1 | — |
| Azure Linux 2 (CBL-Mariner) | msft-golang | 1.19.10-1 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | golang +7 | 1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux 8 | delve | 1.9.1-1.0.1.module+el8.8.0+20964+30a27755 | ELSA-2023-3922 |
| Oracle Linux 8 | go-toolset | 1.19.10-1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux 8 | golang +6 | 1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | katib-earlystopping +8 | 0.19.0-r31 | — |
| Wolfi rolling | katib-suggestion-goptuna-compat | 0.19.0-r40 | — |
| Wolfi rolling | kind | 0.21.0-r0 | — |
| Wolfi rolling | policy-controller | 0.7.0-r4 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | toolchain | < 1.19.10 · >= 1.20.0-0, < 1.20.5 | 1.19.10, 1.20.5 | GO-2023-1839 |
Advisories 23
- ALSA-2023:3923 Critical: go-toolset and golang security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2023:3922 Critical: go-toolset:rhel8 security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2024-0794 Dell ECS: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 11, 2026
- WID-SEC-2023-2917 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 30, 2026
- RHSA-2023:3920 Red Hat Security Advisory: go-toolset-1.19 and go-toolset-1.19-golang security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-7109-1 golang-1.18 vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-7061-1 golang-1.17 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- RHSA-2023:3923 Red Hat Security Advisory: go-toolset and golang security update Red Hat Security Advisories (RHSA) · Mar 23, 2026
- RHSA-2023:3922 Red Hat Security Advisory: go-toolset:rhel8 security update Red Hat Security Advisories (RHSA) · Mar 23, 2026
- RLSA-2023:3923 Critical: go-toolset and golang security update Rocky Linux Security Advisories · Feb 4, 2026
- openSUSE-SU-2024:12987-1 go1.19-1.19.10-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:2525-1 Security update for go1.19 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:2526-1 Security update for go1.20 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:12988-1 go1.20-1.20.5-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-2229 Splunk Splunk Enterprise: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 18, 2025
- WID-SEC-2023-1377 Golang Go: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 14, 2024
- NCSC-2024-0339 Kwetsbaarheden verholpen in Microsoft Mariner NCSC-NL (Netherlands) · Aug 13, 2024
- ICSA-24-046-11 Siemens SCALANCE XCM-/XRM-300 CISA ICS & IT advisories · Feb 13, 2024
- SSA-806742 SSA-806742: Multiple Vulnerabilities in SCALANCE XCM-/XRM-300 before V2.4 Siemens ProductCERT · Feb 13, 2024
- ALAS2023-2023-269 Important: golang security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jul 26, 2023
- ALAS2-2023-2131 Important: golang security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jul 19, 2023
- ELSA-2023-3923 Critical: go-toolset and golang security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jul 7, 2023
- ELSA-2023-3922 Critical: go-toolset:ol8 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Jul 4, 2023
References
- https://go.dev/issue/60167
- https://go.dev/cl/501226
- https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ
- https://pkg.go.dev/vuln/GO-2023-1839
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NZ2O6YCO2IZMZJELQGZYR2WAUNEDLYV6/
- https://security.gentoo.org/glsa/202311-09