AWS published its bulletin on 6 November 2026. CVE-2026-122193 is not in a shipped Trusted Remote Execution (REX) binary. It was in a setup-guide example. Users who ran it created two AWS Systems Manager documents, Rex-RO and Rex-RW, whose parameters could lead to command injection outside the REX sandbox.
AWS removed the example, but says there is no workaround for documents already created: they must be deleted from every affected account and region. Correcting the web page does not change infrastructure that a reader deployed.
The documentation created a persistent object
REX is an open-source framework for running scripts on managed instances. A signed Cedar policy is intended to define an immutable boundary around each execution. The vulnerable example created SSM documents, which describe actions that Systems Manager can invoke on a machine.
The AWS bulletin says input-parameter handling allowed a user authorised to invoke the document to supply a crafted value and execute commands not intended by the example. The scriptArgs parameter belonged to the same defect class. Execution could then leave the boundary that the REX policy was meant to enforce.
installation guide
│ run by an administrator
▼
persistent SSM documents in one account and region
│ invocation with parameters
▼
command constructed outside the REX boundary
The actor must already be allowed to invoke the SSM document. The advisory therefore does not describe anonymous Internet access to every instance using REX. The consequence remains significant: permission to run a bounded script can become arbitrary command execution on the managed instance.
Removing the example is insufficient
Ordinary documentation transfers information. Infrastructure documentation also transfers executable state: templates, policies, SSM documents, IAM roles and regional resources. Once applied, those objects live independently from the page that created them. They can be copied between accounts, included in an internal module or retained after an initial test ends.
AWS therefore cannot define an affected product version. Inventory is historical: did someone follow the guide and create Rex-RO or Rex-RW? A team can run a current REX version while retaining a vulnerable document created weeks earlier.
A package or image scanner will not find it. Custom SSM documents need to be queried in every account and region, followed by a search for copies under other names. CloudTrail history, infrastructure-as-code repositories and bootstrap scripts can establish provenance.
The project GHSA also shows a limitation of automated inventories. It formally associates the advisory with rex-runner 0.1.0 and displays the same version as affected and fixed, while the text says no shipped artefact is vulnerable. The advisory body, rather than the version pair alone, defines exposure here.
Inventory before deletion
list-documents is regional. This read-only example searches for the two published names among documents owned by the account. Repeat it for every used region and every organisation account:
aws ssm list-documents \
--region eu-west-3 \
--filters Key=Owner,Values=Self \
--query "DocumentIdentifiers[?Name=='Rex-RO' || Name=='Rex-RW'].[Name,DocumentVersion,Owner,DocumentType]" \
--output table
The AWS CLI reference confirms that the operation returns only the current region and account. An empty result excludes the exact two names in that scope; it does not exclude a renamed copy, another account or another region. Preserve the definition of a discovered document for investigation with a read operation:
aws ssm get-document \
--region eu-west-3 \
--name Rex-RO \
--document-format YAML
Do not execute the document to test it. A definition created from the guide is enough to trigger the removal requested by AWS. Historical invocations belong in logs; reproduction would add a command on an instance without supplying evidence required for remediation.
Deletion, investigation and reconstruction
AWS asks users to delete documents created from the example. Because no workaround is offered, adding a local filter while retaining the object should not be presented as equivalent remediation. Before deletion, an organisation that suspects abuse can preserve the definition, permissions, modification history and invocation logs needed for investigation.
| Question | Evidence to examine |
|---|---|
| Where does the document exist? | SSM inventory by account and region |
| Who could invoke it? | IAM policies, roles and delegation |
| Was it invoked with unexpected input? | CloudTrail and SSM logs |
| What could the target instance access? | Instance profile, network, data and reachable secrets |
Reconstruction must avoid concatenating untrusted parameters into a shell command. Pass arguments as data to the execution mechanism, validate their grammar and test control characters that an interpreter could consume. These principles are general; AWS does not publish a replacement document to copy in the bulletin.
Treat examples as distributed code
A security review of executable documentation should cover the objects it creates and their lifecycle: stable identifier, version, inventory, update mechanism and removal procedure. Silently changing a snippet cannot remediate deployed copies. Publishers need a way to reach users, and users need a way to trace the origin of generated resources.
The REX case does not show that every documentation example is a supply-chain compromise. It establishes a narrower result: an official example created a persistent vulnerable capability, with no product artefact to update. Package-centred inventories are not designed to see that debt.
Primary sources: AWS bulletin for CVE-2026-122193, project advisory GHSA-95g5-m242-wvhr, SSM document documentation, AWS CLI list-documents reference.