CVE-2026-44191 PUBLISHED

Ansible-lightspeed: visual studio code ansible lightspeed extension: remote code execution via command injection in configuration settings

Assigner: redhat
Reserved: 05.05.2026 Published: 22.07.2026 Updated: 22.07.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS Score: 7.8

Product Status

Vendor Red Hat
Product Red Hat Ansible Automation Platform 2
Versions Default: affected
Vendor Red Hat
Product Red Hat Ansible Automation Platform 2
Versions Default: affected
Vendor Red Hat
Product Red Hat Ansible Automation Platform 2
Versions Default: affected

Workarounds

To mitigate this issue, users of the Visual Studio Code Ansible Lightspeed extension should exercise caution and avoid opening untrusted workspaces or executing playbooks from unverified sources. Carefully review the contents of ansible.executionEnvironment.containerOptions and ansible.executionEnvironment.volumeMounts settings within the extension's configuration, especially when dealing with new or external projects, to prevent the injection of malicious commands.

Credits

  • This issue was discovered by Laura Pardo (Red Hat Inc.).

References

Problem Types

  • Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') CWE