Cyber Resilience

CVE-2025-27423

Command Injection in Vim 9.1.0858 – 9.1.1164

Published
03 March 2025
Modified
18 August 2025
Patch / advisory
CVSS Score v3.1 7.1
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
EPSS Score 0.22 97th percentile
Risk Priority 66 floored blend · peak EPSS

Summary

CVE-2025-27423 is a high-severity Command Injection (CWE-77) vulnerability in Vim Vim. Its CVSS base score is 7.1 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Command and Scripting Interpreter (T1059); ranked in the top 3% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

Vim's tar.vim plugin, distributed with the editor and used for viewing or editing tar archives, contains a command injection vulnerability. Starting in patch 9.1.0858, the plugin passes unsanitized content from the archive directly into the ":read" ex command. An attacker-supplied filename or header within a crafted tar file can therefore be interpreted literally by the shell configured via Vim's 'shell' option, resulting in arbitrary command execution. The flaw is tracked as CWE-77 and carries a CVSS 7.1 rating reflecting local access, low complexity, and the need for user interaction.

An attacker can exploit the issue by delivering a malicious tar archive that the victim opens or views with Vim. When tar.vim processes the archive, the embedded payload executes under the privileges of the Vim process, potentially reading or modifying files and altering system state. Success depends on the victim's shell configuration and whether they interact with the archive inside Vim; no remote network access or elevated privileges are required.

The vulnerability was addressed in Vim patch 9.1.1164. Official remediation guidance and the corresponding commits are published in the Vim GitHub repository and the GitHub Security Advisory GHSA-wfmf-8626-q3r3; NetApp has also issued a related advisory (NTAP-20250502-0002) for affected products.

The associated EPSS score has remained flat at 0.0208 with no material increase since disclosure.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

Vim is an open source, command line text editor. Vim is distributed with the tar.vim plugin, that allows easy editing and viewing of (compressed or uncompressed) tar files. Starting with 9.1.0858, the tar.vim plugin uses the ":read" ex command line…

more

to append below the cursor position, however the is not sanitized and is taken literally from the tar archive. This allows to execute shell commands via special crafted tar archives. Whether this really happens, depends on the shell being used ('shell' option, which is set using $SHELL). The issue has been fixed as of Vim patch v9.1.1164

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1059 Command and Scripting Interpreter Execution
Adversaries may abuse command and script interpreters to execute commands, scripts, or binaries.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1059.001 PowerShell Execution
Adversaries may abuse PowerShell commands and scripts for execution.
T1059.003 Windows Command Shell Execution
Adversaries may abuse the Windows command shell for execution.
T1059.004 Unix Shell Execution
Adversaries may abuse Unix shell commands and scripts for execution.
T1059.008 Network Device CLI Execution
Adversaries may abuse scripting or built-in command line interpreters (CLI) on network devices to execute malicious command and payloads.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-26603Same product: Netapp Hci Compute Node
CVE-2025-29768Same product: Netapp Hci Compute Node
CVE-2024-47814Same product: Netapp Hci Compute Node
CVE-2024-43790Same product: Netapp Hci Compute Node
CVE-2025-24014Same product: Netapp Hci Compute Node
CVE-2025-1215Same product: Vim Vim
CVE-2026-57453Same product: Vim Vim
CVE-2024-43374Same product: Netapp Hci Compute Node
CVE-2025-22134Same product: Netapp Hci Compute Node
CVE-2017-15889Same product class: NAS / storage appliance

Affected Assets

vim
vim
9.1.0858 — 9.1.1164
netapp
hci compute node
all versions

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.2.3
  • V1.2.5
  • V1.2.8
  • V1.2.9

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and evaluation can discover command-construction flaws before deployment.

Input validation directly stops construction of commands from untrusted data containing special elements.

Secure engineering principles include proper neutralization and safe command construction practices.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require input validation and neutralization that prevent command injection.

DE.CM-09 partial match
prevents

Runtime monitoring of software and data can detect anomalous command execution resulting from injection.

ID.RA-01 partial match
prevents

Identifying recorded vulnerabilities enables remediation of command-injection flaws before exploitation.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Secure coding standards require proper escaping and parameterization of commands, directly eliminating CWE-77.

finds

Security testing in development catches command-injection vulnerabilities before release.

prevents

Secure development life cycle mandates input validation and command construction practices that directly prevent command injection.

prevents

Application security requirements explicitly call for controls against injection flaws including command injection.

prevents

Secure architecture principles reduce the attack surface but do not prescribe the specific neutralization techniques needed.

none

Environment separation limits the blast radius of an exploited command injection but does not prevent the flaw itself.

References