Amazon Linux AMI update for python27



Published: 2022-06-12
Risk Medium
Patch available YES
Number of vulnerabilities 6
CVE-ID CVE-2020-27619
CVE-2021-23336
CVE-2021-3733
CVE-2021-3737
CVE-2021-4189
CVE-2022-0391
CWE-ID CWE-94
CWE-20
CWE-399
CWE-835
CWE-918
CWE-93
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
Amazon Linux AMI
Operating systems & Components / Operating system

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains information about 6 vulnerabilities.

1) Code Injection

EUVDB-ID: #VU50621

Risk: Medium

CVSSv3.1: 7.7 [CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2020-27619

CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to Python executed eval() function on the code, retrieved via HTTP protocol in Lib/test/multibytecodec_support.py CJK codec tests. A remote attacker with ability to intercept network traffic can perform a Man-in-the-Middle (MitM) attack and execute arbitrary Python code on the system.

Mitigation

Update the affected packages:

i686:
    python27-debuginfo-2.7.18-2.142.amzn1.i686
    python27-libs-2.7.18-2.142.amzn1.i686
    python27-2.7.18-2.142.amzn1.i686
    python27-test-2.7.18-2.142.amzn1.i686
    python27-tools-2.7.18-2.142.amzn1.i686
    python27-devel-2.7.18-2.142.amzn1.i686

src:
    python27-2.7.18-2.142.amzn1.src

x86_64:
    python27-debuginfo-2.7.18-2.142.amzn1.x86_64
    python27-tools-2.7.18-2.142.amzn1.x86_64
    python27-libs-2.7.18-2.142.amzn1.x86_64
    python27-devel-2.7.18-2.142.amzn1.x86_64
    python27-2.7.18-2.142.amzn1.x86_64
    python27-test-2.7.18-2.142.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

External links

http://alas.aws.amazon.com/ALAS-2022-1593.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the local network (LAN).

Is there known malware, which exploits this vulnerability?

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

2) Input validation error

EUVDB-ID: #VU50814

Risk: Medium

CVSSv3.1: 4.6 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-23336

CWE-ID: CWE-20 - Improper input validation

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform web cache spoofing attack.

The vulnerability exists due to insufficient validation of user-supplied input in django.utils.http.limited_parse_qsl() when parsing strings with a semicolon (";"). A remote attacker can pass specially crafted data to the application and perform a spoofing attack.

Mitigation

Update the affected packages:

i686:
    python27-debuginfo-2.7.18-2.142.amzn1.i686
    python27-libs-2.7.18-2.142.amzn1.i686
    python27-2.7.18-2.142.amzn1.i686
    python27-test-2.7.18-2.142.amzn1.i686
    python27-tools-2.7.18-2.142.amzn1.i686
    python27-devel-2.7.18-2.142.amzn1.i686

src:
    python27-2.7.18-2.142.amzn1.src

x86_64:
    python27-debuginfo-2.7.18-2.142.amzn1.x86_64
    python27-tools-2.7.18-2.142.amzn1.x86_64
    python27-libs-2.7.18-2.142.amzn1.x86_64
    python27-devel-2.7.18-2.142.amzn1.x86_64
    python27-2.7.18-2.142.amzn1.x86_64
    python27-test-2.7.18-2.142.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

External links

http://alas.aws.amazon.com/ALAS-2022-1593.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) Resource management error

EUVDB-ID: #VU58295

Risk: Low

CVSSv3.1: 2.7 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-3733

CWE-ID: CWE-399 - Resource Management Errors

Exploit availability: No

Description

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

The vulnerability exists due to improper management of internal resources within the application within the AbstractBasicAuthHandler class in urllib. A remote attacker with control over the server can perform regular expression denial of service attack during authentication.

Mitigation

Update the affected packages:

i686:
    python27-debuginfo-2.7.18-2.142.amzn1.i686
    python27-libs-2.7.18-2.142.amzn1.i686
    python27-2.7.18-2.142.amzn1.i686
    python27-test-2.7.18-2.142.amzn1.i686
    python27-tools-2.7.18-2.142.amzn1.i686
    python27-devel-2.7.18-2.142.amzn1.i686

src:
    python27-2.7.18-2.142.amzn1.src

x86_64:
    python27-debuginfo-2.7.18-2.142.amzn1.x86_64
    python27-tools-2.7.18-2.142.amzn1.x86_64
    python27-libs-2.7.18-2.142.amzn1.x86_64
    python27-devel-2.7.18-2.142.amzn1.x86_64
    python27-2.7.18-2.142.amzn1.x86_64
    python27-test-2.7.18-2.142.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

External links

http://alas.aws.amazon.com/ALAS-2022-1593.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.

4) Infinite loop

EUVDB-ID: #VU59089

Risk: Low

CVSSv3.1: 3.8 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-3737

CWE-ID: CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')

Exploit availability: No

Description

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

The vulnerability exists due to infinite loop. A remote attacker who controls a malicious server can force the client to enter an infinite loop on a 100 Continue response.

Mitigation

Update the affected packages:

i686:
    python27-debuginfo-2.7.18-2.142.amzn1.i686
    python27-libs-2.7.18-2.142.amzn1.i686
    python27-2.7.18-2.142.amzn1.i686
    python27-test-2.7.18-2.142.amzn1.i686
    python27-tools-2.7.18-2.142.amzn1.i686
    python27-devel-2.7.18-2.142.amzn1.i686

src:
    python27-2.7.18-2.142.amzn1.src

x86_64:
    python27-debuginfo-2.7.18-2.142.amzn1.x86_64
    python27-tools-2.7.18-2.142.amzn1.x86_64
    python27-libs-2.7.18-2.142.amzn1.x86_64
    python27-devel-2.7.18-2.142.amzn1.x86_64
    python27-2.7.18-2.142.amzn1.x86_64
    python27-test-2.7.18-2.142.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

External links

http://alas.aws.amazon.com/ALAS-2022-1593.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.

5) Server-Side Request Forgery (SSRF)

EUVDB-ID: #VU61681

Risk: Medium

CVSSv3.1: 5.3 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-4189

CWE-ID: CWE-918 - Server-Side Request Forgery (SSRF)

Exploit availability: No

Description

The disclosed vulnerability allows a remote attacker to perform SSRF attacks.

The vulnerability exists due to insufficient validation of user-supplied input in the FTP (File Transfer Protocol) client library when using it in PASV (passive) mode. A remote attacker can set up a malicious FTP server, trick the FTP client in Python into connecting back to a given IP address and port, which can lead to FTP client scanning ports which otherwise would not have been possible.

Mitigation

Update the affected packages:

i686:
    python27-debuginfo-2.7.18-2.142.amzn1.i686
    python27-libs-2.7.18-2.142.amzn1.i686
    python27-2.7.18-2.142.amzn1.i686
    python27-test-2.7.18-2.142.amzn1.i686
    python27-tools-2.7.18-2.142.amzn1.i686
    python27-devel-2.7.18-2.142.amzn1.i686

src:
    python27-2.7.18-2.142.amzn1.src

x86_64:
    python27-debuginfo-2.7.18-2.142.amzn1.x86_64
    python27-tools-2.7.18-2.142.amzn1.x86_64
    python27-libs-2.7.18-2.142.amzn1.x86_64
    python27-devel-2.7.18-2.142.amzn1.x86_64
    python27-2.7.18-2.142.amzn1.x86_64
    python27-test-2.7.18-2.142.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

External links

http://alas.aws.amazon.com/ALAS-2022-1593.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.

6) CRLF injection

EUVDB-ID: #VU61675

Risk: Medium

CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-0391

CWE-ID: CWE-93 - Improper Neutralization of CRLF Sequences ('CRLF Injection')

Exploit availability: No

Description

The vulnerability allows a remote attacker to inject arbitrary data in server response.

The vulnerability exists due to insufficient validation of attacker-supplied data within the urllib.parse module in Python. A remote attacker can pass specially crafted data to the application containing CR-LF characters and modify application behavior.

Mitigation

Update the affected packages:

i686:
    python27-debuginfo-2.7.18-2.142.amzn1.i686
    python27-libs-2.7.18-2.142.amzn1.i686
    python27-2.7.18-2.142.amzn1.i686
    python27-test-2.7.18-2.142.amzn1.i686
    python27-tools-2.7.18-2.142.amzn1.i686
    python27-devel-2.7.18-2.142.amzn1.i686

src:
    python27-2.7.18-2.142.amzn1.src

x86_64:
    python27-debuginfo-2.7.18-2.142.amzn1.x86_64
    python27-tools-2.7.18-2.142.amzn1.x86_64
    python27-libs-2.7.18-2.142.amzn1.x86_64
    python27-devel-2.7.18-2.142.amzn1.x86_64
    python27-2.7.18-2.142.amzn1.x86_64
    python27-test-2.7.18-2.142.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

External links

http://alas.aws.amazon.com/ALAS-2022-1593.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###