CVE-2026-134070: Improper input validation in the AWS Systems Manager Automation runbook AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3

Published Nov 25, 2026
·
Updated

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:

1. 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 <region> --query "Document.LatestVersion". Update any Automation executions, State Manager associations, AWS Config remediation configurations, or other automations pinned to an earlier revision to use the latest revision. 2. Until earlier revisions are removed in your Region, either keep untrusted users from running earlier revisions of the runbook, or 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. 3. Review your Session Manager preferences document (SSM-SessionManagerRunShell) in any Region where it was first created 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. You can also compare the creation date of the document's first version with the start times of runs of this runbook in that Region. Check the document for settings you did not configure, especially shellProfile, Run As (runAsEnabled, runAsDefaultUser), maxSessionDuration, idleSessionTimeout, and the logging destination fields. The fixed runbook updates only the S3 bucket and prefix fields of an existing preferences document, so settings injected earlier remain until you remove them. If you find unexpected settings, restore your trusted preferences and review instances on which Session Manager sessions were started while those settings were active. The AWS Security Bulletin includes commands for this review.

Affected Software

1 affected component
Amazon Web Services AWS Systems Manager Automation runbook AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Until earlier revisions are removed in a Region, either prevent untrusted users from running earlier revisions of AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3, or keep a trusted SSM-SessionManagerRunShell preferences document in every Region.

  2. Operational

    Run the latest revision of AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3, and update Automation executions, State Manager associations, AWS Config remediation configurations, and other automations pinned to an earlier revision to use the latest revision.

  3. Operational

    In each Region where an earlier runbook revision first created SSM-SessionManagerRunShell, check for unexpected shellProfile, runAsEnabled, runAsDefaultUser, maxSessionDuration, idleSessionTimeout, and logging destination settings. Look for runbook executions that failed with “DOCUMENT CREATE OR UPDATE FAILED.” If unexpected settings are present, restore your trusted preferences and review managed instances on which Session Manager sessions started while those settings were active.

Event History

Nov 25, 2026
CVE Published
via MITRE·07:37 PM
Data Sourced
via MITRE·07:37 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An authenticated remote user must be permitted to run this Automation runbook. The user must be able to select and run an affected earlier revision in the Region.

2

What condition makes a Region vulnerable?

The issue applies only when the Regional Session Manager preferences document, SSM-SessionManagerRunShell, does not already exist. A crafted S3KeyPrefix value can then set unintended preferences, including arbitrary commands.

3

What is the practical impact of a successful exploit?

The unintended configuration can cause arbitrary commands to run on managed instances when other users start Session Manager sessions. This can affect confidentiality, integrity, and availability of those instances.

4

Is running the latest revision enough to remove exposure?

No. Earlier revisions remain runnable until they can no longer be run in the affected Region, so upgrading alone is not sufficient. AWS is beginning deprecation of revisions created before 2026-10-22 (UTC) on January 15, 2027 across every Region and partition.

5

What immediate remediation is identified?

Run the latest revision of the runbook, which is the fixed revision in every Region where the runbook is available. Its revision number varies by Region.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203