Skip to main content

CVE-2026-134070 - Improper input sanitization in the AWS Config remediation runbook AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3

Bulletin ID: 2026-203-AWS
Scope: AWS
Content Type: Important (requires attention)
Publication Date: 11/25/2026 11:30 AM PST


Description:

AWS Systems Manager Automation provides AWS-managed runbooks that customers can run directly or through integrations such as AWS Config remediation. Session Manager, a capability of AWS Systems Manager, stores each account's regional session preferences in the SSM-SessionManagerRunShell document.

We identified CVE-2026-134070, where 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.

Impacted versions: Revisions created before October 22, 2026 (UTC)

Resolution:

This issue has been addressed in a fixed revision of the AWS Systems Manager Automation runbook AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3, available in all Regions where the runbook is available. The fixed revision is the latest revision in each Region. Its revision number varies by Region. To find it, run: aws ssm describe-document --name AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3 --region <region> --query "Document.LatestVersion" We recommend upgrading to the latest revision and ensuring any forked or derivative code is patched to incorporate the new fixes. Update any Automation executions, State Manager associations, AWS Config remediation configurations, or other automations pinned to an earlier revision to use the latest revision.

Any user permitted to run the runbook can choose which revision to run. Earlier revisions remain runnable until AWS deprecates all revisions created before October 22, 2026 (UTC), beginning January 15, 2027, in every Region and partition. Until then, follow the protection described under Workarounds, and confirm that all invocation paths use the latest revision.

Review your Session Manager preferences:

The fixed runbook updates only the S3 bucket and prefix fields of an existing Session Manager preferences document, so any settings injected before you updated remain in place. You need to review a Region only if your Session Manager preferences document (SSM-SessionManagerRunShell) was first created there by an earlier revision of this runbook, not by you. To check: Look for any run of this runbook that failed with "DOCUMENT CREATE OR UPDATE FAILED." An injected run always fails with this error. Find when the document was first created by running aws ssm list-document-versions --name SSM-SessionManagerRunShell --region <region> and noting the CreatedDate of the first version. If that date matches a run of this runbook, the runbook created the document. To view the current settings, run aws ssm get-document --name SSM-SessionManagerRunShell --region <region> --query Content --output text. Repeat this check in each Region where you use Session Manager. Look for settings you did not configure, especially: shellProfile: commands that run at the start of every session, runAsEnabled and runAsDefaultUser: the operating system user that sessions run as, maxSessionDuration and idleSessionTimeout, the logging destination fields (s3BucketName, s3KeyPrefix, cloudWatchLogGroupName, kmsKeyId).

If you find any, restore your trusted preferences and review instances on which Session Manager sessions were started while those settings were active.

Workarounds:

Until AWS removes earlier revisions in your Region, do one of the following:

  • Keep untrusted users from running earlier revisions of the runbook.
  • Keep a trusted Session Manager preferences document (SSM-SessionManagerRunShell) in every Region. Earlier revisions inject only when they create this document, so while a trusted one exists, this path is closed in that Region.

Keep this protection in place until earlier revisions are removed. Also complete the review described under "Review your Session Manager preferences".

References:

Acknowledgement:

We would like to thank k4ddy for collaborating on this issue through the coordinated vulnerability disclosure process.


Please email aws-security@amazon.com with any s ecurity questions or concerns.