CVE-2020-24553: XSS

Published Aug 1, 2020
·
Updated

A flaw was found in the Go standard library packages before upstream versions 1.15 and 1.14.8. Both the net/http/cgi and net/http/fcgi packages use a default Content-Type response header value of "text/html", rather than "text/plain". This flaw allows an attacker to exploit this issue in applications using these packages by uploading crafted files, allowing a Cross-site Scripting attack (XSS). The highest threat from this vulnerability is to confidentiality and integrity.

Other sources

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.

Golang Go is vulnerable to cross-site scripting, caused by improper validation of user-supplied input by the CGI/FCGI handlers. A remote attacker could exploit this vulnerability to inject malicious script into a Web page which would be executed in a victim's Web browser within the security context of the hosting Web site, once the page is viewed. An attacker could use this vulnerability to steal the victim's cookie-based authentication credentials.

IBM

In Go versions prior to 1.15.1 and 1.14.8 if the Content-Type header of a Handler was not explicitly set the net/http/cgi and net/http/fcgi packages would default to “text/html”, which could cause a Cross-Site Scripting vulnerability if an attacker can control any part of the contents of a response.

Upstream Reference:

https://groups.google.com/g/golang-announce/c/8wqlSbkLdPs/m/UccMwBPUBAAJ?pli=1

Red Hat

Affected Software

10 affected componentsFixes available
redhat/openshift-serverless-clients<0:0.18.4-2.el8
0:0.18.4-2.el8
redhat/go<1.15.1
1.15.1
redhat/go<1.14.8
1.14.8
IBM Security Guardium Insights<=2.0.2
Golang Go<1.14.8
Golang Go>=1.15.0<1.15.1
Fedoraproject Fedora=33
openSUSE Leap=15.1
openSUSE Leap=15.2
Oracle Communications Cloud Native Core Policy=1.5.0

Event History

Aug 1, 2020
CVE Published
12:00 AM
Sep 2, 2020
CVE Published
via MITRE·04:25 PM
Data Sourced
via MITRE·04:25 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID of this flaw?

The vulnerability ID of this flaw is CVE-2020-24553.

2

What is the severity of CVE-2020-24553?

The severity of CVE-2020-24553 is high with a CVSS score of 7.2.

3

How can an attacker exploit this vulnerability?

An attacker can exploit this vulnerability by exploiting the default Content-Type response header value of "text/html" in the net/http/cgi and net/http/fcgi packages in Go.

4

Which versions of Go are affected by this vulnerability?

Versions of Go before 1.14.8 and 1.15.x before 1.15.1 are affected by this vulnerability.

5

How can I fix CVE-2020-24553?

To fix CVE-2020-24553, update your Go installation to version 1.14.8 or 1.15.1.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203