AWS aws-sam-cli
OS command injection in the Terraform hook in AWS SAM CLI
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.4high · scored by CNA · CWE-78
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
AWS aws-sam-cli
- >= 1.63.0, < 1.166.2
Fixed in 1.166.2
Mitigation
Upgrade aws-sam-cli to 1.166.2 or later.
References
- Patch github.com/aws/aws-sam-cli/releases/tag/v1.166…
- Vendor advisory aws.amazon.com/security/security-bulletins/2026-14…
- Vendor advisory github.com/aws/aws-sam-cli/security/advisories…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.