Amazon Linux AMI update for sudo



Risk Low
Patch available YES
Number of vulnerabilities 3
CVE-ID CVE-2023-27320
CVE-2023-28486
CVE-2023-28487
CWE-ID CWE-415
CWE-78
Exploitation vector Local
Public exploit N/A
Vulnerable software
Amazon Linux AMI
Operating systems & Components / Operating system

sudo
Operating systems & Components / Operating system package or component

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains information about 3 vulnerabilities.

1) Double Free

EUVDB-ID: #VU72719

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

CWE-ID: CWE-415 - Double Free

Exploit availability: No

Description

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

The vulnerability exists due to a boundary error when matching a sudoers rule that contains a per-command chroot directive (CHROOT=dir). A local user can trigger a double free error and execute arbitrary code with elevated privileges.


Mitigation

Update the affected packages:

aarch64:
    sudo-python-plugin-debuginfo-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-logsrvd-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-python-plugin-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-debuginfo-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-devel-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-logsrvd-debuginfo-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-debugsource-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-1.9.13-1.p2.amzn2023.0.1.aarch64

src:
    sudo-1.9.13-1.p2.amzn2023.0.1.src

x86_64:
    sudo-python-plugin-debuginfo-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-devel-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-python-plugin-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-logsrvd-debuginfo-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-debuginfo-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-logsrvd-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-debugsource-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-1.9.13-1.p2.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

sudo: before 1.8.23-10.59

CPE2.3 External links

http://alas.aws.amazon.com/AL2023/ALAS-2023-135.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) OS Command Injection

EUVDB-ID: #VU74196

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

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: No

Description

The vulnerability allows a local user to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation when processing control characters in the log messages. A local user can inject specially crafted characters to the log messages and execute arbtirary OS commands on the system when the command is executed from the log (e.g. via the "sudoreplay -l").

Mitigation

Update the affected packages:

aarch64:
    sudo-python-plugin-debuginfo-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-logsrvd-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-python-plugin-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-debuginfo-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-devel-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-logsrvd-debuginfo-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-debugsource-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-1.9.13-1.p2.amzn2023.0.1.aarch64

src:
    sudo-1.9.13-1.p2.amzn2023.0.1.src

x86_64:
    sudo-python-plugin-debuginfo-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-devel-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-python-plugin-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-logsrvd-debuginfo-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-debuginfo-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-logsrvd-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-debugsource-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-1.9.13-1.p2.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

sudo: before 1.8.23-10.59

CPE2.3 External links

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

3) OS Command Injection

EUVDB-ID: #VU74197

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

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: No

Description

The vulnerability allows a local user to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation when processing control characters in the sudoreplay output. A local user can inject specially crafted characters to the log messages and execute arbitrary OS commands on the system.

Mitigation

Update the affected packages:

aarch64:
    sudo-python-plugin-debuginfo-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-logsrvd-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-python-plugin-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-debuginfo-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-devel-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-logsrvd-debuginfo-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-debugsource-1.9.13-1.p2.amzn2023.0.1.aarch64
    sudo-1.9.13-1.p2.amzn2023.0.1.aarch64

src:
    sudo-1.9.13-1.p2.amzn2023.0.1.src

x86_64:
    sudo-python-plugin-debuginfo-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-devel-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-python-plugin-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-logsrvd-debuginfo-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-debuginfo-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-logsrvd-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-debugsource-1.9.13-1.p2.amzn2023.0.1.x86_64
    sudo-1.9.13-1.p2.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

sudo: before 1.8.23-10.59

CPE2.3 External links

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



###SIDEBAR###