CVE-2026-115414
OS command injection in the Terraform hook in AWS SAM CLI
- State
- Published
- Severity
- 8.4 High
- Published
- Oct 22, 2026
- Updated
- Oct 23, 2026
- Reserved
- Oct 22, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.4 High | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | AMZN |
| 3.1 | 7.8 High | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | AMZN |
Weaknesses
- CWE-78 Improper neutralization of special elements used in an OS command ('OS command injection')
Affected Products
| Product | Versions |
|---|---|
aws-sam-cliAWS |
|
References
- https://github.com/aws/aws-sam-cli/releases/tag/v1.166.2release-notespatch
- https://aws.amazon.com/security/security-bulletins/2026-145-aws/vendor-advisory
- https://github.com/aws/aws-sam-cli/security/advisories/GHSA-44mq-wjrh-vpj6third-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.