VYPR
Unrated severityNVD Advisory· Published Mar 11, 2023· Updated Feb 27, 2025

NULL Pointer Dereference in vim/vim

CVE-2023-1355

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

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.