ADVISORIES

Amazon Linux Security Advisory

ALAS2-2023-2015

Amazon Linux 2 2017.12 - ALAS2-2023-2015: important priority package update for golang

Details

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2022-41723: http2/hpack: avoid quadratic complexity in hpack decoding

CVE-2022-41722: The Go project has described this issue as follows:

"On Windows, the filepath.Clean function could transform an invalid path such as a/../c:/b into the valid path c:\b. This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. The filepath.Clean function will now transform this path into the relative (but still invalid) path .\c:\b."

CVE-2022-30634: Infinite loop in Read in crypto/rand before Go 1.17.11 and Go 1.18.3 on Windows allows attacker to cause an indefinite hang by passing a buffer larger than 1 << 32 - 1 bytes.

CVE-2022-30580: Code injection in Cmd.Start in os/exec before Go 1.17.11 and Go 1.18.3 allows execution of any binaries in the working directory named either "..com" or "..exe" by calling Cmd.Run, Cmd.Start, Cmd.Output, or Cmd.CombinedOutput when Cmd.Path is unset.

CVE-2022-2880: Requests forwarded by ReverseProxy include the raw query parameters from the inbound request, including unparseable parameters rejected by net/http. This could permit query parameter smuggling when a Go proxy forwards a parameter with an unparseable value. After fix, ReverseProxy sanitizes the query parameters in the forwarded query when the outbound request's Form field is set after the ReverseProxy. Director function returns, indicating that the proxy has parsed the query parameters. Proxies which do not parse query parameters continue to forward the original query parameters unchanged.

Affected packages

EcosystemPackageAffected versions
Amazon Linux:2golang
All versions before 1.18.9-1.amzn2.0.2 (fixed in 1.18.9-1.amzn2.0.2)
Amazon Linux:2golang-bin
All versions before 1.18.9-1.amzn2.0.2 (fixed in 1.18.9-1.amzn2.0.2)
Amazon Linux:2golang-docs
All versions before 1.18.9-1.amzn2.0.2 (fixed in 1.18.9-1.amzn2.0.2)
Amazon Linux:2golang-misc
All versions before 1.18.9-1.amzn2.0.2 (fixed in 1.18.9-1.amzn2.0.2)
Amazon Linux:2golang-race
All versions before 1.18.9-1.amzn2.0.2 (fixed in 1.18.9-1.amzn2.0.2)
Amazon Linux:2golang-shared
All versions before 1.18.9-1.amzn2.0.2 (fixed in 1.18.9-1.amzn2.0.2)
Amazon Linux:2golang-src
All versions before 1.18.9-1.amzn2.0.2 (fixed in 1.18.9-1.amzn2.0.2)
Amazon Linux:2golang-tests
All versions before 1.18.9-1.amzn2.0.2 (fixed in 1.18.9-1.amzn2.0.2)

References