USN-6038-1: Go vulnerabilities
25 April 2023
Several security issues were fixed in Go.
Releases
Packages
- golang-1.18 - Go programming language compiler - metapackage
Details
It was discovered that the Go net/http module incorrectly handled
Transfer-Encoding headers in the HTTP/1 client. A remote attacker could
possibly use this issue to perform an HTTP Request Smuggling attack.
(CVE-2022-1705)
It was discovered that Go did not properly manage memory under certain
circumstances. An attacker could possibly use this issue to cause a panic
resulting into a denial of service. (CVE-2022-1962, CVE-2022-27664,
CVE-2022-28131, CVE-2022-30630, CVE-2022-30631, CVE-2022-30632,
CVE-2022-30633, CVE-2022-30635, CVE-2022-32189, CVE-2022-41715,
CVE-2022-41717, CVE-2023-24534, CVE-2023-24537)
It was discovered that Go did not properly implemented the maximum size of
file headers in Reader.Read. An attacker could possibly use this issue to
cause a panic resulting into a denial of service. (CVE-2022-2879)
It was discovered that the Go net/http module incorrectly handled query
parameters in requests forwarded by ReverseProxy. A remote attacker could
possibly use this issue to perform an HTTP Query Parameter Smuggling attack.
(CVE-2022-2880)
It was discovered that Go did not properly manage the permissions for
Faccessat function. A attacker could possibly use this issue to expose
sensitive information. (CVE-2022-29526)
It was discovered that Go did not properly generate the values for
ticket_age_add in session tickets. An attacker could possibly use this
issue to observe TLS handshakes to correlate successive connections by
comparing ticket ages during session resumption. (CVE-2022-30629)
It was discovered that Go did not properly manage client IP addresses in
net/http. An attacker could possibly use this issue to cause ReverseProxy
to set the client IP as the value of the X-Forwarded-For header.
(CVE-2022-32148)
It was discovered that Go did not properly validate backticks (`) as
Javascript string delimiters, and do not escape them as expected. An
attacker could possibly use this issue to inject arbitrary Javascript code
into the Go template. (CVE-2023-24538)
Update instructions
The problem can be corrected by updating your system to the following package versions:
Ubuntu 22.04
-
golang-1.18-go
-
1.18.1-1ubuntu1.1
-
golang-1.18-src
-
1.18.1-1ubuntu1.1
-
golang-1.18
-
1.18.1-1ubuntu1.1
Ubuntu 20.04
-
golang-1.18-go
-
1.18.1-1ubuntu1~20.04.2
-
golang-1.18-src
-
1.18.1-1ubuntu1~20.04.2
-
golang-1.18
-
1.18.1-1ubuntu1~20.04.2
Ubuntu 18.04
-
golang-1.18-go
-
1.18.1-1ubuntu1~18.04.4
-
golang-1.18-src
-
1.18.1-1ubuntu1~18.04.4
-
golang-1.18
-
1.18.1-1ubuntu1~18.04.4
In general, a standard system update will make all the necessary changes.
You still need to update all the packages built with the affected version.
References
Related notices
- USN-6140-1: golang-1.19-go, golang-1.19-doc, golang-1.20-doc, golang-1.19-src, golang-1.20, golang-1.20-go, golang-1.19, golang-1.20-src
- USN-6038-2: golang-1.13, golang-1.16-src, golang-1.13-go, golang-1.13-doc, golang-1.16, golang-1.16-doc, golang-1.13-src, golang-1.16-go
- USN-7061-1: golang-1.17-doc, golang-1.17, golang-1.17-src, golang-1.17-go