Amazon Linux AMI update for python27



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
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

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

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

CPE2.3 External links

https://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

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

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

CPE2.3 External links

https://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

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

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

CPE2.3 External links

https://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

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

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

CPE2.3 External links

https://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

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

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

CPE2.3 External links

https://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

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

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

CPE2.3 External links

https://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###