An update for golang is now available for openEuler-20.03-LTS-SP1,openEuler-20.03-LTS-SP3,openEuler-22.03-LTS,openEuler-22.03-LTS-SP1 and openEuler-22.03-LTS-SP2 Security Advisory openeuler-security@openeuler.org openEuler security committee openEuler-SA-2023-1789 Final 1.0 1.0 2023-11-03 Initial 2023-11-03 2023-11-03 openEuler SA Tool V1.0 2023-11-03 golang security update An update for golang is now available for openEuler-20.03-LTS-SP1,openEuler-20.03-LTS-SP3,openEuler-22.03-LTS,openEuler-22.03-LTS-SP1 and openEuler-22.03-LTS-SP2. . Security Fix(es): The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This may cause the template parser to improperly interpret the contents of <script> contexts, causing actions to be improperly escaped. This may be leveraged to perform an XSS attack.(CVE-2023-39318) The html/template package does not apply the proper rules for handling occurrences of "<script", "<!--", and "</script" within JS literals in <script> contexts. This may cause the template parser to improperly consider script contexts to be terminated early, causing actions to be improperly escaped. This could be leveraged to perform an XSS attack.(CVE-2023-39319) Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of arbitrary code when running "go build". The line directive requires the absolute path of the file in which the directive lives, which makes exploiting this issue significantly more complex.(CVE-2023-39323) A malicious HTTP/2 client which rapidly creates requests and immediately resets them can cause excessive server resource consumption. While the total number of requests is bounded by the http2.Server.MaxConcurrentStreams setting, resetting an in-progress request allows the attacker to create a new request while the existing one is still executing. With the fix applied, HTTP/2 servers now bound the number of simultaneously executing handler goroutines to the stream concurrency limit (MaxConcurrentStreams). New requests arriving when at the limit (which can only happen after the client has reset an existing, in-flight request) will be queued until a handler exits. If the request queue grows too large, the server will terminate the connection. This issue is also fixed in golang.org/x/net/http2 for users manually configuring HTTP/2. The default stream concurrency limit is 250 streams (requests) per HTTP/2 connection. This value may be adjusted using the golang.org/x/net/http2 package; see the Server.MaxConcurrentStreams setting and the ConfigureServer function.(CVE-2023-39325) An update for golang is now available for openEuler-20.03-LTS-SP1,openEuler-20.03-LTS-SP3,openEuler-22.03-LTS,openEuler-22.03-LTS-SP1 and openEuler-22.03-LTS-SP2. openEuler Security has rated this update as having a security impact of high. A Common Vunlnerability Scoring System(CVSS)base score,which gives a detailed severity rating, is available for each vulnerability from the CVElink(s) in the References section. High golang https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1789 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2023-39318 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2023-39319 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2023-39323 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2023-39325 https://nvd.nist.gov/vuln/detail/CVE-2023-39318 https://nvd.nist.gov/vuln/detail/CVE-2023-39319 https://nvd.nist.gov/vuln/detail/CVE-2023-39323 https://nvd.nist.gov/vuln/detail/CVE-2023-39325 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP3 openEuler-22.03-LTS openEuler-22.03-LTS-SP1 openEuler-22.03-LTS-SP2 golang-1.15.7-36.oe1.aarch64.rpm golang-1.15.7-36.oe1.aarch64.rpm golang-1.17.3-25.oe2203.aarch64.rpm golang-1.17.3-25.oe2203sp1.aarch64.rpm golang-1.17.3-25.oe2203sp2.aarch64.rpm golang-devel-1.15.7-36.oe1.noarch.rpm golang-help-1.15.7-36.oe1.noarch.rpm golang-help-1.15.7-36.oe1.noarch.rpm golang-devel-1.15.7-36.oe1.noarch.rpm golang-help-1.17.3-25.oe2203.noarch.rpm golang-devel-1.17.3-25.oe2203.noarch.rpm golang-devel-1.17.3-25.oe2203sp1.noarch.rpm golang-help-1.17.3-25.oe2203sp1.noarch.rpm golang-devel-1.17.3-25.oe2203sp2.noarch.rpm golang-help-1.17.3-25.oe2203sp2.noarch.rpm golang-1.15.7-36.oe1.src.rpm golang-1.15.7-36.oe1.src.rpm golang-1.17.3-25.oe2203.src.rpm golang-1.17.3-25.oe2203sp1.src.rpm golang-1.17.3-25.oe2203sp2.src.rpm golang-1.15.7-36.oe1.x86_64.rpm golang-1.15.7-36.oe1.x86_64.rpm golang-1.17.3-25.oe2203.x86_64.rpm golang-1.17.3-25.oe2203sp1.x86_64.rpm golang-1.17.3-25.oe2203sp2.x86_64.rpm The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This may cause the template parser to improperly interpret the contents of <script> contexts, causing actions to be improperly escaped. This may be leveraged to perform an XSS attack. 2023-11-03 CVE-2023-39318 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP3 openEuler-22.03-LTS openEuler-22.03-LTS-SP1 openEuler-22.03-LTS-SP2 Medium 6.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N golang security update 2023-11-03 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1789 The html/template package does not apply the proper rules for handling occurrences of "<script", "<!--", and "</script" within JS literals in <script> contexts. This may cause the template parser to improperly consider script contexts to be terminated early, causing actions to be improperly escaped. This could be leveraged to perform an XSS attack. 2023-11-03 CVE-2023-39319 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP3 openEuler-22.03-LTS openEuler-22.03-LTS-SP1 openEuler-22.03-LTS-SP2 Medium 6.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N golang security update 2023-11-03 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1789 Line directives ( //line ) can be used to bypass the restrictions on //go:cgo_ directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of arbitrary code when running go build . The line directive requires the absolute path of the file in which the directive lives, which makes exploiting this issue significantly more complex. 2023-11-03 CVE-2023-39323 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP3 openEuler-22.03-LTS openEuler-22.03-LTS-SP1 openEuler-22.03-LTS-SP2 High 7.4 AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H golang security update 2023-11-03 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1789 A malicious HTTP/2 client which rapidly creates requests and immediately resets them can cause excessive server resource consumption. While the total number of requests is bounded by the http2.Server.MaxConcurrentStreams setting, resetting an in-progress request allows the attacker to create a new request while the existing one is still executing. With the fix applied, HTTP/2 servers now bound the number of simultaneously executing handler goroutines to the stream concurrency limit (MaxConcurrentStreams). New requests arriving when at the limit (which can only happen after the client has reset an existing, in-flight request) will be queued until a handler exits. If the request queue grows too large, the server will terminate the connection. This issue is also fixed in golang.org/x/net/http2 for users manually configuring HTTP/2. The default stream concurrency limit is 250 streams (requests) per HTTP/2 connection. This value may be adjusted using the golang.org/x/net/http2 package; see the Server.MaxConcurrentStreams setting and the ConfigureServer function. 2023-11-03 CVE-2023-39325 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP3 openEuler-22.03-LTS openEuler-22.03-LTS-SP1 openEuler-22.03-LTS-SP2 High 7.5 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H golang security update 2023-11-03 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1789