<?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 rust is now available for openEuler-22.03-LTS-SP3</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-2025-1237</ID>
		</Identification>
		<Status>Final</Status>
		<Version>1.0</Version>
		<RevisionHistory>
			<Revision>
				<Number>1.0</Number>
				<Date>2025-03-07</Date>
				<Description>Initial</Description>
			</Revision>
		</RevisionHistory>
		<InitialReleaseDate>2025-03-07</InitialReleaseDate>
		<CurrentReleaseDate>2025-03-07</CurrentReleaseDate>
		<Generator>
			<Engine>openEuler SA Tool V1.0</Engine>
			<Date>2025-03-07</Date>
		</Generator>
	</DocumentTracking>
	<DocumentNotes>
		<Note Title="Synopsis" Type="General" Ordinal="1" xml:lang="en">rust security update</Note>
		<Note Title="Summary" Type="General" Ordinal="2" xml:lang="en">An update for rust is now available for openEuler-22.03-LTS-SP3</Note>
		<Note Title="Description" Type="General" Ordinal="3" xml:lang="en">Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety. This package includes the Rust compiler and documentation generator.

Security Fix(es):

Cargo is a Rust package manager. The Rust Security Response WG was notified that Cargo did not perform SSH host key verification when cloning indexes and dependencies via SSH. An attacker could exploit this to perform man-in-the-middle (MITM) attacks. This vulnerability has been assigned CVE-2022-46176. All Rust versions containing Cargo before 1.66.1 are vulnerable. Note that even if you don&apos;t explicitly use SSH for alternate registry indexes or crate dependencies, you might be affected by this vulnerability if you have configured git to replace HTTPS connections to GitHub with SSH (through git&apos;s [`url.&lt;base&gt;.insteadOf`][1] setting), as that&apos;d cause you to clone the crates.io index through SSH. Rust 1.66.1 will ensure Cargo checks the SSH host key and abort the connection if the server&apos;s public key is not already trusted. We recommend everyone to upgrade as soon as possible. (CVE-2022-46176)

Cargo downloads the Rust project’s dependencies and compiles the project. Cargo prior to version 0.72.2, bundled with Rust prior to version 1.71.1, did not respect the umask when extracting crate archives on UNIX-like systems. If the user downloaded a crate containing files writeable by any local user, another local user could exploit this to change the source code compiled and executed by the current user. To prevent existing cached extractions from being exploitable, the Cargo binary version 0.72.2 included in Rust 1.71.1 or later will purge caches generated by older Cargo versions automatically. As a workaround, configure one&apos;s system to prevent other local users from accessing the Cargo directory, usually located in `~/.cargo`.(CVE-2023-38497)</Note>
		<Note Title="Topic" Type="General" Ordinal="4" xml:lang="en">An update for rust is now available for openEuler-22.03-LTS-SP3.

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">rust</Note>
	</DocumentNotes>
	<DocumentReferences>
		<Reference Type="Self">
			<URL>https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2025-1237</URL>
		</Reference>
		<Reference Type="openEuler CVE">
			<URL>https://www.openeuler.org/en/security/cve/detail/?cveId=CVE-2022-46176</URL>
			<URL>https://www.openeuler.org/en/security/cve/detail/?cveId=CVE-2023-38497</URL>
		</Reference>
		<Reference Type="Other">
			<URL>https://nvd.nist.gov/vuln/detail/CVE-2022-46176</URL>
			<URL>https://nvd.nist.gov/vuln/detail/CVE-2023-38497</URL>
		</Reference>
	</DocumentReferences>
	<ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
		<Branch Type="Product Name" Name="openEuler">
			<FullProductName ProductID="openEuler-22.03-LTS-SP3" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">openEuler-22.03-LTS-SP3</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="src">
			<FullProductName ProductID="rust-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-1.76.0-1.oe2203sp3.src.rpm</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="noarch">
			<FullProductName ProductID="rust-debugger-common-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-debugger-common-1.76.0-1.oe2203sp3.noarch.rpm</FullProductName>
			<FullProductName ProductID="rust-gdb-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-gdb-1.76.0-1.oe2203sp3.noarch.rpm</FullProductName>
			<FullProductName ProductID="rust-lldb-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-lldb-1.76.0-1.oe2203sp3.noarch.rpm</FullProductName>
			<FullProductName ProductID="rust-src-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-src-1.76.0-1.oe2203sp3.noarch.rpm</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="aarch64">
			<FullProductName ProductID="cargo-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">cargo-1.76.0-1.oe2203sp3.aarch64.rpm</FullProductName>
			<FullProductName ProductID="clippy-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">clippy-1.76.0-1.oe2203sp3.aarch64.rpm</FullProductName>
			<FullProductName ProductID="rust-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-1.76.0-1.oe2203sp3.aarch64.rpm</FullProductName>
			<FullProductName ProductID="rust-analyzer-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-analyzer-1.76.0-1.oe2203sp3.aarch64.rpm</FullProductName>
			<FullProductName ProductID="rust-debuginfo-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-debuginfo-1.76.0-1.oe2203sp3.aarch64.rpm</FullProductName>
			<FullProductName ProductID="rust-debugsource-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-debugsource-1.76.0-1.oe2203sp3.aarch64.rpm</FullProductName>
			<FullProductName ProductID="rust-help-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-help-1.76.0-1.oe2203sp3.aarch64.rpm</FullProductName>
			<FullProductName ProductID="rust-std-static-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-std-static-1.76.0-1.oe2203sp3.aarch64.rpm</FullProductName>
			<FullProductName ProductID="rustfmt-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rustfmt-1.76.0-1.oe2203sp3.aarch64.rpm</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="x86_64">
			<FullProductName ProductID="cargo-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">cargo-1.76.0-1.oe2203sp3.x86_64.rpm</FullProductName>
			<FullProductName ProductID="clippy-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">clippy-1.76.0-1.oe2203sp3.x86_64.rpm</FullProductName>
			<FullProductName ProductID="rust-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-1.76.0-1.oe2203sp3.x86_64.rpm</FullProductName>
			<FullProductName ProductID="rust-analyzer-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-analyzer-1.76.0-1.oe2203sp3.x86_64.rpm</FullProductName>
			<FullProductName ProductID="rust-debuginfo-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-debuginfo-1.76.0-1.oe2203sp3.x86_64.rpm</FullProductName>
			<FullProductName ProductID="rust-debugsource-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-debugsource-1.76.0-1.oe2203sp3.x86_64.rpm</FullProductName>
			<FullProductName ProductID="rust-help-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-help-1.76.0-1.oe2203sp3.x86_64.rpm</FullProductName>
			<FullProductName ProductID="rust-std-static-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rust-std-static-1.76.0-1.oe2203sp3.x86_64.rpm</FullProductName>
			<FullProductName ProductID="rustfmt-1.76.0-1" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP3">rustfmt-1.76.0-1.oe2203sp3.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">Cargo is a Rust package manager. The Rust Security Response WG was notified that Cargo did not perform SSH host key verification when cloning indexes and dependencies via SSH. An attacker could exploit this to perform man-in-the-middle (MITM) attacks. This vulnerability has been assigned CVE-2022-46176. All Rust versions containing Cargo before 1.66.1 are vulnerable. Note that even if you don&apos;t explicitly use SSH for alternate registry indexes or crate dependencies, you might be affected by this vulnerability if you have configured git to replace HTTPS connections to GitHub with SSH (through git&apos;s [`url.&lt;base&gt;.insteadOf`][1] setting), as that&apos;d cause you to clone the crates.io index through SSH. Rust 1.66.1 will ensure Cargo checks the SSH host key and abort the connection if the server&apos;s public key is not already trusted. We recommend everyone to upgrade as soon as possible. </Note>
		</Notes>
		<ReleaseDate>2025-03-07</ReleaseDate>
		<CVE>CVE-2022-46176</CVE>
		<ProductStatuses>
			<Status Type="Fixed">
				<ProductID>openEuler-22.03-LTS-SP3</ProductID>
			</Status>
		</ProductStatuses>
		<Threats>
			<Threat Type="Impact">
				<Description>Medium</Description>
			</Threat>
		</Threats>
		<CVSSScoreSets>
			<ScoreSet>
				<BaseScore>5.9</BaseScore>
				<Vector>AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N</Vector>
			</ScoreSet>
		</CVSSScoreSets>
		<Remediations>
			<Remediation Type="Vendor Fix">
				<Description>rust security update</Description>
				<DATE>2025-03-07</DATE>
				<URL>https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2025-1237</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="1" xml:lang="en">Cargo downloads the Rust project’s dependencies and compiles the project. Cargo prior to version 0.72.2, bundled with Rust prior to version 1.71.1, did not respect the umask when extracting crate archives on UNIX-like systems. If the user downloaded a crate containing files writeable by any local user, another local user could exploit this to change the source code compiled and executed by the current user. To prevent existing cached extractions from being exploitable, the Cargo binary version 0.72.2 included in Rust 1.71.1 or later will purge caches generated by older Cargo versions automatically. As a workaround, configure one&apos;s system to prevent other local users from accessing the Cargo directory, usually located in `~/.cargo`.</Note>
		</Notes>
		<ReleaseDate>2025-03-07</ReleaseDate>
		<CVE>CVE-2023-38497</CVE>
		<ProductStatuses>
			<Status Type="Fixed">
				<ProductID>openEuler-22.03-LTS-SP3</ProductID>
			</Status>
		</ProductStatuses>
		<Threats>
			<Threat Type="Impact">
				<Description>High</Description>
			</Threat>
		</Threats>
		<CVSSScoreSets>
			<ScoreSet>
				<BaseScore>7.3</BaseScore>
				<Vector>AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H</Vector>
			</ScoreSet>
		</CVSSScoreSets>
		<Remediations>
			<Remediation Type="Vendor Fix">
				<Description>rust security update</Description>
				<DATE>2025-03-07</DATE>
				<URL>https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2025-1237</URL>
			</Remediation>
		</Remediations>
	</Vulnerability>
</cvrfdoc>