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.
https://github.com/aws/aws-sam-cli/security/advisories/GHSA-44mq-wjrh-vpj6
https://github.com/aws/aws-sam-cli/releases/tag/v1.166.2
https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-108281
https://aws.amazon.com/security/security-bulletins/2026-145-aws/
Published: 2026-10-22
Updated: 2026-10-23
Base Score: 7.2
Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C
Severity: High
Base Score: 7.8
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Severity: High
Base Score: 8.4
Vector: 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
Severity: High