Amazon Linux AMI update for rust



Risk Medium
Patch available YES
Number of vulnerabilities 3
CVE-ID CVE-2022-36113
CVE-2022-36114
CVE-2022-46176
CWE-ID CWE-61
CWE-400
CWE-347
Exploitation vector Network
Public exploit N/A
Vulnerable software
Amazon Linux AMI
Operating systems & Components / Operating system

rust
Operating systems & Components / Operating system package or component

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains information about 3 vulnerabilities.

1) UNIX symbolic link following

EUVDB-ID: #VU67717

Risk: Low

CVSSv4.0: 1.2 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear]

CVE-ID: CVE-2022-36113

CWE-ID: CWE-61 - UNIX Symbolic Link (Symlink) Following

Exploit availability: No

Description

The vulnerability allows a remote attacker to corrupt arbitrary files on the system.

The vulnerability exists due to a symlink following issue. A remote attacker can add a malicious ".cargo-ok" symbolic link into the package, point the link to an arbitrary file on the system and corrupt it during package extraction.

Mitigation

Update the affected packages:

aarch64:
    clippy-1.66.1-1.amzn2023.0.3.aarch64
    rust-std-static-1.66.1-1.amzn2023.0.3.aarch64
    rust-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    cargo-1.66.1-1.amzn2023.0.3.aarch64
    rust-analyzer-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    rust-analysis-1.66.1-1.amzn2023.0.3.aarch64
    clippy-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    rust-1.66.1-1.amzn2023.0.3.aarch64
    rustfmt-1.66.1-1.amzn2023.0.3.aarch64
    rustfmt-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    rust-analyzer-1.66.1-1.amzn2023.0.3.aarch64
    cargo-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    rust-debugsource-1.66.1-1.amzn2023.0.3.aarch64
    rust-doc-1.66.1-1.amzn2023.0.3.aarch64

noarch:
    rust-lldb-1.66.1-1.amzn2023.0.3.noarch
    rust-gdb-1.66.1-1.amzn2023.0.3.noarch
    rust-std-static-wasm32-unknown-unknown-1.66.1-1.amzn2023.0.3.noarch
    rust-debugger-common-1.66.1-1.amzn2023.0.3.noarch
    rust-std-static-wasm32-wasi-1.66.1-1.amzn2023.0.3.noarch
    rust-src-1.66.1-1.amzn2023.0.3.noarch

src:
    rust-1.66.1-1.amzn2023.0.3.src

x86_64:
    rust-analysis-1.66.1-1.amzn2023.0.3.x86_64
    rust-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    clippy-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    rust-analyzer-1.66.1-1.amzn2023.0.3.x86_64
    rust-analyzer-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    clippy-1.66.1-1.amzn2023.0.3.x86_64
    rustfmt-1.66.1-1.amzn2023.0.3.x86_64
    rust-std-static-1.66.1-1.amzn2023.0.3.x86_64
    cargo-1.66.1-1.amzn2023.0.3.x86_64
    rustfmt-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    cargo-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    rust-1.66.1-1.amzn2023.0.3.x86_64
    rust-debugsource-1.66.1-1.amzn2023.0.3.x86_64
    rust-doc-1.66.1-1.amzn2023.0.3.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

rust: before 1.66.1-1

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-109.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Resource exhaustion

EUVDB-ID: #VU67718

Risk: Medium

CVSSv4.0: 4.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2022-36114

CWE-ID: CWE-400 - Resource exhaustion

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to application does not properly control consumption of internal resources when processing .zip files. A remote attacker can trigger resource exhaustion and perform a denial of service (DoS) attack, aka "zip bomb" attack.

Mitigation

Update the affected packages:

aarch64:
    clippy-1.66.1-1.amzn2023.0.3.aarch64
    rust-std-static-1.66.1-1.amzn2023.0.3.aarch64
    rust-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    cargo-1.66.1-1.amzn2023.0.3.aarch64
    rust-analyzer-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    rust-analysis-1.66.1-1.amzn2023.0.3.aarch64
    clippy-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    rust-1.66.1-1.amzn2023.0.3.aarch64
    rustfmt-1.66.1-1.amzn2023.0.3.aarch64
    rustfmt-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    rust-analyzer-1.66.1-1.amzn2023.0.3.aarch64
    cargo-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    rust-debugsource-1.66.1-1.amzn2023.0.3.aarch64
    rust-doc-1.66.1-1.amzn2023.0.3.aarch64

noarch:
    rust-lldb-1.66.1-1.amzn2023.0.3.noarch
    rust-gdb-1.66.1-1.amzn2023.0.3.noarch
    rust-std-static-wasm32-unknown-unknown-1.66.1-1.amzn2023.0.3.noarch
    rust-debugger-common-1.66.1-1.amzn2023.0.3.noarch
    rust-std-static-wasm32-wasi-1.66.1-1.amzn2023.0.3.noarch
    rust-src-1.66.1-1.amzn2023.0.3.noarch

src:
    rust-1.66.1-1.amzn2023.0.3.src

x86_64:
    rust-analysis-1.66.1-1.amzn2023.0.3.x86_64
    rust-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    clippy-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    rust-analyzer-1.66.1-1.amzn2023.0.3.x86_64
    rust-analyzer-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    clippy-1.66.1-1.amzn2023.0.3.x86_64
    rustfmt-1.66.1-1.amzn2023.0.3.x86_64
    rust-std-static-1.66.1-1.amzn2023.0.3.x86_64
    cargo-1.66.1-1.amzn2023.0.3.x86_64
    rustfmt-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    cargo-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    rust-1.66.1-1.amzn2023.0.3.x86_64
    rust-debugsource-1.66.1-1.amzn2023.0.3.x86_64
    rust-doc-1.66.1-1.amzn2023.0.3.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

rust: before 1.66.1-1

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-109.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

3) Improper Verification of Cryptographic Signature

EUVDB-ID: #VU71491

Risk: Medium

CVSSv4.0: 4.6 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2022-46176

CWE-ID: CWE-347 - Improper Verification of Cryptographic Signature

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform MitM attack.

The vulnerability exists due to Cargo does not perform SSH host key verification when cloning indexes and dependencies via SSH. A remote attacker can perform MitM attack.

Mitigation

Update the affected packages:

aarch64:
    clippy-1.66.1-1.amzn2023.0.3.aarch64
    rust-std-static-1.66.1-1.amzn2023.0.3.aarch64
    rust-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    cargo-1.66.1-1.amzn2023.0.3.aarch64
    rust-analyzer-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    rust-analysis-1.66.1-1.amzn2023.0.3.aarch64
    clippy-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    rust-1.66.1-1.amzn2023.0.3.aarch64
    rustfmt-1.66.1-1.amzn2023.0.3.aarch64
    rustfmt-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    rust-analyzer-1.66.1-1.amzn2023.0.3.aarch64
    cargo-debuginfo-1.66.1-1.amzn2023.0.3.aarch64
    rust-debugsource-1.66.1-1.amzn2023.0.3.aarch64
    rust-doc-1.66.1-1.amzn2023.0.3.aarch64

noarch:
    rust-lldb-1.66.1-1.amzn2023.0.3.noarch
    rust-gdb-1.66.1-1.amzn2023.0.3.noarch
    rust-std-static-wasm32-unknown-unknown-1.66.1-1.amzn2023.0.3.noarch
    rust-debugger-common-1.66.1-1.amzn2023.0.3.noarch
    rust-std-static-wasm32-wasi-1.66.1-1.amzn2023.0.3.noarch
    rust-src-1.66.1-1.amzn2023.0.3.noarch

src:
    rust-1.66.1-1.amzn2023.0.3.src

x86_64:
    rust-analysis-1.66.1-1.amzn2023.0.3.x86_64
    rust-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    clippy-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    rust-analyzer-1.66.1-1.amzn2023.0.3.x86_64
    rust-analyzer-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    clippy-1.66.1-1.amzn2023.0.3.x86_64
    rustfmt-1.66.1-1.amzn2023.0.3.x86_64
    rust-std-static-1.66.1-1.amzn2023.0.3.x86_64
    cargo-1.66.1-1.amzn2023.0.3.x86_64
    rustfmt-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    cargo-debuginfo-1.66.1-1.amzn2023.0.3.x86_64
    rust-1.66.1-1.amzn2023.0.3.x86_64
    rust-debugsource-1.66.1-1.amzn2023.0.3.x86_64
    rust-doc-1.66.1-1.amzn2023.0.3.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

rust: before 1.66.1-1

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-109.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###