Amazon Linux AMI update for vim



Risk High
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2023-48706
CVE-2024-22667
CWE-ID CWE-416
CWE-121
Exploitation vector Network
Public exploit N/A
Vulnerable software
Amazon Linux AMI
Operating systems & Components / Operating system

vim
Operating systems & Components / Operating system package or component

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) Use-after-free

EUVDB-ID: #VU83442

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

CWE-ID: CWE-416 - Use After Free

Exploit availability: No

Description

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

The vulnerability exists due to a use-after-free error within the ex_substitute() function in src/charset.c when executing the ":s" command. A remote attacker can trick the victim to open a specially crafted file, trigger a use-after-free error and crash the application.


Mitigation

Update the affected packages:

aarch64:
    vim-enhanced-debuginfo-9.0.2153-1.amzn2023.aarch64
    vim-minimal-9.0.2153-1.amzn2023.aarch64
    xxd-9.0.2153-1.amzn2023.aarch64
    vim-enhanced-9.0.2153-1.amzn2023.aarch64
    vim-debuginfo-9.0.2153-1.amzn2023.aarch64
    vim-minimal-debuginfo-9.0.2153-1.amzn2023.aarch64
    xxd-debuginfo-9.0.2153-1.amzn2023.aarch64
    vim-debugsource-9.0.2153-1.amzn2023.aarch64
    vim-common-9.0.2153-1.amzn2023.aarch64

noarch:
    vim-default-editor-9.0.2153-1.amzn2023.noarch
    vim-filesystem-9.0.2153-1.amzn2023.noarch
    vim-data-9.0.2153-1.amzn2023.noarch

src:
    vim-9.0.2153-1.amzn2023.src

x86_64:
    vim-enhanced-debuginfo-9.0.2153-1.amzn2023.x86_64
    xxd-9.0.2153-1.amzn2023.x86_64
    vim-minimal-9.0.2153-1.amzn2023.x86_64
    xxd-debuginfo-9.0.2153-1.amzn2023.x86_64
    vim-debuginfo-9.0.2153-1.amzn2023.x86_64
    vim-enhanced-9.0.2153-1.amzn2023.x86_64
    vim-minimal-debuginfo-9.0.2153-1.amzn2023.x86_64
    vim-debugsource-9.0.2153-1.amzn2023.x86_64
    vim-common-9.0.2153-1.amzn2023.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

vim: All versions

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2024-518.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) Stack-based buffer overflow

EUVDB-ID: #VU87189

Risk: High

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

CVE-ID: CVE-2024-22667

CWE-ID: CWE-121 - Stack-based buffer overflow

Exploit availability: No

Description

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

The vulnerability exists due to a boundary error within the did_set_langmap() function in map.c. A remote attacker can trick the victim to open a specially crafted file, trigger a stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Update the affected packages:

aarch64:
    vim-enhanced-debuginfo-9.0.2153-1.amzn2023.aarch64
    vim-minimal-9.0.2153-1.amzn2023.aarch64
    xxd-9.0.2153-1.amzn2023.aarch64
    vim-enhanced-9.0.2153-1.amzn2023.aarch64
    vim-debuginfo-9.0.2153-1.amzn2023.aarch64
    vim-minimal-debuginfo-9.0.2153-1.amzn2023.aarch64
    xxd-debuginfo-9.0.2153-1.amzn2023.aarch64
    vim-debugsource-9.0.2153-1.amzn2023.aarch64
    vim-common-9.0.2153-1.amzn2023.aarch64

noarch:
    vim-default-editor-9.0.2153-1.amzn2023.noarch
    vim-filesystem-9.0.2153-1.amzn2023.noarch
    vim-data-9.0.2153-1.amzn2023.noarch

src:
    vim-9.0.2153-1.amzn2023.src

x86_64:
    vim-enhanced-debuginfo-9.0.2153-1.amzn2023.x86_64
    xxd-9.0.2153-1.amzn2023.x86_64
    vim-minimal-9.0.2153-1.amzn2023.x86_64
    xxd-debuginfo-9.0.2153-1.amzn2023.x86_64
    vim-debuginfo-9.0.2153-1.amzn2023.x86_64
    vim-enhanced-9.0.2153-1.amzn2023.x86_64
    vim-minimal-debuginfo-9.0.2153-1.amzn2023.x86_64
    vim-debugsource-9.0.2153-1.amzn2023.x86_64
    vim-common-9.0.2153-1.amzn2023.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

vim: All versions

CPE2.3 External links

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