Amazon Linux AMI update for python3.9



Risk Medium
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2022-42919
CVE-2022-45061
CWE-ID CWE-502
CWE-400
Exploitation vector Network
Public exploit N/A
Vulnerable software
Amazon Linux AMI
Operating systems & Components / Operating system

python3.9
Operating systems & Components / Operating system package or component

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) Deserialization of Untrusted Data

EUVDB-ID: #VU69391

Risk: Low

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

CVE-ID: CVE-2022-42919

CWE-ID: CWE-502 - Deserialization of Untrusted Data

Exploit availability: No

Description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to Python multiprocessing library, when used with the forkserver start method on Linux allows pickles to be deserialized from any user in the same machine local network namespace, which in many system configurations means any user on the same machine.A local user can execute arbitrary code with privileges of the user running the any forkserver process.

Mitigation

Update the affected packages:

aarch64:
    python3-3.9.16-1.amzn2023.0.2.aarch64
    python3.9-debugsource-3.9.16-1.amzn2023.0.2.aarch64
    python3-devel-3.9.16-1.amzn2023.0.2.aarch64
    python3-tkinter-3.9.16-1.amzn2023.0.2.aarch64
    python3-debug-3.9.16-1.amzn2023.0.2.aarch64
    python3-idle-3.9.16-1.amzn2023.0.2.aarch64
    python3.9-debuginfo-3.9.16-1.amzn2023.0.2.aarch64
    python3-libs-3.9.16-1.amzn2023.0.2.aarch64
    python3-test-3.9.16-1.amzn2023.0.2.aarch64

noarch:
    python-unversioned-command-3.9.16-1.amzn2023.0.2.noarch

src:
    python3.9-3.9.16-1.amzn2023.0.2.src

x86_64:
    python3-3.9.16-1.amzn2023.0.2.x86_64
    python3-devel-3.9.16-1.amzn2023.0.2.x86_64
    python3-tkinter-3.9.16-1.amzn2023.0.2.x86_64
    python3-idle-3.9.16-1.amzn2023.0.2.x86_64
    python3.9-debugsource-3.9.16-1.amzn2023.0.2.x86_64
    python3.9-debuginfo-3.9.16-1.amzn2023.0.2.x86_64
    python3-debug-3.9.16-1.amzn2023.0.2.x86_64
    python3-libs-3.9.16-1.amzn2023.0.2.x86_64
    python3-test-3.9.16-1.amzn2023.0.2.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

python3.9: before 3.9.16-1

CPE2.3 External links

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


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

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

2) Resource exhaustion

EUVDB-ID: #VU69392

Risk: Medium

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

CVE-ID: CVE-2022-45061

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 usage of an unnecessary quadratic algorithm in one path when processing some inputs to the IDNA (RFC 3490) decoder. A remote attacker can pass a specially crafted name to he decoder, trigger resource excessive CPU consumption and perform a denial of service (DoS) attack.

Mitigation

Update the affected packages:

aarch64:
    python3-3.9.16-1.amzn2023.0.2.aarch64
    python3.9-debugsource-3.9.16-1.amzn2023.0.2.aarch64
    python3-devel-3.9.16-1.amzn2023.0.2.aarch64
    python3-tkinter-3.9.16-1.amzn2023.0.2.aarch64
    python3-debug-3.9.16-1.amzn2023.0.2.aarch64
    python3-idle-3.9.16-1.amzn2023.0.2.aarch64
    python3.9-debuginfo-3.9.16-1.amzn2023.0.2.aarch64
    python3-libs-3.9.16-1.amzn2023.0.2.aarch64
    python3-test-3.9.16-1.amzn2023.0.2.aarch64

noarch:
    python-unversioned-command-3.9.16-1.amzn2023.0.2.noarch

src:
    python3.9-3.9.16-1.amzn2023.0.2.src

x86_64:
    python3-3.9.16-1.amzn2023.0.2.x86_64
    python3-devel-3.9.16-1.amzn2023.0.2.x86_64
    python3-tkinter-3.9.16-1.amzn2023.0.2.x86_64
    python3-idle-3.9.16-1.amzn2023.0.2.x86_64
    python3.9-debugsource-3.9.16-1.amzn2023.0.2.x86_64
    python3.9-debuginfo-3.9.16-1.amzn2023.0.2.x86_64
    python3-debug-3.9.16-1.amzn2023.0.2.x86_64
    python3-libs-3.9.16-1.amzn2023.0.2.x86_64
    python3-test-3.9.16-1.amzn2023.0.2.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

python3.9: before 3.9.16-1

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-104.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###