Cloudanix VulnDB

CVE-2022-2208

Medium · 5.5

CVSS

5.5

EPSS

1.4%

Published

Jun 27, 2022

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in the Vim text editor can make it crash when someone opens a specially made file, interrupting work until the program is updated.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Moderate
Impact
Denial Of Service
Component
Application
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

NULL pointer dereference in Vim's memory handling routines causes an immediate process crash when a specially crafted input triggers the flaw during file parsing or editing operations.

Why it matters to the business

Users experience sudden editor crashes while working on documents, leading to lost unsaved work, workflow interruptions, and potential productivity loss across development and operations teams that rely on Vim.

How an attack unfolds

An attacker prepares a malicious file that exploits the null dereference path in Vim versions before the fix commit; the victim opens the file locally with Vim, and the application terminates due to the memory corruption. Public exploit code is available, though the vulnerability requires local access and user interaction.

How to fix it

Upgrade vim/vim to the fixed commit cd38bb4d83c942c4bad596835c6766cbf32e5195 or later; rebuild and deploy the patched binary across all systems that use Vim as an editor or scripting host.

How to confirm the fix worked

Confirm the installed Vim binary reports a version built from commit cd38bb4d83c942c4bad596835c6766cbf32e5195 or newer; attempt to open known trigger files in a test environment and verify the process no longer crashes.

Typical attack path

  1. Craft a file that reaches the vulnerable null pointer path in Vim's input handling
  2. Distribute or host the file in a location reachable by the target user
  3. Social engineer or rely on the user opening the file in an affected Vim binary
  4. Vim dereferences the null pointer and crashes, achieving denial of service

How to detect it

Review system and application crash logs for Vim segmentation faults or abort signals occurring immediately after file open events; correlate with file access timestamps for recently introduced or unusual files.

What your security team should do

  • Prioritize patching Vim instances that process untrusted files or are used in automated pipelines
  • Block or sandbox execution of unpatched Vim binaries on systems handling external content
  • Monitor for new public exploit releases given the ExploitAvailable maturity status
  • Include Vim in routine dependency and editor inventory scans to track future updates

The record

NULL Pointer Dereference in GitHub repository vim/vim prior to 8.2.5163.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 vim 0 No fix
Debian:12 vim 0 2:9.0.0135-1
Debian:13 vim 0 2:9.0.0135-1
Mageia:8 vim 0 9.0.828-1.mga8
SUSE:Enterprise Storage 6 vim 0 9.0.0313-150000.5.25.1
SUSE:Enterprise Storage 7 vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise High Performance Computing 15-ESPOS vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise High Performance Computing 15-LTSS vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise Micro 5.1 vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise Micro 5.2 vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise Module for Basesystem 15 SP4 vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP4 vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise Server 12 SP2-BCL vim 0 9.0.0814-17.9.1
SUSE:Linux Enterprise Server 12 SP3-BCL vim 0 9.0.0814-17.9.1
SUSE:Linux Enterprise Server 12 SP4-LTSS vim 0 9.0.0814-17.9.1
SUSE:Linux Enterprise Server 12 SP5 vim 0 9.0.0814-17.9.1
SUSE:Linux Enterprise Server 15 SP1-BCL vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise Server 15 SP1-LTSS vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise Server 15 SP2-BCL vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise Server 15 SP2-LTSS vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise Server 15-LTSS vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP4 vim 0 9.0.0814-17.9.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 vim 0 9.0.0814-17.9.1
SUSE:Linux Enterprise Server for SAP Applications 15 vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 vim 0 9.0.0313-150000.5.25.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 vim 0 9.0.0313-150000.5.25.1
SUSE:Manager Proxy 4.1 vim 0 9.0.0313-150000.5.25.1
SUSE:Manager Retail Branch Server 4.1 vim 0 9.0.0313-150000.5.25.1
SUSE:Manager Server 4.1 vim 0 9.0.0313-150000.5.25.1
SUSE:OpenStack Cloud 9 vim 0 9.0.0814-17.9.1
SUSE:OpenStack Cloud Crowbar 9 vim 0 9.0.0814-17.9.1
Ubuntu:20.04:LTS vim 0 2:8.1.2269-1ubuntu5.16
Ubuntu:22.04:LTS vim 0 2:8.2.3995-1ubuntu2.10
Ubuntu:Pro:14.04:LTS vim 0 No fix
Ubuntu:Pro:14.04:LTS vim 0 2:7.4.052-1ubuntu3.1+esm11
Ubuntu:Pro:16.04:LTS vim 0 No fix
Ubuntu:Pro:16.04:LTS vim 0 2:7.4.1689-3ubuntu1.5+esm19
Ubuntu:Pro:18.04:LTS vim 0 No fix
Ubuntu:Pro:18.04:LTS vim 0 2:8.0.1453-1ubuntu1.13+esm3
openSUSE:Leap 15.3 vim 0 9.0.0313-150000.5.25.1
openSUSE:Leap 15.4 vim 0 9.0.0313-150000.5.25.1
openSUSE:Leap Micro 5.2 vim 0 9.0.0313-150000.5.25.1
openSUSE:Tumbleweed vim 0 9.0.0453-2.1

Related vulnerabilities