Read the docs
TI-2026-79484 Aliases CVE-2026-115414

OS command injection in the Terraform hook in AWS SAM CLI

Priority MEDIUM 40CWE-78Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Active
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-78.

Summary

AWS SAM CLI versions from 1.63.0 before 1.166.2 contain an OS command injection flaw in the Terraform hook (CWE-78). A crafted Terraform resource address lets an actor who can influence the Terraform configuration or plan file consumed by a build run arbitrary commands as the build user on the host running the build. The CVSS 4.0 vector is local with no privileges required and user interaction, and it rates high impact on the vulnerable system.

Written with Claude Haiku 5.5 from the sources below · 2026-10-28

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00876 59th percentileScored 2026-11-07
Fix Fixed aws-sam-cli (AWS): 1.166.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
AWSaws-sam-cli1.63.0 to before 1.166.21.166.2Patch availableCNA
  • aws-sam-cli VendorAWS Affected 1.63.0 to before 1.166.2 Fixed in 1.166.2 Patch available CNA

Remediation

Upgrade aws-sam-cli to version 1.166.2 or later, which fixes this issue.

Written with Claude Haiku 5.5 from the sources below · 2026-10-28

  • Fix · CNA aws-sam-cli (AWS) Fixed in 1.166.2

Timeline

  1. 2026-10-22 Threatist record created from CVE-2026-115414
  2. 2026-10-23 CISA SSVC decision points changed
  3. 2026-10-23 Priority changed: MEDIUM → LOW
  4. 2026-10-23 CISA SSVC decision points changed
  5. 2026-10-23 Priority changed: LOW → MEDIUM

References

  • TI-2026-23989 crypto: algif_aead - Revert to operating out-of-place KEVCVSS 3.1HIGH 7.8
  • TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
  • TI-2024-18648 Amazon AWS Amplify CLI before 12.10.1 incorrectly configures the role trust policy of IAM… CVSS 3.1CRITICAL 9.8
  • TI-2024-05929 Openssh: regresshion - race condition in ssh allows rce/dos CVSS 3.1HIGH 8.1
  • TI-2025-03847 Input validation issue in AWS Amplify Studio UI component properties CVSS 4.0CRITICAL 9.0
  • TI-2026-11603 HTTP/2 Stream Parser Confusion Body-Inspection Bypass in Amazon CloudFront with AWS WAF CVSS 4.0HIGH 7.9
See all 383 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences