Description
Go before 1.14.8 and 1.15.x before 1.15.1 allows XSS because text/html is the default for CGI/FCGI handlers that lack a Content-Type header.
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 11 | golang-1.15 | 1.15.2-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | golang-1.13 | No fix yet | — |
| Ubuntu 20.04 LTS | golang-1.14 | 1.14.3-2ubuntu2~20.04.2 | USN-4758-1 |
| Ubuntu 18.04 LTS | golang-1.10 | 1.10.4-2ubuntu1~18.04.2 | USN-4758-1 |
| Ubuntu 18.04 LTS | golang-1.8 +1 | No fix yet | — |
| Ubuntu 16.04 LTS | golang-1.10 | 1.10.4-2ubuntu1~16.04.2 | USN-4758-1 |
| Ubuntu 16.04 LTS | golang-1.6 | No fix yet | — |
| Ubuntu 14.04 LTS | golang-1.10 | No fix yet | — |
Show 3 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 18.04 LTS | golang-1.13 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | golang-1.13 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | delve | 1.4.1-1.module+el8.3.0+7840+63dfb1ed | RHSA-2020:5493 |
| RHEL 8 | golang +7 | 1.14.12-1.module+el8.3.0+8784+380394dc | RHSA-2020:5493 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Serverless 1 | openshift-serverless-clients | 0.18.4-2.el8 | RHSA-2021:0145 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP2 | go1.14 | 1.14.9-1.18.1 | SUSE-SU-2020:2761-1 |
| SLES 15 SP2 | go1.15 | 1.15.2-1.3.1 | SUSE-SU-2020:2776-1 |
| SLES 15 SP1 | go1.14 | 1.14.9-1.18.1 | SUSE-SU-2020:2761-1 |
| SLES 15 SP1 | go1.15 | 1.15.2-1.3.1 | SUSE-SU-2020:2776-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | go1.14 | 1.14.15-1.6 | openSUSE-SU-2024:10807-1 |
| openSUSE Tumbleweed | go1.15 | 1.15.15-1.2 | openSUSE-SU-2024:10808-1 |
| openSUSE Leap 15.2 | go1.14 | 1.14.9-lp152.2.6.1 | openSUSE-SU-2020:1587-1 |
| openSUSE Leap 15.1 | go1.14 | 1.14.9-lp151.16.1 | openSUSE-SU-2020:1584-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | go | 1.15.2-r0 | — |
| Alpine v3.23 | go | 1.15.2-r0 | — |
| Alpine v3.22 | go | 1.15.2-r0 | — |
| Alpine v3.21 | go | 1.15.2-r0 | — |
| Alpine v3.20 | go | 1.15.2-r0 | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | go | 1.15.2-r0 | — |
| Alpine v3.18 | go | 1.15.2-r0 | — |
| Alpine v3.17 | go | 1.15.2-r0 | — |
| Alpine v3.16 | go | 1.15.2-r0 | — |
| Alpine v3.15 | go | 1.15.2-r0 | — |
| Alpine v3.14 | go | 1.15.2-r0 | — |
| Alpine v3.13 | go | 1.15.2-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | golang +6 | 1.15.3-1.amzn2.0.1 | ALAS2-2020-1554 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | golang | No fix yet | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | delve | 1.4.1-1.0.1.module+el8.3.0+7887+1b2c3dab | ELSA-2020-5493 |
| Oracle Linux 8 | golang +7 | 1.14.12-1.module+el8.3.0+7887+1b2c3dab | ELSA-2020-5493 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | stdlib | < 1.14.8 · >= 1.15.0-0, < 1.15.1 | 1.14.8, 1.15.1 | GO-2021-0226 |
Advisories 12
- RHSA-2021:0145 Red Hat Security Advisory: Red Hat OpenShift Serverless Client kn 1.12.0 Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2020:5493 Red Hat Security Advisory: go-toolset:rhel8 security update Red Hat Security Advisories (RHSA) · Oct 13, 2026
- USN-4758-1 golang-1.10, golang-1.14 vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- openSUSE-SU-2020:1587-1 Security update for go1.14 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:1584-1 Security update for go1.14 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:2776-1 Security update for go1.15 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:2761-1 Security update for go1.14 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10808-1 go1.15-1.15.15-1.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10807-1 go1.14-1.14.15-1.6 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-1599 IBM Security Guardium: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 29, 2023
- ELSA-2020-5493 Moderate: go-toolset:ol8 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Dec 22, 2020
- ALAS2-2020-1554 Moderate: golang security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Nov 11, 2020
References
- 20200902 [RT-SA-2020-004] Inconsistent Behavior of Go's CGI and FastCGI Transport May Lead to Cross-Site Scripting mailing-list
- FEDORA-2020-741cfa13d0 vendor-advisory
- openSUSE-SU-2020:1584 vendor-advisory
- openSUSE-SU-2020:1587 vendor-advisory
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://groups.google.com/forum/#%21topic/golang-announce/8wqlSbkLdPs
- http://packetstormsecurity.com/files/159049/Go-CGI-FastCGI-Transport-Cross-Site-Scripting.html
- https://security.netapp.com/advisory/ntap-20200924-0003/
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.redteam-pentesting.de/advisories/rt-sa-2020-004