AWS SAM CLIのTerraformフックでOSコマンドを実行される
Summary
AWS SAM CLIのTerraformフックにOSコマンド注入の脆弱性があり、ビルドに使われるTerraform設定やプランファイルを改変できる攻撃者に、ビルドを実行しているホスト上で任意のコマンドを実行される可能性があります。影響を受けるのは1.166.2より前の版で、1.166.2以降へのアップデートで対処できます。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
AWS SAM CLIのTerraformフックにOSコマンド注入の脆弱性があり、ビルドに使われるTerraform設定やプランファイルを改変できる攻撃者に、ビルドを実行しているホスト上で任意のコマンドを実行される可能性があります。影響を受けるのは1.166.2より前の版で、1.166.2以降へのアップデートで対処できます。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| AWSaws-sam-cli |
≥ 1.63.0, < 1.166.2→ 1.166.2 |
1.166.2 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory aws.amazon.com
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- AWS aws.amazon.com
- patch github.com