Amazon Linux AMI update for vim



Risk High
Patch available YES
Number of vulnerabilities 4
CVE-ID CVE-2023-1170
CVE-2023-1175
CVE-2023-1264
CVE-2023-1355
CWE-ID CWE-122
CWE-119
CWE-476
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 4 vulnerabilities.

1) Heap-based buffer overflow

EUVDB-ID: #VU73170

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

CWE-ID: CWE-122 - Heap-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 utf_ptr2char() function in mbyte.c. A remote attacker can trick the victim to open a specially crafted file, trigger a heap-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.1403-1.amzn2023.0.1.aarch64
    vim-minimal-debuginfo-9.0.1403-1.amzn2023.0.1.aarch64
    vim-minimal-9.0.1403-1.amzn2023.0.1.aarch64
    vim-common-debuginfo-9.0.1403-1.amzn2023.0.1.aarch64
    vim-debugsource-9.0.1403-1.amzn2023.0.1.aarch64
    vim-debuginfo-9.0.1403-1.amzn2023.0.1.aarch64
    vim-enhanced-9.0.1403-1.amzn2023.0.1.aarch64
    vim-common-9.0.1403-1.amzn2023.0.1.aarch64

noarch:
    vim-filesystem-9.0.1403-1.amzn2023.0.1.noarch
    vim-data-9.0.1403-1.amzn2023.0.1.noarch
    vim-default-editor-9.0.1403-1.amzn2023.0.1.noarch

src:
    vim-9.0.1403-1.amzn2023.0.1.src

x86_64:
    vim-enhanced-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-common-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-minimal-9.0.1403-1.amzn2023.0.1.x86_64
    vim-minimal-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-enhanced-9.0.1403-1.amzn2023.0.1.x86_64
    vim-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-debugsource-9.0.1403-1.amzn2023.0.1.x86_64
    vim-common-9.0.1403-1.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

vim: before 9.0.1403-1.76

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-151.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) Buffer overflow

EUVDB-ID: #VU73171

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

CWE-ID: CWE-119 - Memory corruption

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 yank_copy_line() function in register.c. A remote attacker can create a specially crafted, trick the victim into opening it, trigger memory corruption 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.1403-1.amzn2023.0.1.aarch64
    vim-minimal-debuginfo-9.0.1403-1.amzn2023.0.1.aarch64
    vim-minimal-9.0.1403-1.amzn2023.0.1.aarch64
    vim-common-debuginfo-9.0.1403-1.amzn2023.0.1.aarch64
    vim-debugsource-9.0.1403-1.amzn2023.0.1.aarch64
    vim-debuginfo-9.0.1403-1.amzn2023.0.1.aarch64
    vim-enhanced-9.0.1403-1.amzn2023.0.1.aarch64
    vim-common-9.0.1403-1.amzn2023.0.1.aarch64

noarch:
    vim-filesystem-9.0.1403-1.amzn2023.0.1.noarch
    vim-data-9.0.1403-1.amzn2023.0.1.noarch
    vim-default-editor-9.0.1403-1.amzn2023.0.1.noarch

src:
    vim-9.0.1403-1.amzn2023.0.1.src

x86_64:
    vim-enhanced-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-common-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-minimal-9.0.1403-1.amzn2023.0.1.x86_64
    vim-minimal-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-enhanced-9.0.1403-1.amzn2023.0.1.x86_64
    vim-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-debugsource-9.0.1403-1.amzn2023.0.1.x86_64
    vim-common-9.0.1403-1.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

vim: before 9.0.1403-1.76

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-151.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) NULL pointer dereference

EUVDB-ID: #VU73172

Risk: Low

CVSSv4.0: 0.2 [CVSS:4.0/AV:L/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-2023-1264

CWE-ID: CWE-476 - NULL Pointer Dereference

Exploit availability: No

Description

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

The vulnerability exists due to a NULL pointer dereference error within the utfc_ptr2len() function in mbyte.c.c. A remote attacker can trick the victim to open a specially crafted file and crash the editor.

Mitigation

Update the affected packages:

aarch64:
    vim-enhanced-debuginfo-9.0.1403-1.amzn2023.0.1.aarch64
    vim-minimal-debuginfo-9.0.1403-1.amzn2023.0.1.aarch64
    vim-minimal-9.0.1403-1.amzn2023.0.1.aarch64
    vim-common-debuginfo-9.0.1403-1.amzn2023.0.1.aarch64
    vim-debugsource-9.0.1403-1.amzn2023.0.1.aarch64
    vim-debuginfo-9.0.1403-1.amzn2023.0.1.aarch64
    vim-enhanced-9.0.1403-1.amzn2023.0.1.aarch64
    vim-common-9.0.1403-1.amzn2023.0.1.aarch64

noarch:
    vim-filesystem-9.0.1403-1.amzn2023.0.1.noarch
    vim-data-9.0.1403-1.amzn2023.0.1.noarch
    vim-default-editor-9.0.1403-1.amzn2023.0.1.noarch

src:
    vim-9.0.1403-1.amzn2023.0.1.src

x86_64:
    vim-enhanced-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-common-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-minimal-9.0.1403-1.amzn2023.0.1.x86_64
    vim-minimal-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-enhanced-9.0.1403-1.amzn2023.0.1.x86_64
    vim-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-debugsource-9.0.1403-1.amzn2023.0.1.x86_64
    vim-common-9.0.1403-1.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

vim: before 9.0.1403-1.76

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-151.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) NULL pointer dereference

EUVDB-ID: #VU74499

Risk: Low

CVSSv4.0: 1 [CVSS:4.0/AV:L/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-1355

CWE-ID: CWE-476 - NULL Pointer Dereference

Exploit availability: No

Description

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

The vulnerability exists due to a NULL pointer dereference error in within the class_object_index() function in vim9class.c in Vim. A remote attacker can perform a denial of service (DoS) attack.

Mitigation

Update the affected packages:

aarch64:
    vim-enhanced-debuginfo-9.0.1403-1.amzn2023.0.1.aarch64
    vim-minimal-debuginfo-9.0.1403-1.amzn2023.0.1.aarch64
    vim-minimal-9.0.1403-1.amzn2023.0.1.aarch64
    vim-common-debuginfo-9.0.1403-1.amzn2023.0.1.aarch64
    vim-debugsource-9.0.1403-1.amzn2023.0.1.aarch64
    vim-debuginfo-9.0.1403-1.amzn2023.0.1.aarch64
    vim-enhanced-9.0.1403-1.amzn2023.0.1.aarch64
    vim-common-9.0.1403-1.amzn2023.0.1.aarch64

noarch:
    vim-filesystem-9.0.1403-1.amzn2023.0.1.noarch
    vim-data-9.0.1403-1.amzn2023.0.1.noarch
    vim-default-editor-9.0.1403-1.amzn2023.0.1.noarch

src:
    vim-9.0.1403-1.amzn2023.0.1.src

x86_64:
    vim-enhanced-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-common-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-minimal-9.0.1403-1.amzn2023.0.1.x86_64
    vim-minimal-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-enhanced-9.0.1403-1.amzn2023.0.1.x86_64
    vim-debuginfo-9.0.1403-1.amzn2023.0.1.x86_64
    vim-debugsource-9.0.1403-1.amzn2023.0.1.x86_64
    vim-common-9.0.1403-1.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

vim: before 9.0.1403-1.76

CPE2.3 External links

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