---
id: "CVE-2026-122193"
page: "https://infrastack.ai/live/CVE-2026-122193"
kind: "vulnerability"
aliases: ["CVE-2026-122193"]
title: "AWS Trusted Remote Execution: SSM setup script lets users run commands as root"
severity: "critical"
cvss: 9.9
epss: null
exploited: false
status: "open"
category: "infrastructure"
products: []
ecosystems: []
tags: ["aws", "cedar", "infrastructure", "lab-disclosure", "managed-instances", "ssm", "trusted-remote-execution"]
not_affected_if: ["never-ran-example-script"]
published_at: "2026-11-06T17:17:20+00:00"
first_seen_at: "2026-11-06T17:43:12+00:00"
updated_at: "2026-11-06T17:52:46+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-122193", "first_seen_at": "2026-11-06T17:43:12+00:00"}, {"source": "lab", "url": "https://aws.amazon.com/security/security-bulletins/rss/2026-173-aws/", "first_seen_at": "2026-11-06T17:52:46+00:00"}]
exploit_sources: []
---

# AWS Trusted Remote Execution: SSM setup script lets users run commands as root

Link for people: https://infrastack.ai/live/CVE-2026-122193 (this .md is for agents)

The example SSM document provisioning script in AWS Trusted Remote Execution (REX) before 2026-07-28 has an OS command injection flaw. An authenticated user allowed to invoke the Rex-RO or Rex-RW SSM document can run arbitrary commands as root on the managed instance, bypassing Cedar policy enforcement.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Look for Rex-RO and Rex-RW SSM documents in each AWS account and Region where the example script was run.
- Check whether those documents were created from the example provisioning script.

## Fix

- Delete any Rex-RO and Rex-RW SSM documents created from the example script, in each account and Region where it was run.

## Timeline

- 2026-11-06T17:43:12+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-122193
- 2026-11-06T17:52:46+00:00 lab https://aws.amazon.com/security/security-bulletins/rss/2026-173-aws/ — AWS: CVE-2026-122193 - Issue with Trusted Remote Execution Setup Guide - OS command injection in the example SSM documents in Trusted Remote Execution (REX)

## Documents

- [advisory] AWS: CVE-2026-122193 - Issue with Trusted Remote Execution Setup Guide - OS command injection in the example SSM documents in Trusted Remote Execution (REX) https://aws.amazon.com/security/security-bulletins/rss/2026-173-aws/
- [mentions] AWS: CVE-2026-122193 - Issue with Trusted Remote Execution Setup Guide - OS command injection in the example SSM documents in Trusted Remote Execution (REX) https://aws.amazon.com/security/security-bulletins/rss/2026-173-aws/

## From the sources

CVE-2026-122193 - Issue with Trusted Remote Execution Setup Guide - OS command injection in the example SSM documents in Trusted Remote Execution (REX)

### CVE-2026-122193 - Issue with Trusted Remote Execution Setup Guide - OS command injection in the example SSM documents in Trusted Remote Execution (REX)

Bulletin ID: 2026-173-AWS Scope: AWS Content Type: Important (requires attention) Publication Date: 11/06/2026 09:00 AM PST

 Description:

Trusted Remote Execution (REX) is an open-source framework for executing sandboxed scripts on managed instances, where a signed Cedar policy is meant to be the immutable security boundary around each script run.

We identified CVE-2026-122193, an OS command injection issue in an example provided in the set-up documentation. The example included a script that creates AWS Systems Manager (SSM) documents (Rex-RO and Rex-RW) for running scripts on managed instances. Due to how the example script handled input parameters, a user with permissions to invoke the SSM document could supply crafted input that would run unintended operating system commands on the managed instance, outside of the REX sandbox. The scriptArgs parameter is affected by the same class of issue.

Impacted versions: 

This is not an issue in a shipped REX artifact version. It is an affected example in the set-up documentation. Anyone who created the Rex-RO / Rex-RW SSM documents by following the guide is affected.

Resolution:

We removed this set-up example from the guide. We recommend you delete any SSM documents if you created them, in each account/region where you ran the example:

- Deleting custom SSM documents
- delete-document

Workarounds:

None.

References:

- CVE-2026-122193
- GHSA-95g5-m242-wvhr

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

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
