QID 356783

Date Published: 2023-12-06

QID 356783: Amazon Linux Security Advisory for vim : ALAS-2023-1893

Vim is an improved version of the good old unix editor vi.
Heap-use-after-free in memory allocated in the function `ga_grow_inner` in in the file `src/alloc.c` at line 748, which is freed in the file `src/ex_docmd.c` in the function `do_cmdline` at line 1010 and then used again in `src/cmdhist.c` at line 759.
When using the `:history` command, it's possible that the provided argument overflows the accepted value.
Causing an integer overflow and potentially later an use-after-free.
This vulnerability has been patched in version 9.0.2068. (
( CVE-2023-46246) heap-based buffer overflow in github repository vim/vim prior to 9.0.1969. (
( CVE-2023-5344) null pointer dereference in github repository vim/vim prior to 20d161ace307e28690229b68584f2d84556f8960. (
( CVE-2023-5441) use after free in github repository vim/vim prior to v9.0.2010. (
( CVE-2023-5535)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as High - 7.8 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS-2023-1893 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 356783

    Software Advisories
    Advisory ID Software Component Link
    ALAS-2023-1893 amazon linux URL Logo alas.aws.amazon.com/ALAS-2023-1893.html