CVE-2022-1725
Medium · 5.5CVSS
5.5
EPSS
0.5%
Published
Sep 29, 2022
CISA due date
—
Cloudanix analysis
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.
- 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
- Craft a minimal input file that reaches the dereference site
- Deliver the file to the victim via email, download, or shared storage
- Victim opens the file using a vulnerable Vim binary
- 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
- CVE-2025-29768 Vim, a text editor, is vulnerable to potential data loss with zip.vim and special crafted… Also affects vim
- CVE-2025-27423 Vim is an open source, command line text editor. Also affects vim
- CVE-2025-24014 Vim is an open source, command line text editor. Also affects vim
- CVE-2025-22134 When switching to other buffers using the :all command and visual mode still being… Also affects vim
- CVE-2024-47814 Vim is an open source, command line text editor. Also affects vim
- CVE-2024-43802 Vim is an improved version of the unix vi text editor. Also affects vim
- CVE-2024-43374 The UNIX editor Vim prior to version 9.1.0678 has a use-after-free error in argument list… Also affects vim
- CVE-2024-22667 Vim before 9.0.2142 has a stack-based buffer overflow because did_set_langmap in map.c… Also affects vim