ALAS2-2022-1776
Active ImportantALAS2-2022-1776 (important): golang
Related CVEs
CVE identifiers linked by this publisher.
Publisher relationship details 16 records
Shared by all 16 CVE relationships
Exact relationship value
advisory_listExact field value
referencesExact evidence value
https://alas.aws.amazon.com/AL2/ALAS2-2022-1776.htmlDescription
An infinite loop vulnerability was found in golang. If an application defines a custom token parser initializing with `xml.NewTokenDecoder` it is possible for the parsing loop to never return. An attacker could potentially craft a malicious XML document which has an XML element with `EOF` within it, causing the parsing application to endlessly loop,
Read full publisher description 5032 characters
An infinite loop vulnerability was found in golang. If an application defines a custom token parser initializing with `xml.NewTokenDecoder` it is possible for the parsing loop to never return. An attacker could potentially craft a malicious XML document which has an XML element with `EOF` within it, causing the parsing application to endlessly loop, resulting in a Denial of Service (DoS). (CVE-2021-27918) archive/zip in Go 1.16.x before 1.16.1 allows attackers to cause a denial of service (panic) upon attempted use of the Reader.Open API for a ZIP archive in which ../ occurs at the beginning of any filename. (CVE-2021-27919) A flaw was found in Go. The LookupCNAME, LookupSRV, LookupMX, LookupNS, and LookupAddr functions in the net package and methods on the Resolver type, may return arbitrary values retrieved from DNS, allowing injection of unexpected contents. The highest threat from this vulnerability is to integrity. (CVE-2021-33195) A flaw was found in Go, acting as an unintended proxy or intermediary, where ReverseProxy forwards connection headers if the first one was empty. This flaw allows an attacker to drop arbitrary headers. The highest threat from this vulnerability is to integrity. (CVE-2021-33197) A flaw was found in Go, where it attempts to allocate excessive memory. This issue may cause panic or unrecoverable fatal error if passed inputs with very large exponents. The highest threat from this vulnerability is to system availability. (CVE-2021-33198) A race condition flaw was found in Go. The incoming requests body weren't closed after the handler panic and as a consequence this could lead to ReverseProxy crash. The highest threat from this vulnerability is to Availability. (CVE-2021-36221) A validation flaw was found in golang. When invoking functions from WASM modules built using GOARCH=wasm GOOS=js, passing very large arguments can cause portions of the module to be overwritten with data from the arguments. The highest threat from this vulnerability is to integrity. (CVE-2021-38297) A vulnerability was found in archive/zip of the Go standard library. Applications written in Go can panic or potentially exhaust system memory when parsing malformed ZIP files. An attacker capable of submitting a crafted ZIP file to a Go application using archive/zip to process that file could cause a denial of service via memory exhaustion or panic. This particular flaw is an incomplete fix for a previous flaw. (CVE-2021-39293) An out of bounds read vulnerability was found in debug/macho of the Go standard library. When using the debug/macho standard library (stdlib) and malformed binaries are parsed using Open or OpenFat, it can cause golang to attempt to read outside of a slice (array) causing a panic when calling ImportedSymbols. An attacker can use this vulnerability to craft a file which causes an application using this library to crash resulting in a denial of service. (CVE-2021-41771) A vulnerability was found in archive/zip of the Go standard library. Applications written in Go where Reader.Open (the API implementing io/fs.FS introduced in Go 1.16) can panic when parsing a crafted ZIP archive containing completely invalid names or an empty filename argument. (CVE-2021-41772) There's an uncontrolled resource consumption flaw in golang's net/http library in the canonicalHeader() function. An attacker who submits specially crafted requests to applications linked with net/http's http2 functionality could cause excessive resource consumption that could lead to a denial of service or otherwise impact to system performance and resources. (CVE-2021-44716) There's a flaw in golang's syscall.ForkExec() interface. An attacker who manages to first cause a file descriptor exhaustion for the process, then cause syscall.ForkExec() to be called repeatedly, could compromise data integrity and/or confidentiality in a somewhat uncontrolled way in programs linked with and using syscall.ForkExec(). (CVE-2021-44717) Rat.SetString in math/big in Go before 1.16.14 and 1.17.x before 1.17.7 has an overflow that can lead to Uncontrolled Memory Consumption. (CVE-2022-23772) cmd/go in Go before 1.16.14 and 1.17.x before 1.17.7 can misinterpret branch names that falsely appear to be version tags. This can lead to incorrect access control if an actor is supposed to be able to create branches but not tags. (CVE-2022-23773) Curve.IsOnCurve in crypto/elliptic in Go before 1.16.14 and 1.17.x before 1.17.7 can incorrectly return true in situations with a big.Int value that is not a valid field element. (CVE-2022-23806) A stack overflow flaw was found in Golang's regexp module, which can crash the runtime if the application using regexp accepts very long or arbitrarily long regexps from untrusted sources that have sufficient nesting depths. To exploit this vulnerability, an attacker would need to send large regexps with deep nesting to the application. Triggering this flaw leads to a crash of the runtime, which causes a denial of service. (CVE-2022-24921)
Solution
Run yum update golang or yum update --advisory ALAS2-2022-1776 to update your system.
Affected packages
Each item is one publisher package occurrence. Shared details are shown once; differences stay with the occurrence.
Shared package data
Applies to all 4 occurrences-
1golang
Occurrence-specific details
- Architecture
- aarch64
Replacement RPMs
- golang-1.16.15-1.amzn2.0.1.aarch64
- golang-bin-1.16.15-1.amzn2.0.1.aarch64
- golang-shared-1.16.15-1.amzn2.0.1.aarch64
-
2golang
Occurrence-specific details
- Architecture
- noarch
Replacement RPMs
- golang-docs-1.16.15-1.amzn2.0.1.noarch
- golang-misc-1.16.15-1.amzn2.0.1.noarch
- golang-tests-1.16.15-1.amzn2.0.1.noarch
- golang-src-1.16.15-1.amzn2.0.1.noarch
-
3golang
Occurrence-specific details
- Architecture
- src
Replacement RPMs
- golang-1.16.15-1.amzn2.0.1.src
-
4golang
Occurrence-specific details
- Architecture
- x86_64
Replacement RPMs
- golang-1.16.15-1.amzn2.0.1.x86_64
- golang-bin-1.16.15-1.amzn2.0.1.x86_64
- golang-shared-1.16.15-1.amzn2.0.1.x86_64
- golang-race-1.16.15-1.amzn2.0.1.x86_64
CVSS assessments
Publisher supplied scores and vectors; these do not replace the advisory severity above.
No CVSS assessments were provided.
Publisher references
32- CVE-2021-27918 https://access.redhat.com/security/cve/CVE-2021-27918
- CVE-2021-27919 https://access.redhat.com/security/cve/CVE-2021-27919
- CVE-2021-33195 https://access.redhat.com/security/cve/CVE-2021-33195
- CVE-2021-33197 https://access.redhat.com/security/cve/CVE-2021-33197
- CVE-2021-33198 https://access.redhat.com/security/cve/CVE-2021-33198
- CVE-2021-36221 https://access.redhat.com/security/cve/CVE-2021-36221
- CVE-2021-38297 https://access.redhat.com/security/cve/CVE-2021-38297
- CVE-2021-39293 https://access.redhat.com/security/cve/CVE-2021-39293
- CVE-2021-41771 https://access.redhat.com/security/cve/CVE-2021-41771
- CVE-2021-41772 https://access.redhat.com/security/cve/CVE-2021-41772
- CVE-2021-44716 https://access.redhat.com/security/cve/CVE-2021-44716
- CVE-2021-44717 https://access.redhat.com/security/cve/CVE-2021-44717
- CVE-2022-23772 https://access.redhat.com/security/cve/CVE-2022-23772
- CVE-2022-23773 https://access.redhat.com/security/cve/CVE-2022-23773
- CVE-2022-23806 https://access.redhat.com/security/cve/CVE-2022-23806
- CVE-2022-24921 https://access.redhat.com/security/cve/CVE-2022-24921
- CVE-2021-27918 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27918
- CVE-2021-27919 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27919
- CVE-2021-33195 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-33195
- CVE-2021-33197 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-33197
- CVE-2021-33198 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-33198
- CVE-2021-36221 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-36221
- CVE-2021-38297 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-38297
- CVE-2021-39293 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-39293
- CVE-2021-41771 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41771
- CVE-2021-41772 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41772
- CVE-2021-44716 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44716
- CVE-2021-44717 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44717
- CVE-2022-23772 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23772
- CVE-2022-23773 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23773
- CVE-2022-23806 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23806
- CVE-2022-24921 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24921
Provenance
- Schema version
- Unknown
- Parser version
- amazon-alas/1
- Severity origin
- publisher
| Kind | Locator | Source commit | Document hash | Parser | Fetched |
|---|---|---|---|---|---|
| html_page | https://alas.aws.amazon.com/AL2/ALAS2-2022-1776.html | Unknown | 9d550e512deacf019b1e8a02f0bac85f609c36a88f7475d18526e4731d7df81c | amazon-alas/1 | 2026-11-16T08:26:43Z |
| rss_entry | https://alas.aws.amazon.com/AL2/ALAS2-2022-1776.html | Unknown | Unknown | amazon-alas/1 | 2026-11-16T08:26:43Z |
| catalog_entry | https://alas.aws.amazon.com/AL2/ALAS2-2022-1776.html | Unknown | Unknown | amazon-alas/1 | 2026-11-16T08:26:43Z |