Buffer Size Calculation Vulnerability in Vim Package

vim Updated 02 Oct 2025

Summary

04/03/2023
N/A
Yes i
Medium
6.6

ALPINE-CVE-2023-1175: Incorrect Calculation of Buffer Size in GitHub repository vim/vim prior to 9.0.1378. Affects vim versions < 9.0.1395-r0. Fixed in 9.0.1395-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Vim is a highly configurable text editor built to enable efficient text editing. It is widely used by developers and system administrators for its powerful features and extensibility. However, like any software, it can be susceptible to vulnerabilities that may compromise its functionality and security. The specific vulnerability in question relates to an incorrect calculation of buffer size, which can lead to potential exploitation.

Vulnerability Detail

The vulnerability identified as CVE-2023-1175 arises from an incorrect calculation of buffer size in the Vim text editor. This flaw was present in versions prior to 9.0.1378 and could allow an attacker to exploit the buffer overflow, potentially leading to unauthorized access or manipulation of data. The ramifications of this vulnerability could range from data corruption to arbitrary code execution, depending on the attack vector employed.

How To Fix

Minimum fixed version

9.0.1395-r0

This is the first release that contains the fix.

sudo apk add --upgrade vim

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate updating is not feasible, consider restricting access to the Vim editor or using alternative text editors until the patch can be applied. Additionally, monitor the system for any unusual activity that may indicate exploitation attempts.

Conclusion

The CVE-2023-1175 vulnerability in the Vim package highlights the importance of maintaining up-to-date software to mitigate security risks. Users are encouraged to apply the necessary updates and monitor their systems for any signs of exploitation.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2023-1175 is a vulnerability in the Vim text editor that stems from an incorrect calculation of buffer size, potentially allowing for buffer overflow attacks.

If you are using a version of Vim prior to 9.0.1378, your installation is vulnerable to CVE-2023-1175.

The risks include data corruption, unauthorized access, and the possibility of arbitrary code execution, which could compromise system integrity.

You can update Vim by running the command 'apk add --update vim' in your terminal, ensuring you have access to the latest Alpine repositories.

Yes, you can use Vulert, which monitors open-source vulnerabilities in your software using just a manifest file like package-lock.json. You can check your application for this vulnerability using the Vulert playground without any signup.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

9.0.1395-r0

This is the first release that contains the fix.

sudo apk add --upgrade vim

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback