Ansible-lightspeed: visual studio code ansible lightspeed extension: remote code execution via command injection in configuration settings
Red Hat Ansible Automation Platform 2
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Red Hat Red Hat Ansible Automation Platform 2 | — | No fix yet |
| Red Hat Red Hat Ansible Automation Platform 2 | — | No fix yet |
| Red Hat Red Hat Ansible Automation Platform 2 | — | No fix yet |
Original description
A flaw was found in the Visual Studio Code Ansible Lightspeed extension. This command injection vulnerability (CWE-78) arises from improper handling of the ansible.executionEnvironment.containerOptions and ansible.executionEnvironment.volumeMounts settings, allowing an attacker to inject shell separators. This can be triggered automatically during Language Server initialization or manually when executing a playbook. Successful exploitation leads to remote code execution (RCE) on the victim's machine with the privileges of the Visual Studio Code user, potentially resulting in a complete system compromise.