# CVE-2026-134070: Code injection in AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3

> Users allowed to run the runbook can inject commands into Session Manager preferences that run on managed instances; AWS administrators should care.

- **Severity:** High 7.2 (`CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Harmful if only installed:** No
- **Needs a specific call:** No
- **Fix available:** No
- **Published:** 25 Nov 2026
- **Updated:** 25 Nov 2026
- **Also known as:** GHSA-j242-6f68-5fhq

## What is CVE-2026-134070?

CVE-2026-134070 is a high-severity code injection vulnerability in AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3, published on 25 Nov 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official 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:

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.

Weakness: CWE-96 (Improper Neutralization of Directives in Statically Saved Code)

## Which versions are affected by CVE-2026-134070?

An affected version is exposed as installed. No special setting or call is needed.


## How do I fix CVE-2026-134070?

No fix has been published for CVE-2026-134070 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-134070 being exploited?

There is no known exploitation of CVE-2026-134070 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-134070 and fix it if it is affected.

What it is: CVE-2026-134070 is a high-severity code injection vulnerability in AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3, published on 25 Nov 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-134070 in the wild and no public exploit code.
Exposure: An affected version is exposed as installed. No special setting or call is needed.

Affected product: AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-134070/ (Markdown: https://insights.sbomify.com/CVE-2026-134070/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-134070
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-134070
- OSV: https://osv.dev/vulnerability/CVE-2026-134070

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-134070/
Summaries are generated and may contain mistakes; the official description above is the record.
