Template injection enables arbitrary code execution in AWS Virtual Engineering Workbench

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-119085?

CVE-2026-119085 is a vulnerability classified as Improper Neutralization of Special Elements Used in a Template Engine, affecting virtual-engineering-workbench (affected versions: < c146486cec41f5b04fae57e9ce1a7fb40e695615). This vulnerability is rated Critical, with a CVSS score of 9.4. Current sources do not report this vulnerability as exploited.

Overview

Original source data

Improper neutralization of special elements used in a template engine in the publishing component of Amazon Virtual Engineering Workbench (VEW) could allow a remote authenticated third party to run arbitrary code with the permissions of the publishing Lambda's IAM role. This could allow access to data and resources across all tenant projects. The code is reachable through a crafted CloudFormation template body containing template engine directives submitted through the product versioning API. To remediate this issue, users should redeploy from the latest version of awslabs/virtual-engineering-workbench.

Affected products and scope

  • AWS virtual-engineering-workbench: Git commits before c146486 are affected. The CNA record represents the affected Git branch as starting at 0 and ending before the patched commit; the default status outside that range is unaffected.
  • The GitHub advisory identifies c146486 as the patched version. AWS describes the affected scope as all commits before that commit and states that the fix was introduced in PR #31.
  • The status of parallel branches or derivative code cannot be inferred solely from one patched commit; each fork and deployed revision must be checked separately.

Technical details

AWS Virtual Engineering Workbench processes a CloudFormation template body as a Jinja2 template in its publishing component. An authenticated user who can create or update a product version can submit Jinja2 expressions or template directives through the product versioning API; under the default authorization policy, this permission is associated with the PRODUCT_CONTRIBUTOR role in a project. When an AMI-based product is published, the template is rendered in the publishing Lambda, and vulnerable versions allow Jinja2 expressions to execute with the permissions of that Lambda's IAM role. This is CWE-1336, because special template-engine elements are not properly neutralized; the specific IAM permissions available to the Lambda are not fully documented, so the practical resource scope depends on each deployment's policy. The patch is described as rejecting the Jinja2 control sequences {{, {%, {# and rendering templates in a Jinja2 sandboxed environment.

Exploitability

The flaw is remotely reachable through the product versioning API and requires an authenticated attacker. The documented precondition is permission to create or update a product version, with no additional user interaction and no complex condition identified in the record. The attacker-controlled input is a CloudFormation template body containing template-engine directives, which is processed by the publishing component. The supplied record does not mark the issue as known exploited and sets public exploit to false; that status does not prove that exploitation has never occurred.

Technical impact

An attacker needs an authenticated account with permission to create or update a product version, but does not need another user's interaction. Once the template body is processed by the publishing component, arbitrary code can run in the publishing Lambda with the permissions of its IAM role. Because that role can reach resources across tenant projects, the affected scope may cross the project boundary of the account used for exploitation. Realistic technical outcomes include reading data, modifying resources or configuration, and disrupting services that the role can affect; the actual IAM policy is an important limit.

Business impact

If exploited, code runs inside the publishing Lambda with the permissions of that function's IAM role rather than being confined to the submitting user's project. The vendor states that this role can reach data and resources across all tenant projects, so an account able to manage product versions may create impact beyond its own project. Organisational consequences may include loss of data confidentiality, unauthorized changes to resources or configuration, and service disruption, depending on the role's actual permissions. The record does not confirm a specific data breach, unauthorized change, or outage.

Remediation

  1. Redeploy from the latest version of the main branch of awslabs/virtual-engineering-workbench, or deploy the commit identified as the patched version, c146486, for the relevant branch.
  2. If you operate a fork or derivative, apply the complete fix to the customized code. The fix is described as rejecting template bodies containing {{, {%, {# and using SandboxedEnvironment when rendering Jinja2.
  3. Until redeployment, reduce exposure by limiting which users can create or update product versions. AWS states that this reduces impact but does not remove the vulnerability.
  4. Review the publishing Lambda IAM policy and remove permissions that are not required. This does not replace patching, but it can limit the consequences if the template injection is exploited.

Detection

  1. Inventory every deployment, fork, and derivative of awslabs/virtual-engineering-workbench, identify the Git revision in use, and compare it with the vendor's patched commit.
  2. Review users and roles that can create or update product versions, especially accounts with PRODUCT_CONTRIBUTOR in a project.
  3. Review audit logs and product versioning API records for create or update requests whose CloudFormation bodies contain Jinja2 control syntax. This is a precautionary search for potential evidence, not a vendor-confirmed IOC.
  4. Inspect the publishing component to verify that templates are rendered with a Jinja2 sandbox and that the relevant control sequences are rejected.
  5. As a precaution, review CloudTrail activity performed by the publishing Lambda IAM role for unusual access to tenant data or resources; the absence of suspicious events does not prove that a deployment is safe.
Sources (19)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.