AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3 remote code execution in Systems Manager Automation
- Exploited
- No known exploitation
- Fix
- Fixed in 2026-10-22
- Who is exposed
- Specific setups only
Summary
The AWS Systems Manager Automation runbook AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3 has improper input validation. A remote, logged-in user who is permitted to run the runbook can reach it by crafting an input value and getting the runbook to run. The attacker can set arbitrary commands in the account's Session Manager preferences, and those commands then run on managed instances whenever other users start Session Manager sessions.
Written by a model
Original description
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 <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.
Who should check
Teams running the AWS Systems Manager Automation runbook AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3, including AWS Config remediation and State Manager users.
“AWS Systems Manager Automation runbook AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3”
What to do
Check whether your setup matches what the bug needs.
The attacker must be permitted to run the runbook. Applies only when the SSM-SessionManagerRunShell document does not already exist in the Region. Affected revisions are those created before October 22, 2026 (UTC).Upgrade to a fixed version: 2026-10-22.
Workaround: Keep untrusted users from running earlier revisions of the runbook, or keep a trusted SSM-SessionManagerRunShell document in every Region.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-134070 (Improper input validation in the AWS Systems Manager Automation runbook AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-134070 (entry last updated 2026-11-25):
Affected:
- AWS AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3: fixed in 2026-10-22
Fixed versions: 2026-10-22.
Conditions (all must be true for the bug to be hit):
- The attacker must be permitted to run the runbook. (source: https://aws.amazon.com/security/security-bulletins/2026-203-aws/)
- Applies only when the SSM-SessionManagerRunShell document does not already exist in the Region. (source: https://aws.amazon.com/security/security-bulletins/2026-203-aws/)
- Affected revisions are those created before October 22, 2026 (UTC). (source: https://aws.amazon.com/security/security-bulletins/2026-203-aws/)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, low-privilege login, a user action.
Workaround: Keep untrusted users from running earlier revisions of the runbook, or keep a trusted SSM-SessionManagerRunShell document in every Region. (source: https://aws.amazon.com/security/security-bulletins/2026-203-aws/)
CISA KEV: CVE-2026-134070 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-134070 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://aws.amazon.com/security/security-bulletins/2026-203-aws/
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-134070
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-134070"}.Affected versions
- AWS AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3fixed in 2026-10-22
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure8/25Specific setups only, reachable over the network
- Reach?/20Unknown. No tracked technology or package matched
- Severity8/10CVSS 8.0
- No patch0/5No signal
What would change the score
- Would score about 66 if added to CISA KEV
- Would score about 61 if CISA's SSVC rates exploitation active
- Would score about 23 if CISA's SSVC rates it automatable
Timeline
- CVE published
- Record last updated
- First seen by cve.now
Evidence 3
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | aws.amazon.com · security/security-bulletins/2026-203-aws |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-134070 |
| Record | NVD · CVE-2026-134070 |
Questions about CVE-2026-134070
Is CVE-2026-134070 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
Improper input validation lets a user who is permitted to run this runbook set unintended configuration in the account's Regional Session Manager preferences. That configuration can include arbitrary commands, which then run on managed instances when other users start Session Manager sessions.
Source: aws.amazon.com
Which versions are affected by CVE-2026-134070?
AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3: before 2026-10-22.
Source: cve.now feed data
Am I affected, and how do I check?
Earlier revisions of the runbook, created before October 22, 2026 (UTC), are affected, and only in a Region where the SSM-SessionManagerRunShell document does not already exist. To check, look at the revision date of the runbook in Systems Manager and whether that document exists in each Region.
Source: aws.amazon.com
How do I fix CVE-2026-134070?
Use the fixed revision dated 2026-10-22 or later of the runbook. The fix is a revised runbook version rather than a separate patch.
Source: aws.amazon.com
Related
- CVE-2026-100307Missing authorization on the external management API in mcp-gateway-registry enables privilege escalation to registry administrator
- CVE-2026-126087Untrusted search path in the cross-user process launcher in OpenJD Sessions for Python, as used in the AWS Deadline Cloud worker agent
- CVE-2026-133199Incorrect privilege assignment on reused e-mail addresses or group names in AWS ssosync
- CVE-2026-125926Server-side request forgery in the server registration and update API in mcp-gateway-registry
- CVE-2026-130621Time-of-check time-of-use race condition in the local port selection in AWS efs-utils
- CVE-2026-126793Privilege escalation in Aurora PostgreSQL dialect detection in AWS Advanced Go Wrapper
No corrections so far. Something wrong on this page? Report an error.