---
id: CVE-2026-115414
title: OS command injection in the Terraform hook in AWS SAM CLI
summary: >-
  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 runn…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-78
vendor: AWS
product: aws-sam-cli
affected:
  - aws-sam-cli >= 1.63.0 < 1.166.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-22T00:00:00+00:00'
published: '2026-10-22'
updated: '2026-10-23'
sourceUpdated: '2026-10-23T03:55:38.186Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-115414'
references:
  - url: 'https://github.com/aws/aws-sam-cli/releases/tag/v1.166.2'
  - url: 'https://aws.amazon.com/security/security-bulletins/2026-145-aws/'
  - url: 'https://github.com/aws/aws-sam-cli/security/advisories/GHSA-44mq-wjrh-vpj6'
tags:
  - cve.org
ingestedAt: '2026-10-22T22:00:50.371Z'
---

## Overview

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

- `aws-sam-cli >= 1.63.0 < 1.166.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
