Description
A flaw was found in the Ansible Lightspeed Visual Studio Code extension. This Command Injection vulnerability (CWE-78) allows a remote attacker to execute unauthorized commands on a user's system. The issue occurs because the `ansible.python.activationScript` setting, intended for a virtual environment activation script, does not properly validate user input as a file path. If a user opens or executes a specially crafted project, an attacker could exploit this to gain complete control over the user's system with the privileges of the Visual Studio Code application.
Published: 2026-07-22
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A command injection flaw in the Ansible Lightspeed Visual Studio Code extension allows a remote attacker to execute arbitrary commands with the privileges of the Visual Studio Code process. The vulnerability stems from the extension's handling of the ansible.python.activationScript setting, which accepts an untrusted file path without proper validation. When a user opens or runs a playbook that contains a maliciously crafted project configuration, an attacker can gain full control over the user's system.

Affected Systems

The flaw affects the Red Hat Ansible Platform 2, specifically the Ansible Lightspeed Visual Studio Code extension. No specific patch versions are listed; the issue applies to the extension as distributed with the platform.

Risk and Exploitability

The CVSS score of 7.8 indicates moderate to high severity, while the EPSS score of less than 1 % suggests a low probability of exploitation in the near term. The vulnerability is not listed in CISA KEV. Likely exploitation requires a user to open or execute a specially crafted project, making social engineering or trusted-file manipulation a probable attack vector. Consequently, the risk is moderate, but the potential impact is complete system compromise under the VS Code user context.

Generated by OpenCVE AI on August 3, 2026 at 23:53 UTC.

Remediation

Vendor Workaround

To mitigate this issue, configure the `ansible.python.activationScript` setting to "User" scope only within Visual Studio Code settings. This prevents untrusted project configurations from defining this setting in `.vscode/settings.json`. Users should always review the contents of `.vscode/settings.json` before opening or executing playbooks from untrusted sources. This action does not require a service restart or reload.


OpenCVE Recommended Actions

  • Configure the ansible.python.activationScript setting to \"User\" scope only within Visual Studio Code for security restrictions.
  • Review the contents of any .vscode/settings.json files from untrusted sources before opening or running playbooks to ensure no malicious scripts are registered.
  • Check for and install the latest version of the Ansible Lightspeed Visual Studio Code extension when it becomes available to receive a patched code path validation.

Generated by OpenCVE AI on August 3, 2026 at 23:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 23 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 23 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Wed, 22 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description A flaw was found in the Ansible Lightspeed Visual Studio Code extension. This Command Injection vulnerability (CWE-78) allows a remote attacker to execute unauthorized commands on a user's system. The issue occurs because the `ansible.python.activationScript` setting, intended for a virtual environment activation script, does not properly validate user input as a file path. If a user opens or executes a specially crafted project, an attacker could exploit this to gain complete control over the user's system with the privileges of the Visual Studio Code application.
Title Ansible-lightspeed: ansible lightspeed visual studio code extension: arbitrary code execution via command injection in activation script setting
First Time appeared Redhat
Redhat ansible Automation Platform
Weaknesses CWE-78
CPEs cpe:/a:redhat:ansible_automation_platform:2
Vendors & Products Redhat
Redhat ansible Automation Platform
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

Redhat Ansible Automation Platform
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-23T13:50:44.922Z

Reserved: 2026-05-05T15:02:54.443Z

Link: CVE-2026-44190

cve-icon Vulnrichment

Updated: 2026-07-23T13:50:40.699Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-22T12:17:59.940

Modified: 2026-07-23T14:17:14.140

Link: CVE-2026-44190

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-22T11:59:27Z

Links: CVE-2026-44190 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T00:00:09Z

Weaknesses
  • CWE-78

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