AWS Systems Manager Automationの脆弱性、認証済みユーザーが任意のコマンドを仕込める
Summary
AWS Systems Manager Automationのランブック「AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3」の入力検証の不備で、実行を許可された認証済みユーザーがSession Managerの設定に任意のコマンドを仕込めるおそれがあります。仕込まれた内容は、ほかのユーザーがセッションを開始したときに管理対象インスタンス上で実行されます。対象は2026年10月22日より前のリビジョンで、修正版は2026年10月22日以降の最新リビジョンです。古いリビジョンは2027年1月15日まで実行できるため、最新リビジョンを実行し、既存の自動化も更新してください。
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 Systems Manager Automationのランブック「AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3」の入力検証の不備で、実行を許可された認証済みユーザーがSession Managerの設定に任意のコマンドを仕込めるおそれがあります。仕込まれた内容は、ほかのユーザーがセッションを開始したときに管理対象インスタンス上で実行されます。対象は2026年10月22日より前のリビジョンで、修正版は2026年10月22日以降の最新リビジョンです。古いリビジョンは2027年1月15日まで実行できるため、最新リビジョンを実行し、既存の自動化も更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| AWSAWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3 |
< 2026-10-22→ 2026-10-22 |
2026-10-22 |
Original description The description as published by the source.
Improper input validation in the AWS-managed AWS Systems Manager Automation runbook AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3 might allow an authenticated remote user who is permitted to run the runbook to set unintended configuration in the account's Regional Session Manager preferences document (SSM-SessionManagerRunShell) via a crafted S3KeyPrefix parameter value. This applies only when that document does not already exist in the Region. The unintended configuration can include arbitrary commands, which then run on managed instances when other users start Session Manager sessions.
Because any user permitted to run the runbook selects which revision to run, this issue remains reachable in an affected Region until earlier revisions can no longer be run there. AWS is deprecating all revisions created before 2026-10-22 (UTC) in every Region and partition beginning January 15, 2027; until deprecation, earlier revisions remain runnable, so upgrading alone is not sufficient.
To remediate this issue:
- Run the latest revision of the runbook. The latest revision is the fixed revision in every Region where the runbook is available, and its revision number varies by Region. To find it, run aws ssm describe-document --name AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3 --region --query "Document.LatestVersion". Update any Automation executions, State Manager associations, AWS Config remediation configurations, or other automations…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- AWS aws.amazon.com
- web aws.amazon.com
- web nvd.nist.gov
- web aws.amazon.com
- web github.com