If you patched the AWS SSM Agent vulnerability CVE-2026-134069 by updating the agent on your Windows fleet, you may still be exposed. Amazon Web Services says so plainly in bulletin 2026-197-AWS: instances launched from an affected Windows AMI stay vulnerable after an in-place agent upgrade. The only fix AWS supports is to replace them with instances launched from an AMI released on or after September 9, 2026. That is rare. For almost every other vulnerability in agent software, a new package is the end of the story.
We went through the bulletin, GitHub advisory GHSA-rfpp-9v45-jjv4, the CVE record and the AWS documentation for Default Host Management Configuration. Below we explain where the flaw sits and how to find affected EC2 instances with the AWS CLI.
What the AWS SSM Agent vulnerability actually is
Amazon SSM Agent (the amazon-ssm-agent project on GitHub) is the piece of software AWS Systems Manager uses to manage a server. It runs commands from SSM documents, installs patches, collects inventory and opens Session Manager connections. The agent opens an outbound connection to the Systems Manager service endpoints, or to VPC endpoints in private networks, so there is no inbound port to firewall. It comes preinstalled on the Windows Server AMIs that Amazon Web Services publishes for Amazon Elastic Compute Cloud, and on most of its Linux AMIs. With SSM Agent installed and the right permissions, an instance shows up in Systems Manager as a managed node.
To talk to Systems Manager, the agent needs permissions. The traditional way is to attach an instance profile with an IAM role to every instance. The newer option is Default Host Management Configuration, or DHMC. You configure one default role per AWS account and Region, and any EC2 instance with a recent enough agent becomes a managed node without its own instance profile. According to the documentation, DHMC requires IMDSv2 and SSM Agent 3.2.582.0 or later.
Under DHMC, the agent registers itself on first boot and writes the registration data to disk. On Windows that data lives in the C:\ProgramData\Amazon directory, and the agent uses it to fetch temporary credentials for the DHMC role. This is where things broke. AWS says every instance launched from the same affected AMI shared one registration key. The CVE record files it under CWE-1394, use of a default cryptographic key. As a result, a local user without admin rights may be able to obtain the DHMC role credentials that are meant for the agent alone. No privilege escalation on the operating system is required.
The advisory limits the scope to SSM Agent versions before 3.3.5226.0 on AWS-provided Windows Server AMIs released before September 9, 2026. Linux AMIs are not covered by the description, and neither are on-premises servers registered through a hybrid activation. AWS published the advisory and the CVE on November 23 at about 21:30 UTC. The fixed build, 3.3.5226.0, had been on GitHub since August 20. Its release notes mention only a terse “Update the logic for loading RegistrationInfo”.
Why updating the SSM agent doesn’t fix it
The key is not baked into the code. It sits in the state the old agent created on first boot, and a new agent keeps reading that existing registration data. Hence the line in the bulletin that instances from an affected AMI keep the shared key after an in-place upgrade. If you keep agents current with the AWS-UpdateSSMAgent document, the console will show a fresh version number while the vulnerability stays exactly where it was.
The obvious shortcut would be to wipe the registration and let the agent start over. AWS warns against that. Deleting the agent’s Vault is not a supported remediation and breaks instances managed through DHMC. The DHMC documentation adds that an instance without those files can no longer get credentials at all. Your options are then an instance profile or rebuilding the instance.
For security teams this is awkward. Scanners and inventory reports that judge exposure by agent version will mark these machines as clean. Here the version tells you nothing. What matters is the source AMI and how the instance is managed.
Compare that with the two earlier SSM Agent advisories this year. CVE-2026-81849, a path traversal bug in the aws:downloadContent plugin, and CVE-2026-89049, a Session Manager port-forwarding SSRF rated 9.9, were both closed by installing a newer agent. CVE-2026-134069 scores lower but takes far more work to clean up.
The path traversal bug is a useful reminder of how much power the agent holds. The SSM agent runs as root on Linux and as SYSTEM on Windows, so that flaw let a user whose rights were limited to one document write files with root privileges. Security firm Mitiga showed back in 2023 that an attacker who already has root privileges can even turn the agent into a remote access trojan: re-register it in hybrid mode with a malicious AWS account, or start a second agent process next to the real one, and control the box from outside. AWS said the agent was behaving as designed and pointed customers to VPC endpoints with endpoint policies. CVE-2026-134069 is different because the attacker does not need admin rights at all.
Local access, cloud-wide damage
An attacker needs local access to the instance, so this cannot be exploited straight from the internet. AWS rates it 7.3 under CVSS 3.1 and sets the scope to changed, because the damage reaches past the operating system into IAM. NVD keeps the scope unchanged and lands at 6.1. Under CVSS 4.0, AWS gives it 8.2. There are no reports of exploitation, and the flaw is not in the CISA KEV catalog.
Two scenarios are realistic. On a shared Windows Server such as a jump host where contractors log in over RDP, an ordinary user could pick up AWS credentials that the operating system’s permission model was supposed to keep from them. The second case is worse. An attacker who compromises a web app on an IIS server runs code as the app’s service account. Normally the next step would be privilege escalation on the box. With this bug, the attacker could skip that and move straight into your AWS account.
How far they get depends on the DHMC role. The default policy, AmazonSSMManagedEC2InstanceDefaultPolicy, grants only what the agent needs to work. We diffed it against the widely used AmazonSSMManagedInstanceCore, and the only difference is ssm:GetParameter and ssm:GetParameters, which the DHMC policy leaves out. If someone later gave the DHMC role access to Parameter Store, Secrets Manager or S3, for example so Session Manager can ship logs to a bucket, every DHMC instance in that Region got those rights too. That is how a local bug turns into a data leak.
Finding affected EC2 instances with the AWS CLI
You need three answers: is DHMC enabled in the Region, did the Windows instance come from an AMI older than September 9, and does it actually use DHMC rather than an instance profile. Start with the Regions where DHMC is on:
ACCOUNT=$(aws sts get-caller-identity --query Account --output text)
for R in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do
aws ssm get-service-setting --region "$R" \
--setting-id "arn:aws:ssm:$R:$ACCOUNT:servicesetting/ssm/managed-instance/default-ec2-instance-management-role" \
--query "ServiceSetting.[SettingValue,Status]" --output text 2>/dev/null \
| sed "s/^/$R\t/"
done
A role name with the status Customized means DHMC is enabled there. In those Regions, list every Windows instance with its source AMI, launch time and instance profile, then look up when each AMI was created. The --include-deprecated flag also returns deprecated images:
R=us-east-1
aws ec2 describe-instances --region "$R" \
--filters Name=platform,Values=windows \
Name=instance-state-name,Values=pending,running,stopping,stopped \
--query 'Reservations[].Instances[].[InstanceId,ImageId,LaunchTime,IamInstanceProfile.Arn]' \
--output table
aws ec2 describe-images --region "$R" --include-deprecated \
--image-ids ami-0123456789abcdef0 \
--query 'Images[].[ImageId,Name,CreationDate]' --output text
If describe-images returns nothing because the AMI has been deregistered, fall back to the launch time. An instance launched before September 9 must come from an older AMI. The reverse does not hold. An instance launched in October can still come from an old AMI through a launch template or your own golden image.
Finally, check whether an instance with a profile uses DHMC at all. AWS says the agent tries instance profile permissions first. If that role allows ssm:UpdateInstanceInformation, the instance does not use the DHMC role. The IAM policy simulator answers that quickly:
aws iam simulate-principal-policy \
--policy-source-arn arn:aws:iam::123456789012:role/MyEC2Role \
--action-names ssm:UpdateInstanceInformation \
--query 'EvaluationResults[].EvalDecision' --output text
An allowed result means the instance runs on its profile. AWS does not document what happens to the old registration data if an instance first registered through DHMC and got a profile later, so we would treat those as affected. You can see which SSM agent is installed with aws ssm describe-instance-information and its AgentVersion field, but as explained, that number does not settle anything. We checked these commands against the AWS CLI reference, not against an affected account.
Replacing instances, stopgaps and checking for abuse
For affected machines, AWS recommends rebuilding from a Windows Server AMI released on or after September 9, 2026, which ships SSM Agent 3.3.5226.0 or later. Prioritize by risk: first servers where several people work over RDP, then internet-facing web servers, and last the boxes only admins can sign in to. If you build your own golden images, switch the base AMI and rebuild. Then check launch templates, Auto Scaling groups and build pipelines so nothing still points at the old image.
Until then, the only stopgap AWS names is to restrict local access for non-admin users on those instances. The GitHub advisory still carries an editorial note saying this workaround is a CNA draft that may be replaced with “There is no workaround available.” We would also trim any permissions that were added to the DHMC role. That shrinks the blast radius right away, but it hits every DHMC instance in the Region, so test it first. Switching DHMC off in a hurry is a bad trade: instances without a suitable profile drop out of Systems Manager, and Patch Manager and Session Manager stop working on them.
To see whether the credentials have already been used, look in CloudTrail. With Amazon Athena you can summarize every API call made by DHMC role sessions. Adjust the table and role name to your setup:
SELECT eventsource, eventname, sourceipaddress,
count(*) AS calls, min(eventtime) AS first_seen, max(eventtime) AS last_seen
FROM cloudtrail_logs
WHERE useridentity.sessioncontext.sessionissuer.arn
LIKE '%AWSSystemsManagerDefaultEC2InstanceManagementRole%'
GROUP BY eventsource, eventname, sourceipaddress
ORDER BY calls DESC;
If an attacker used the role, red flags are calls an agent has no business making, such as GetSecretValue, GetParameter with decryption or S3 operations, and source IPs that don’t match the instance or your network. S3 object access only shows up if CloudTrail data events are enabled. If you find something, isolate and rebuild the instance and rotate every secret the role could read.
While you are in there, check your detection rules for unexpected hybrid registrations on EC2 instances. Elastic, for example, ships a rule for exactly that, and it catches the Mitiga technique regardless of this CVE.
Credentials held by management tooling have been a favorite target lately, as the vCenter zero-day and the Xen Orchestra login bypass showed. Our story on the Fluidkey hack shows how fast a forgotten helper service turns into a seven-figure loss.
Our take
This is no reason to panic, but it is a good reason to clean house. If you don’t use DHMC or only run Linux, AWS says you are not affected. If you run Windows under DHMC, don’t trust the green tick in your patch report. Work through the instance list by source AMI instead. What bothers us more than the bug is the disclosure: three months passed between the fix in August and the advisory in November, and the changelog gave no hint that it was security related.
The case also exposes a gap in a lot of patch processes. An update counts as done once the version number is right. Here the version is right and the problem remains. Tag every image with its source AMI and creation date, and make replacing instances a routine part of operations rather than an emergency drill. The details are in the AWS bulletin 2026-197-AWS, the GitHub advisory and the DHMC documentation.




