ZeroHour

CVE-2026-89049

mass

SSRF in AWS Systems Manager Agent can expose instance IAM role credentials

CVSS 4.0
8.5 high
EPSS
Published
()
Modified
AI analysis

AWS Systems Manager Agent (SSM Agent) versions before 3.3.4851.0 on all platforms contain a server-side request forgery (CWE-918) in the port-forwarding-to-remote-hosts functionality, caused by improper validation of equivalent address representations (CWE-1289) when checking destination hosts against the remote destination denylist. An authenticated remote user with privileges to start an SSM Session Manager port-forwarding session can supply a crafted destination host value that expresses a denied link-local address in an alternate representation, bypassing the denylist and causing the agent to reach link-local endpoints such as the instance metadata service. From there, the attacker can potentially obtain the managed instance's temporary IAM role credentials and then act with that role's permissions from outside the instance, producing high confidentiality impact on the node and on downstream systems reachable with the role. The flaw affects any organization running affected SSM Agent versions on managed nodes, including EC2 instances, hybrid-activated on-premises servers, VMs and edge devices. No public proof-of-concept is known and the issue is not in the CISA KEV catalog, so no active exploitation is known at this time.

What to do: Upgrade SSM Agent to version 3.3.4851.0 or later on every managed node across all platforms (EC2 instances, hybrid-activated on-premises servers, VMs and edge devices), and inventory current agent versions via Systems Manager to find stragglers. As interim risk reduction, restrict IAM permissions for initiating Session Manager port-forwarding sessions and scope managed-instance IAM roles tightly so stolen role credentials have limited downstream access.

Affected
Amazon Web Services (AWS) Systems Manager Agent (SSM Agent)all versions before 3.3.4851.0, on all platforms
Estimated exposure
masslikely millions of SSM-managed instances/nodes (SSM Agent ships by default in Amazon Linux and many AWS machine images) — SSM Agent is preinstalled on standard Amazon Linux AMIs and many AWS/public machine images and runs by default on EC2 instances and hybrid nodes enrolled in AWS Systems Manager, which AWS has publicly described as managing millions of…

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

Description

A server-side request forgery issue due to improper validation of equivalent address representations in the port forwarding to remote hosts functionality in Amazon AWS Systems Manager Agent (SSM Agent) before 3.3.4851.0 on all platforms might allow an authenticated remote user to bypass the remote destination denylist and reach link-local endpoints, potentially obtaining the temporary IAM role credentials of a managed instance and acting with that role's permissions from outside the instance, via a crafted destination host value that uses an alternate representation of a denied link-local address. To remediate this issue, users should upgrade to version 3.3.4851.0 or later.

Weakness
CWE-918, CWE-1289
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:H/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

AWS Systems Manager Agent Vulnerability Allows Attackers to Bypass Port-Forwarding Restrictions

Critical SSRF flaw in AWS SSM Agent (CVE-2026-89049) lets authenticated users bypass link-local denylists and reach EC2 Instance Metadata Service for IAM credentials.

CVE-2026-89049 (Critical, CVSS v3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) affects Amazon SSM Agent versions earlier than 3.3.4851.0, with the fix shipping in 3.3.4851.0. The remote-host port-forwarding feature's denylist for link-local addresses can be bypassed because equivalent address representations are not validated, enabling SSRF to restricted endpoints such as the EC2 Instance Metadata Service at 169.254.169.254. An attacker with authenticated AWS access and ssm:StartSession permission could retrieve instance profile IAM credentials and pivot to S3, Secrets Manager, Lambda, or other cloud resources depending on role permissions.