ZeroHour

CVE-2026-81849

mass

Path traversal in AWS SSM Agent (amazon-ssm-agent) downloadContent plugin

CVSS 4.0
8.7 high
EPSS
<1%p45
Published
()
Modified
AI analysis

CVE-2026-81849 is a path traversal flaw (CWE-23) in the aws:downloadContent plugin of AWS Systems Manager Agent (amazon-ssm-agent) before 3.3.4515.0. It is triggered when an authenticated remote user whose ssm:SendCommand permission is limited to the AWS-DownloadContent document directs the agent to download from an S3 source using crafted object keys, allowing files to be written outside the intended download directory with root privileges. By overwriting specific sensitive files on the host, an attacker can escalate this to arbitrary code execution as root. Affected parties are any SSM-managed instances (EC2 or hybrid/on-premises) running an agent version older than 3.3.4515.0, particularly environments where downloadContent permissions were assumed to be safely scoped. No public proof-of-concept, KEV listing, or confirmed in-the-wild exploitation is known; EPSS estimates a 0.6% chance of exploitation within 30 days.

What to do: Upgrade amazon-ssm-agent to version 3.3.4515.0 or later on all managed instances, using the Systems Manager agent auto-update association or your fleet update process where enabled. Audit IAM policies that grant ssm:SendCommand scoped to AWS-DownloadContent, since such restricted principals are the intended trigger for this flaw, and verify on affected hosts that no sensitive root-owned files (e.g., cron, systemd, or authorized_keys files) were modified unexpectedly. Restricting SendCommand to AWS-DownloadContent alone is not a sufficient mitigation on vulnerable agent versions.

Affected
Amazon Web Services (AWS) amazon-ssm-agent (AWS Systems Manager Agent) - aws:downloadContent plugin / AWS-DownloadContent documentbefore 3.3.4515.0
Estimated exposure
mass>1,000,000 managed instances run amazon-ssm-agent (preinstalled on Amazon Linux and most Windows/Windows-style EC2 AMIs), though the directly exploitable… — amazon-ssm-agent ships enabled by default on Amazon Linux 2/2023 and the majority of AWS machine images and runs on every Systems Manager-managed instance, implying an install base in the millions, but actual exploit exposure is narrowed…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Improper limitation of a pathname to a restricted directory in the aws:downloadContent plugin in amazon-ssm-agent before 3.3.4515.0 might allow an authenticated remote user whose ssm:SendCommand permission is restricted to the AWS-DownloadContent document, to write arbitrary files outside the intended download directory with root privileges, via crafted object keys in the S3 source the document is directed to retrieve. This issue may lead to arbitrary code execution as root if specific sensitive files are overwritten. To remediate this issue, customers should upgrade amazon-ssm-agent to version 3.3.4515.0 or later.

Weakness
CWE-23
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.