Syntastic vulnerability allows arbitrary code execution via configuration file hijacking
Syntastic's automatic search for configuration files in parent directories could allow an attacker to execute arbitrary code under the user's login.
Summary
A security vulnerability has been identified in the Syntastic syntax checking plugin for Vim. The flaw stems from the plugin's behavior of searching the current working directory and its parent directories for checker configuration files.
If a user opens a specially crafted file located in a directory controlled by a malicious actor, the plugin may inadvertently load and execute an attacker-supplied configuration. This could lead to arbitrary code execution with the privileges of the user currently running Vim. The fix restricts Syntastic to only reading configuration files explicitly defined in the *_config_file options.
Technical breakdown of CVE-2018-11319
- Defect Class: Arbitrary code execution via insecure file lookup/configuration hijacking.
- Attack Vector: Local execution triggered when a user opens a file in a directory controlled by an attacker, causing the plugin to traverse upward through parent directories.
- Root Cause: The plugin automatically searched for configuration files in the current and parent directories rather than relying on explicit paths.
- Mitigation: The update ensures that Syntastic only processes configuration files that are explicitly named via the *_config_file configuration options.
Why it matters
This vulnerability affects users of the vim-syntastic plugin on Ubuntu 18.04 LTS via Ubuntu Pro ESM Apps. Developers and system administrators using Vim for syntax checking should ensure their packages are updated to version 3.8.0-1ubuntu0.1~esm1 to prevent local privilege escalation or unauthorized code execution.
Original reference: ubuntu.com →