Ansible-lightspeed: visual studio code ansible lightspeed extension: arbitrary code execution via malicious playbook filename
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's AnsiblePlaybookRunProvider. This command injection vulnerability allows an attacker to craft a malicious playbook filename containing special characters. When a victim runs the playbook, these characters are not properly sanitized, leading to the execution of arbitrary code with the privileges of the user running VS Code. This could result in a full system compromise, including the exfiltration of sensitive data, modification of project files, and permanent data loss.