Lucene search

K
archlinuxArchLinuxASA-202204-12
HistoryApr 15, 2022 - 12:00 a.m.

[ASA-202204-12] vim: arbitrary code execution

2022-04-1500:00:00
security.archlinux.org
45
vim
package
arbitrary code execution
upgrade
cve-2022-1154
cve-2022-1160
vulnerability
buffer overflow

EPSS

0.002

Percentile

55.5%

Arch Linux Security Advisory ASA-202204-12

Severity: High
Date : 2022-04-15
CVE-ID : CVE-2022-1154 CVE-2022-1160
Package : vim
Type : arbitrary code execution
Remote : No
Link : https://security.archlinux.org/AVG-2662

Summary

The package vim before version 8.2.4651-1 is vulnerable to arbitrary
code execution.

Resolution

Upgrade to 8.2.4651-1.

pacman -Syu “vim>=8.2.4651-1”

The problems have been fixed upstream in version 8.2.4651.

Workaround

None.

Description

  • CVE-2022-1154 (arbitrary code execution)

Use after free in utf_ptr2char in vim prior to 8.2.4646 while using
buffer line after it has been freed in old regexp engine.

  • CVE-2022-1160 (arbitrary code execution)

“source” can read past end of copied line resulting in heap buffer
overflow in get_one_sourceline in vim prior to 8.2.4647

Impact

References

https://github.com/vim/vim/commit/b55986c52d4cd88a22d0b0b0e8a79547ba13e1d5
https://huntr.dev/bounties/7f0ec6bc-ea0e-45b0-8128-caac72d23425
https://github.com/vim/vim/commit/2bdad6126778f907c0b98002bfebf0e611a3f5db
https://huntr.dev/bounties/a6f3222d-2472-439d-8881-111138a5694c/
https://security.archlinux.org/CVE-2022-1154
https://security.archlinux.org/CVE-2022-1160

OSVersionArchitecturePackageVersionFilename
ArchLinuxanyanyvim< 8.2.4651-1UNKNOWN