Amazon Linux AMI update for amazon-ssm-agent



Published: 2023-10-25
Risk High
Patch available YES
Number of vulnerabilities 3
CVE-ID CVE-2021-43565
CVE-2022-41723
CVE-2023-24538
CWE-ID CWE-20
CWE-400
CWE-94
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
Amazon Linux AMI
Operating systems & Components / Operating system

amazon-ssm-agent
Operating systems & Components / Operating system package or component

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains information about 3 vulnerabilities.

1) Input validation error

EUVDB-ID: #VU64805

Risk: Medium

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

CVE-ID: CVE-2021-43565

CWE-ID: CWE-20 - Improper input validation

Exploit availability: No

Description

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

The vulnerability exists due to insufficient validation of user-supplied input when parsing a Signer to ServerConfig.AddHostKey in cases where the Signer passed to AddHostKey does not implement AlgorithmSigner or the Signer passed to AddHostKey returns a key of type “ssh-rsa” from its PublicKey method. A remote attacker can pass specially crafted input to the application and perform a denial of service (DoS) attack.

Mitigation

Update the affected packages:

src:
    amazon-ssm-agent-3.2.1705.0-1.amzn1.src

x86_64:
    amazon-ssm-agent-debuginfo-3.2.1705.0-1.amzn1.x86_64
    amazon-ssm-agent-3.2.1705.0-1.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

amazon-ssm-agent: before 3.2.1705.0-1

External links

http://alas.aws.amazon.com/ALAS-2023-1866.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: #VU72686

Risk: Medium

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

CVE-ID: CVE-2022-41723

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 in the HPACK decoder. A remote attacker can send a specially crafted HTTP/2 stream to the application, cause resource exhaustion and perform a denial of service (DoS) attack.

Mitigation

Update the affected packages:

src:
    amazon-ssm-agent-3.2.1705.0-1.amzn1.src

x86_64:
    amazon-ssm-agent-debuginfo-3.2.1705.0-1.amzn1.x86_64
    amazon-ssm-agent-3.2.1705.0-1.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

amazon-ssm-agent: before 3.2.1705.0-1

External links

http://alas.aws.amazon.com/ALAS-2023-1866.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) Code Injection

EUVDB-ID: #VU74574

Risk: High

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

CVE-ID: CVE-2023-24538

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 improper input validation in html/template when handling JavaScript templates that contain backticks in code. If a template contains a Go template action within a JavaScript template literal, the contents of the action can be used to terminate the literal, injecting arbitrary JavaScript code into the Go template.

Mitigation

Update the affected packages:

src:
    amazon-ssm-agent-3.2.1705.0-1.amzn1.src

x86_64:
    amazon-ssm-agent-debuginfo-3.2.1705.0-1.amzn1.x86_64
    amazon-ssm-agent-3.2.1705.0-1.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

amazon-ssm-agent: before 3.2.1705.0-1

External links

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