Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

Security advisory

ALAS2-2022-1805

Active Moderate

ALAS2-2022-1805 (medium): vim

Published
07 Jun 2022
Updated
23 Sep 2025

Related CVEs

CVE identifiers linked by this publisher.

12
Publisher relationship details 12 records

Description

A flaw was found in vim. The vulnerability occurs due to a crash when recording and using Select mode and leads to an out-of-bounds read. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution. (CVE-2022-0393) A flaw was found in vim. The vulnerability occurs due to stack corruption when looking for spell

Read full publisher description 3822 characters

A flaw was found in vim. The vulnerability occurs due to a crash when recording and using Select mode and leads to an out-of-bounds read. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution. (CVE-2022-0393) A flaw was found in vim. The vulnerability occurs due to stack corruption when looking for spell suggestions and leads to a stack buffer overflow. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution. (CVE-2022-0408) A flaw was found in vim. The vulnerability occurs due to using freed memory when the substitute uses a recursive function call, resulting in a use-after-free vulnerability. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution. (CVE-2022-0413) A flaw was found in vim. The vulnerability occurs due to illegal memory access and leads to a heap buffer overflow. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution. (CVE-2022-0417) A flaw was found in vim. The vulnerability occurs due to using freed memory which results in a use-after-free vulnerability. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution. (CVE-2022-0443) A heap-buffer-overflow flaw was found in vim's win_lbr_chartabsize() function of charset.c file. The issue occurs due to an incorrect 'vartabstop' value. This flaw allows an attacker to trick a user into opening a specially crafted file, triggering a heap-overflow, and can cause an application to crash, eventually leading to a denial of service. (CVE-2022-0714) A flaw was found in vim. The vulnerability occurs due to crashes within specific regexp patterns and strings and leads to an out-of-range vulnerability. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution. (CVE-2022-0729) A heap buffer overflow flaw was found in vim's suggest_try_change() function of the spellsuggest.c file. This flaw allows an attacker to trick a user into opening a crafted file, triggering a heap-overflow and causing an application to crash, which leads to a denial of service. (CVE-2022-0943) A heap use-after-free vulnerability was found in Vim's utf_ptr2char() function of the src/mbyte.c file. This flaw occurs because vim is using a buffer line after it has been freed in the old regexp engine. This flaw allows an attacker to trick a user into opening a specially crafted file, triggering a heap use-after-free that causes an application to crash, possibly executing code and corrupting memory. (CVE-2022-1154) A heap buffer overflow flaw was found in vim's get_one_sourceline() function of scriptfile.c file. This flaw occurs when source can read past the end of the copied line. This flaw allows an attacker to trick a user into opening a crafted file, triggering a heap-overflow and causing an application to crash, which leads to a denial of service. (CVE-2022-1160) A global heap buffer overflow vulnerability was found in vim's skip_range() function of the src/ex_docmd.c file. This flaw occurs because vim uses an invalid pointer with V: in Ex mode. This flaw allows an attacker to trick a user into opening a specially crafted file, triggering a heap buffer overflow that causes an application to crash, leading to a denial of service. (CVE-2022-1381) A vulnerability was found in Vim. The issue occurs when using a number in a string for the lambda name, triggering an out-of-range pointer offset vulnerability. This flaw allows an attacker to trick a user into opening a crafted script containing an argument as a number and then using it as a string pointer to access any memory location, causing an application to crash and possibly access some memory. (CVE-2022-1420)

Solution

Run yum update vim or yum update --advisory ALAS2-2022-1805 to update your system.

Affected packages

Each item is one publisher package occurrence. Shared details are shown once; differences stay with the occurrence.

5

Shared package data

Applies to all 5 occurrences
  1. 1vim

    Occurrence-specific details
    Architecture
    aarch64

    Replacement RPMs

    • vim-common-8.2.4857-1.amzn2.0.1.aarch64
    • vim-minimal-8.2.4857-1.amzn2.0.1.aarch64
    • vim-enhanced-8.2.4857-1.amzn2.0.1.aarch64
    • vim-X11-8.2.4857-1.amzn2.0.1.aarch64
    • vim-debuginfo-8.2.4857-1.amzn2.0.1.aarch64
  2. 2vim

    Occurrence-specific details
    Architecture
    i686

    Replacement RPMs

    • vim-common-8.2.4857-1.amzn2.0.1.i686
    • vim-minimal-8.2.4857-1.amzn2.0.1.i686
    • vim-enhanced-8.2.4857-1.amzn2.0.1.i686
    • vim-X11-8.2.4857-1.amzn2.0.1.i686
    • vim-debuginfo-8.2.4857-1.amzn2.0.1.i686
  3. 3vim

    Occurrence-specific details
    Architecture
    noarch

    Replacement RPMs

    • vim-filesystem-8.2.4857-1.amzn2.0.1.noarch
    • vim-data-8.2.4857-1.amzn2.0.1.noarch
  4. 4vim

    Occurrence-specific details
    Architecture
    src

    Replacement RPMs

    • vim-8.2.4857-1.amzn2.0.1.src
  5. 5vim

    Occurrence-specific details
    Architecture
    x86_64

    Replacement RPMs

    • vim-common-8.2.4857-1.amzn2.0.1.x86_64
    • vim-minimal-8.2.4857-1.amzn2.0.1.x86_64
    • vim-enhanced-8.2.4857-1.amzn2.0.1.x86_64
    • vim-X11-8.2.4857-1.amzn2.0.1.x86_64
    • vim-debuginfo-8.2.4857-1.amzn2.0.1.x86_64

CVSS assessments

Publisher supplied scores and vectors; these do not replace the advisory severity above.

0

No CVSS assessments were provided.

Publisher references

24
  • CVE-2022-0393 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0393
  • CVE-2022-0408 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0408
  • CVE-2022-0413 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0413
  • CVE-2022-0417 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0417
  • CVE-2022-0443 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0443
  • CVE-2022-0714 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0714
  • CVE-2022-0729 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0729
  • CVE-2022-0943 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0943
  • CVE-2022-1154 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-1154
  • CVE-2022-1160 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-1160
  • CVE-2022-1381 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-1381
  • CVE-2022-1420 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-1420
  • CVE-2022-0393 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0393
  • CVE-2022-0408 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0408
  • CVE-2022-0413 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0413
  • CVE-2022-0417 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0417
  • CVE-2022-0443 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0443
  • CVE-2022-0714 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0714
  • CVE-2022-0729 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0729
  • CVE-2022-0943 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0943
  • CVE-2022-1154 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-1154
  • CVE-2022-1160 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-1160
  • CVE-2022-1381 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-1381
  • CVE-2022-1420 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-1420

Provenance

Schema version
Unknown
Parser version
amazon-alas/1
Severity origin
publisher
Publisher document provenance records
KindLocatorSource commitDocument hashParserFetched
html_pagehttps://alas.aws.amazon.com/AL2/ALAS2-2022-1805.htmlUnknownbf23e4fa2ea1458a0cbbf0ceb5aaa317f1782ac5c3a191db6b4cbe431b552e23amazon-alas/12026-11-16T08:26:43Z
rss_entryhttps://alas.aws.amazon.com/AL2/ALAS2-2022-1805.htmlUnknownUnknownamazon-alas/12026-11-16T08:26:43Z
catalog_entryhttps://alas.aws.amazon.com/AL2/ALAS2-2022-1805.htmlUnknownUnknownamazon-alas/12026-11-16T08:26:43Z

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected