Cloudanix VulnDB

CVE-2022-1725

Medium · 5.5

CVSS

5.5

EPSS

0.5%

Published

Sep 29, 2022

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
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 triggers an application crash when processing specially crafted input files.

Why it matters to the business

Local users or automated processes that open untrusted files with Vim experience sudden editor crashes, interrupting editing workflows and any dependent build or scripting pipelines.

How an attack unfolds

An attacker crafts a file that exercises the vulnerable code path, then delivers it to a target who opens the file in an affected Vim version; the dereference occurs immediately on load and terminates the process.

How to fix it

Upgrade vim/vim to commit b62dc5e7825bc195efe3041d5b3a9f1528359e1c or later; rebuild and redeploy any packaged distributions that embed the vulnerable version.

How to confirm the fix worked

Confirm the running Vim binary reports a version containing commit b62dc5e7825bc195efe3041d5b3a9f1528359e1c; attempt to open a known trigger file and verify the process no longer crashes.

Typical attack path

  1. Craft a minimal input file that reaches the dereference site
  2. Deliver the file to the victim via email, download, or shared storage
  3. Victim opens the file using a vulnerable Vim binary
  4. Vim dereferences the null pointer and aborts

How to detect it

Review system and application logs for unexpected Vim process terminations around the time users report opening files; correlate crash reports with file creation or download events.

What your security team should do

  • Prioritize patching all developer workstations and CI systems within the next sprint
  • Add Vim version checks to software bill-of-materials and dependency scanners
  • Block execution of Vim binaries older than the fixed commit via endpoint policy where feasible

The record

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

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
Debian:14 vim 0 2:9.0.0135-1
Ubuntu:20.04:LTS vim 0 2:8.1.2269-1ubuntu5.21
Ubuntu:22.04:LTS vim 0 2:8.2.3995-1ubuntu2.15
Ubuntu:23.10 vim 0 2:9.0.1672-1ubuntu2.2
Ubuntu:Pro:14.04:LTS vim 0 2:7.4.052-1ubuntu3.1+esm15
Ubuntu:Pro:16.04:LTS vim 0 2:7.4.1689-3ubuntu1.5+esm13
Ubuntu:Pro:16.04:LTS vim 0 2:7.4.1689-3ubuntu1.5+esm22
Ubuntu:Pro:18.04:LTS vim 0 2:8.0.1453-1ubuntu1.13+esm7

Related vulnerabilities