<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
	<DocumentTitle xml:lang="en">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</DocumentTitle>
	<DocumentType>Security Advisory</DocumentType>
	<DocumentPublisher Type="Vendor">
		<ContactDetails>openeuler-security@openeuler.org</ContactDetails>
		<IssuingAuthority>openEuler security committee</IssuingAuthority>
	</DocumentPublisher>
	<DocumentTracking>
		<Identification>
			<ID>openEuler-SA-2023-1789</ID>
		</Identification>
		<Status>Final</Status>
		<Version>1.0</Version>
		<RevisionHistory>
			<Revision>
				<Number>1.0</Number>
				<Date>2023-11-03</Date>
				<Description>Initial</Description>
			</Revision>
		</RevisionHistory>
		<InitialReleaseDate>2023-11-03</InitialReleaseDate>
		<CurrentReleaseDate>2023-11-03</CurrentReleaseDate>
		<Generator>
			<Engine>openEuler SA Tool V1.0</Engine>
			<Date>2023-11-03</Date>
		</Generator>
	</DocumentTracking>
	<DocumentNotes>
		<Note Title="Synopsis" Type="General" Ordinal="1" xml:lang="en">golang security update</Note>
		<Note Title="Summary" Type="General" Ordinal="2" xml:lang="en">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.</Note>
		<Note Title="Description" Type="General" Ordinal="3" xml:lang="en">.

Security Fix(es):

The html/template package does not properly handle HTML-like &quot;&quot; comment tokens, nor hashbang &quot;#!&quot; comment tokens, in &lt;script&gt; contexts. This may cause the template parser to improperly interpret the contents of &lt;script&gt; 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 &quot;&lt;script&quot;, &quot;&lt;!--&quot;, and &quot;&lt;/script&quot; within JS literals in &lt;script&gt; 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 (&quot;//line&quot;) can be used to bypass the restrictions on &quot;//go:cgo_&quot; directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of arbitrary code when running &quot;go build&quot;. 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)</Note>
		<Note Title="Topic" Type="General" Ordinal="4" xml:lang="en">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.</Note>
		<Note Title="Severity" Type="General" Ordinal="5" xml:lang="en">High</Note>
		<Note Title="Affected Component" Type="General" Ordinal="6" xml:lang="en">golang</Note>
	</DocumentNotes>
	<DocumentReferences>
		<Reference Type="Self">
			<URL>https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1789</URL>
		</Reference>
		<Reference Type="openEuler CVE">
			<URL>https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2023-39318</URL>
			<URL>https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2023-39319</URL>
			<URL>https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2023-39323</URL>
			<URL>https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2023-39325</URL>
		</Reference>
		<Reference Type="Other">
			<URL>https://nvd.nist.gov/vuln/detail/CVE-2023-39318</URL>
			<URL>https://nvd.nist.gov/vuln/detail/CVE-2023-39319</URL>
			<URL>https://nvd.nist.gov/vuln/detail/CVE-2023-39323</URL>
			<URL>https://nvd.nist.gov/vuln/detail/CVE-2023-39325</URL>
		</Reference>
	</DocumentReferences>
	<ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
		<Branch Type="Product Name" Name="openEuler">
			<FullProductName ProductID="openEuler-20.03-LTS-SP1" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP1">openEuler-20.03-LTS-SP1</FullProductName>
			<FullProductName ProductID="openEuler-20.03-LTS-SP3" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP3">openEuler-20.03-LTS-SP3</FullProductName>
			<FullProductName ProductID="openEuler-22.03-LTS" CPE="cpe:/a:openEuler:openEuler:22.03-LTS">openEuler-22.03-LTS</FullProductName>
			<FullProductName ProductID="openEuler-22.03-LTS-SP1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP1">openEuler-22.03-LTS-SP1</FullProductName>
			<FullProductName ProductID="openEuler-22.03-LTS-SP2" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP2">openEuler-22.03-LTS-SP2</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="aarch64">
			<FullProductName ProductID="golang-1.15.7-36" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP1">golang-1.15.7-36.oe1.aarch64.rpm</FullProductName>
			<FullProductName ProductID="golang-1.15.7-36" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP3">golang-1.15.7-36.oe1.aarch64.rpm</FullProductName>
			<FullProductName ProductID="golang-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS">golang-1.17.3-25.oe2203.aarch64.rpm</FullProductName>
			<FullProductName ProductID="golang-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP1">golang-1.17.3-25.oe2203sp1.aarch64.rpm</FullProductName>
			<FullProductName ProductID="golang-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP2">golang-1.17.3-25.oe2203sp2.aarch64.rpm</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="noarch">
			<FullProductName ProductID="golang-devel-1.15.7-36" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP1">golang-devel-1.15.7-36.oe1.noarch.rpm</FullProductName>
			<FullProductName ProductID="golang-help-1.15.7-36" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP1">golang-help-1.15.7-36.oe1.noarch.rpm</FullProductName>
			<FullProductName ProductID="golang-help-1.15.7-36" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP3">golang-help-1.15.7-36.oe1.noarch.rpm</FullProductName>
			<FullProductName ProductID="golang-devel-1.15.7-36" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP3">golang-devel-1.15.7-36.oe1.noarch.rpm</FullProductName>
			<FullProductName ProductID="golang-help-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS">golang-help-1.17.3-25.oe2203.noarch.rpm</FullProductName>
			<FullProductName ProductID="golang-devel-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS">golang-devel-1.17.3-25.oe2203.noarch.rpm</FullProductName>
			<FullProductName ProductID="golang-devel-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP1">golang-devel-1.17.3-25.oe2203sp1.noarch.rpm</FullProductName>
			<FullProductName ProductID="golang-help-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP1">golang-help-1.17.3-25.oe2203sp1.noarch.rpm</FullProductName>
			<FullProductName ProductID="golang-devel-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP2">golang-devel-1.17.3-25.oe2203sp2.noarch.rpm</FullProductName>
			<FullProductName ProductID="golang-help-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP2">golang-help-1.17.3-25.oe2203sp2.noarch.rpm</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="src">
			<FullProductName ProductID="golang-1.15.7-36" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP1">golang-1.15.7-36.oe1.src.rpm</FullProductName>
			<FullProductName ProductID="golang-1.15.7-36" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP3">golang-1.15.7-36.oe1.src.rpm</FullProductName>
			<FullProductName ProductID="golang-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS">golang-1.17.3-25.oe2203.src.rpm</FullProductName>
			<FullProductName ProductID="golang-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP1">golang-1.17.3-25.oe2203sp1.src.rpm</FullProductName>
			<FullProductName ProductID="golang-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP2">golang-1.17.3-25.oe2203sp2.src.rpm</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="x86_64">
			<FullProductName ProductID="golang-1.15.7-36" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP1">golang-1.15.7-36.oe1.x86_64.rpm</FullProductName>
			<FullProductName ProductID="golang-1.15.7-36" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP3">golang-1.15.7-36.oe1.x86_64.rpm</FullProductName>
			<FullProductName ProductID="golang-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS">golang-1.17.3-25.oe2203.x86_64.rpm</FullProductName>
			<FullProductName ProductID="golang-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP1">golang-1.17.3-25.oe2203sp1.x86_64.rpm</FullProductName>
			<FullProductName ProductID="golang-1.17.3-25" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP2">golang-1.17.3-25.oe2203sp2.x86_64.rpm</FullProductName>
		</Branch>
	</ProductTree>
	<Vulnerability Ordinal="1" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
		<Notes>
			<Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">The html/template package does not properly handle HTML-like &quot;&quot; comment tokens, nor hashbang &quot;#!&quot; comment tokens, in &lt;script&gt; contexts. This may cause the template parser to improperly interpret the contents of &lt;script&gt; contexts, causing actions to be improperly escaped. This may be leveraged to perform an XSS attack.</Note>
		</Notes>
		<ReleaseDate>2023-11-03</ReleaseDate>
		<CVE>CVE-2023-39318</CVE>
		<ProductStatuses>
			<Status Type="Fixed">
				<ProductID>openEuler-20.03-LTS-SP1</ProductID>
				<ProductID>openEuler-20.03-LTS-SP3</ProductID>
				<ProductID>openEuler-22.03-LTS</ProductID>
				<ProductID>openEuler-22.03-LTS-SP1</ProductID>
				<ProductID>openEuler-22.03-LTS-SP2</ProductID>
			</Status>
		</ProductStatuses>
		<Threats>
			<Threat Type="Impact">
				<Description>Medium</Description>
			</Threat>
		</Threats>
		<CVSSScoreSets>
			<ScoreSet>
				<BaseScore>6.1</BaseScore>
				<Vector>AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N</Vector>
			</ScoreSet>
		</CVSSScoreSets>
		<Remediations>
			<Remediation Type="Vendor Fix">
				<Description>golang security update</Description>
				<DATE>2023-11-03</DATE>
				<URL>https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1789</URL>
			</Remediation>
		</Remediations>
	</Vulnerability>
	<Vulnerability Ordinal="2" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
		<Notes>
			<Note Title="Vulnerability Description" Type="General" Ordinal="2" xml:lang="en">The html/template package does not apply the proper rules for handling occurrences of &quot;&lt;script&quot;, &quot;&lt;!--&quot;, and &quot;&lt;/script&quot; within JS literals in &lt;script&gt; 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.</Note>
		</Notes>
		<ReleaseDate>2023-11-03</ReleaseDate>
		<CVE>CVE-2023-39319</CVE>
		<ProductStatuses>
			<Status Type="Fixed">
				<ProductID>openEuler-20.03-LTS-SP1</ProductID>
				<ProductID>openEuler-20.03-LTS-SP3</ProductID>
				<ProductID>openEuler-22.03-LTS</ProductID>
				<ProductID>openEuler-22.03-LTS-SP1</ProductID>
				<ProductID>openEuler-22.03-LTS-SP2</ProductID>
			</Status>
		</ProductStatuses>
		<Threats>
			<Threat Type="Impact">
				<Description>Medium</Description>
			</Threat>
		</Threats>
		<CVSSScoreSets>
			<ScoreSet>
				<BaseScore>6.1</BaseScore>
				<Vector>AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N</Vector>
			</ScoreSet>
		</CVSSScoreSets>
		<Remediations>
			<Remediation Type="Vendor Fix">
				<Description>golang security update</Description>
				<DATE>2023-11-03</DATE>
				<URL>https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1789</URL>
			</Remediation>
		</Remediations>
	</Vulnerability>
	<Vulnerability Ordinal="3" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
		<Notes>
			<Note Title="Vulnerability Description" Type="General" Ordinal="3" xml:lang="en">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.</Note>
		</Notes>
		<ReleaseDate>2023-11-03</ReleaseDate>
		<CVE>CVE-2023-39323</CVE>
		<ProductStatuses>
			<Status Type="Fixed">
				<ProductID>openEuler-20.03-LTS-SP1</ProductID>
				<ProductID>openEuler-20.03-LTS-SP3</ProductID>
				<ProductID>openEuler-22.03-LTS</ProductID>
				<ProductID>openEuler-22.03-LTS-SP1</ProductID>
				<ProductID>openEuler-22.03-LTS-SP2</ProductID>
			</Status>
		</ProductStatuses>
		<Threats>
			<Threat Type="Impact">
				<Description>High</Description>
			</Threat>
		</Threats>
		<CVSSScoreSets>
			<ScoreSet>
				<BaseScore>7.4</BaseScore>
				<Vector>AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H</Vector>
			</ScoreSet>
		</CVSSScoreSets>
		<Remediations>
			<Remediation Type="Vendor Fix">
				<Description>golang security update</Description>
				<DATE>2023-11-03</DATE>
				<URL>https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1789</URL>
			</Remediation>
		</Remediations>
	</Vulnerability>
	<Vulnerability Ordinal="4" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
		<Notes>
			<Note Title="Vulnerability Description" Type="General" Ordinal="4" xml:lang="en">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.</Note>
		</Notes>
		<ReleaseDate>2023-11-03</ReleaseDate>
		<CVE>CVE-2023-39325</CVE>
		<ProductStatuses>
			<Status Type="Fixed">
				<ProductID>openEuler-20.03-LTS-SP1</ProductID>
				<ProductID>openEuler-20.03-LTS-SP3</ProductID>
				<ProductID>openEuler-22.03-LTS</ProductID>
				<ProductID>openEuler-22.03-LTS-SP1</ProductID>
				<ProductID>openEuler-22.03-LTS-SP2</ProductID>
			</Status>
		</ProductStatuses>
		<Threats>
			<Threat Type="Impact">
				<Description>High</Description>
			</Threat>
		</Threats>
		<CVSSScoreSets>
			<ScoreSet>
				<BaseScore>7.5</BaseScore>
				<Vector>AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H</Vector>
			</ScoreSet>
		</CVSSScoreSets>
		<Remediations>
			<Remediation Type="Vendor Fix">
				<Description>golang security update</Description>
				<DATE>2023-11-03</DATE>
				<URL>https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1789</URL>
			</Remediation>
		</Remediations>
	</Vulnerability>
</cvrfdoc>