Skip to content
OpenAdvisories
High ALAS2023-2023-046 17 CVEs

Important: golist security update (Amazon Linux 2023)

Published Feb 17, 2023 · Updated May 11, 2023

Summary

Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2022-41716: Due to unsanitized NUL values, attackers may be able to maliciously set environment variables on Windows. In syscall.StartProcess and os/exec.Cmd, invalid environment variable values containing NUL values are not properly checked for. A malicious environment variable value can exploit this behavior to set a value for a different environment variable. For example, the environment variable string A=Bx00C=D sets the variables A=B and C=D. CVE-2022-41715: Programs which compile regular expressions from untrusted sources may be vulnerable to memory exhaustion or denial of service. The parsed regexp representation is linear in the size of the input, but in some cases the constant factor can be as high as 40,000, making relatively small regexps consume much larger amounts of memory. After fix, each regexp being parsed is limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are rejected. Normal use of regular expressions is unaffected. CVE-2022-32148: Improper exposure of client IP addresses in net/http before Go 1.17.12 and Go 1.18.4 can be triggered by calling httputil.ReverseProxy.ServeHTTP with a Request.Header map containing a nil value for the X-Forwarded-For header, which causes ReverseProxy to set the client IP as the value of the X-Forwarded-For header. CVE-2022-30635: A flaw was found in golang. When calling Decoder.Decode on a message that contains deeply nested structures, a panic can occur due to stack exhaustion and allows an attacker to impact system availability. CVE-2022-30633: Uncontrolled recursion in Unmarshal in encoding/xml before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via unmarshalling an XML document into a Go struct which has a nested field that uses the any field tag. CVE-2022-30632: A flaw was found in golang. Calling Glob on a path that contains a large number of path separators can cause a panic issue due to stack exhaustion. This can cause an attacker to impact availability. CVE-2022-30631: A flaw was found in golang. Calling the Reader.Read method on an archive that contains a large number of concatenated 0-length compressed files can cause a panic issue due to stack exhaustion. CVE-2022-30630: A flaw was found in the golang standard library, io/fs. Calling Glob on a path that contains a large number of path separators can cause a panic issue due to stack exhaustion. This could allow an attacker to impact availability. CVE-2022-30629: Non-random values for ticket_age_add in session tickets in crypto/tls before Go 1.17.11 and Go 1.18.3 allow an attacker that can observe TLS handshakes to correlate successive connections by comparing ticket ages during session resumption. CVE-2022-29526: A flaw was found in the syscall.Faccessat function when calling a process by checking the group. This flaw allows an attacker to check the process group permissions rather than a member of the file's group, affecting system availability. CVE-2022-2879: Reader.Read does not set a limit on the maximum size of file headers. A maliciously crafted archive could cause Read to allocate unbounded amounts of memory, potentially causing resource exhaustion or panics. After fix, Reader.Read limits the maximum size of header blocks to 1 MiB. CVE-2022-28327: An integer overflow flaw was found in Golang's crypto/elliptic library. This flaw allows an attacker to use a crafted scaler input longer than 32 bytes, causing P256().ScalarMult or P256().ScalarBaseMult to panic, leading to a loss of availability. CVE-2022-28131: A flaw was found in golang encoding/xml. When calling Decoder.Skip while parsing a deeply nested XML document, a panic can occur due to stack exhaustion and allows an attacker to impact system availability. CVE-2022-27191: A broken cryptographic algorithm flaw was found in golang.org/x/crypto/ssh. This issue causes a client to fail authentification with RSA keys to servers that reject signature algorithms based on SHA-2, enabling an attacker to crash the server, resulting in a loss of availability. CVE-2022-24675: A buffer overflow flaw was found in Golang's library encoding/pem. This flaw allows an attacker to use a large PEM input (more than 5 MB) ), causing a stack overflow in Decode, which leads to a loss of availability. CVE-2022-1962: A flaw was found in the golang standard library, go/parser. When calling any Parse functions on the Go source code, which contains deeply nested types or declarations, a panic can occur due to stack exhaustion. This issue allows an attacker to impact system availability. CVE-2022-1705: A flaw was found in golang. The HTTP/1 client accepted invalid Transfer-Encoding headers indicating "chunked" encoding. This issue could allow request smuggling, but only if combined with an intermediate server that also improperly accepts the header as invalid.

Fixed packages 3

ReleasePackageFixed in
Amazon Linux · 2023 golist 0:0.10.1-11.amzn2023.0.3
Amazon Linux · 2023 golist-debuginfo 0:0.10.1-11.amzn2023.0.3
Amazon Linux · 2023 golist-debugsource 0:0.10.1-11.amzn2023.0.3

Vulnerabilities 17

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-1705.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-1962.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-24675.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-27191.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-28131.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-28327.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-2879.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-29526.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-30629.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-30630.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-30631.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-30632.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-30633.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-30635.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-32148.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-41715.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-41716.html