CVE-2026-115414: OS command injection in the Terraform hook in AWS SAM CLI

Published Oct 22, 2026
·
Updated

OS command injection in the Terraform hook in AWS SAM CLI before 1.166.2 might allow an actor who can influence the Terraform configuration or plan file consumed by a build to execute arbitrary commands as the build user on the host running the build via a crafted Terraform resource address.

To remediate this issue, users should upgrade to version 1.166.2 or later.

Affected Software

1 affected component
AWS SAM CLI<1.166.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade AWS SAM CLI to a version that resolves this vulnerability.

    Fixed in 1.166.2

Event History

Oct 22, 2026
CVE Published
via MITRE·06:34 PM
Data Sourced
via MITRE·06:34 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to exploitation?

Build environments using AWS SAM CLI before 1.166.2 are exposed when their Terraform hook consumes a Terraform configuration or plan file that an actor can influence. The injected commands execute as the user running the build on that host.

2

What does an attacker need to exploit this issue?

The attacker needs the ability to influence the Terraform configuration or plan file used by a build and must craft a Terraform resource address. Exploitation also requires a user to run the affected build workflow.

3

Are default installations affected?

The issue is specific to use of the Terraform hook. The provided information does not establish exposure for installations that do not consume Terraform configuration or plan files through that hook.

4

What is the remediation?

Upgrade AWS SAM CLI to version 1.166.2 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203