PT-2026-48723 · Vim+2 · Vim+2
CVSS v3.1
8.0
High
| Vector | AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Vim versions prior to 9.2.0597
Description
Python omni-completion in the text editor executes reconstructed function and class definitions from the current buffer using the
exec() function to populate the completion dictionary. Because Python evaluates class base expressions, parameter annotations, and function default values during definition, a malicious buffer can trigger the execution of attacker-controlled Python expressions during the omni-completion process. The g:pythoncomplete allow import mitigation is ineffective in this case as the executed code is not an import statement.Recommendations
Update to version 9.2.0597.
Exploit
Fix
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Linuxmint
Ubuntu
Vim