NULL Pointer Dereference in vim/vim
Description
Vim prior to 9.0.1402 has a NULL pointer dereference when accessing a null_class object, leading to a crash.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Vim prior to 9.0.1402 has a NULL pointer dereference when accessing a null_class object, leading to a crash.
Vulnerability
A NULL pointer dereference vulnerability exists in the Vim text editor prior to version 9.0.1402. The flaw resides in the class_object_index function in src/eval.c [2]. When the Vim9 script feature is enabled and a script attempts to access a member of a null class (e.g., null_class.member), the code does not check if the class pointer (cl) is NULL before dereferencing it, leading to a crash. The crash is reproducible using a script line such as null_class.member in a Vim9 context [2]. Affected versions include all prior to 9.0.1402.
Exploitation
An attacker would need to convince a user or a system running a vulnerable Vim instance to execute a specially crafted Vim9 script that accesses a member of null_class [2]. This could be achieved via social engineering or by tricking the user into opening a file with the malicious script as part of its content (e.g., a modeline or autoload script). No additional network position or authentication is required beyond the ability to run the script in a Vim session [1], [3].
Impact
Successful exploitation causes a denial-of-service (DoS) condition by crashing the Vim process. The vulnerability does not directly lead to information disclosure or remote code execution, as the impact is limited to a NULL pointer dereference segfault [2], [3]. The attacker gains no elevated privilege or persistent compromise beyond the termination of the editor session.
Mitigation
The vulnerability is fixed in Vim version 9.0.1402, released on 2023-03-11 [2]. Users should update to this version or later. For systems where updating is not immediately possible, avoid running untrusted Vim9 scripts that contain references to null_class as a workaround [3]. No other workarounds are documented in the available references.
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
19- osv-coords17 versionspkg:apk/chainguard/vimpkg:apk/chainguard/vim-docpkg:apk/wolfi/vimpkg:apk/wolfi/vim-docpkg:rpm/opensuse/vim&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/vim&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/opensuse/vim&distro=openSUSE%20Tumbleweedpkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP4pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/vim&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5
< 9.0.1402-r0+ 16 more
- (no CPE)range: < 9.0.1402-r0
- (no CPE)range: < 9.0.1402-r0
- (no CPE)range: < 9.0.1402-r0
- (no CPE)range: < 9.0.1402-r0
- (no CPE)range: < 9.0.1443-150000.5.40.1
- (no CPE)range: < 9.0.1443-150000.5.40.1
- (no CPE)range: < 9.0.1430-1.1
- (no CPE)range: < 9.0.1443-150000.5.40.1
- (no CPE)range: < 9.0.1443-150000.5.40.1
- (no CPE)range: < 9.0.1443-150000.5.40.1
- (no CPE)range: < 9.0.1443-150000.5.40.1
- (no CPE)range: < 9.0.1443-150000.5.40.1
- (no CPE)range: < 9.0.1443-150000.5.40.1
- (no CPE)range: < 9.0.1443-150000.5.40.1
- (no CPE)range: < 9.0.1572-17.18.1
- (no CPE)range: < 9.0.1572-17.18.1
- (no CPE)range: < 9.0.1572-17.18.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3News mentions
0No linked articles in our index yet.