Cyber Security News

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

A critical vulnerability in the AWS Systems Manager Agent could let authenticated attackers bypass remote-host port-forwarding restrictions and access sensitive link-local services, including the Amazon EC2 Instance Metadata Service.

The flaw, tracked as CVE-2026-89049, affects Amazon SSM Agent versions earlier than 3.3.4851.0 and has been fixed in version 3.3.4851.0.

AWS Systems Manager Agent runs on Amazon EC2 instances, on-premises servers, and virtual machines to enable remote management capabilities such as Run Command and Session Manager.

Session Manager also supports port forwarding, allowing authorized users to create secure tunnels from a managed instance to a remote destination without exposing inbound network ports.

The issue exists in the remote-host port-forwarding feature used through the AWS-StartPortForwardingSessionToRemoteHost SSM document.

AWS Systems Manager Agent Vulnerability

According to the GitHub advisory, the agent’s denylist protection for link-local addresses can be bypassed because it does not properly validate equivalent address representations.

Link-local IP addresses are normally blocked because they can expose internal cloud services that should not be reachable through user-controlled tunnels. A primary target is the EC2 Instance Metadata Service, commonly available at 169.254.169.254.

This service can provide temporary credentials associated with the IAM role attached to an EC2 instance. An attacker must already have authenticated AWS access and permission to initiate a remote-host port-forwarding session.

However, successful exploitation could let that user route traffic to restricted link-local endpoints by using an alternative representation of a blocked destination address. The vulnerability is classified as server-side request forgery, or SSRF, and improper validation of unsafe equivalent input.

If the attacker retrieves instance profile credentials from the metadata service, they could use those credentials outside the compromised EC2 instance to make AWS API calls. The effective impact depends on the permissions assigned to the instance’s IAM role.

Overly permissive roles could enable access to S3 buckets, Secrets Manager secrets, databases, Lambda functions, or other cloud resources.

The advisory assigns the flaw a Critical severity rating with a CVSS v3.1 vector of AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. This indicates that exploitation is network-reachable, requires low complexity and low privileges, needs no user interaction, and can affect confidentiality, integrity, and availability.

Organizations should immediately update affected systems to SSM Agent version 3.3.4851.0 or later. AWS also recommends reviewing forked or derivative builds of the agent to ensure they incorporate the validation fix.

Until patching is complete, administrators should restrict access to the AWS-StartPortForwardingSessionToRemoteHost document. IAM permissions for ssm: StartSession should be scoped so untrusted users, automation identities, and broadly assigned roles cannot establish remote-host port-forwarding sessions.

Security teams should additionally audit Session Manager activity, review IAM roles attached to EC2 instances, and apply least-privilege controls to instance profiles.

The Amazon SSM Agent configuration includes a default list of denied metadata and link-local endpoints. However, this vulnerability demonstrates why address validation must account for alternate representations rather than relying only on straightforward string matching.

Learn 7 Metric-Gated AI SOC Deployment Phases – Download Free AI SOC Deployment Playbook 2026.

Abinaya

Abi is a Security Editor and fellow reporter with Cyber Security News. She is covering various cyber security incidents happening in the Cyber Space.

Recent Posts

Hackers used Compromised ConnectWise Backup Credentials to Hack 173 Microsoft 365 Accounts

Hackers used a stolen ConnectWise Cloud Backup credential to sign in to 173 Microsoft 365…

58 minutes ago

Google Fixes 10 Chrome Vulnerabilities, Including Memory Corruption Flaw Found With Claude AI

Google released a Chrome Stable security update fixing 10 vulnerabilities across Windows, Mac, and Linux,…

6 hours ago

Hackers Exploit Critical Collabora Online Flaw to Backdoor Nextcloud Servers

Hackers are exploiting a critical flaw in the Collabora Online Built-in CODE Server app for…

6 hours ago

OpenAI Confirms Its AI Model Hacked Government Website While Counting Hospital Beds

OpenAI has confirmed that an internal AI model hacked an unnamed government statistics website while…

8 hours ago

Hackers Use New ROMULUS ClickFix Platform to Deliver Malware and Evade Security Detection

Hackers are using a newly identified platform called ROMULUS to deliver malware through ClickFix traps,…

21 hours ago

New YuanKong Android RAT Hijacks Phones to Steal Banking PINs and Passwords

A newly analyzed Android remote-access Trojan called YuanKong can watch and control a victim’s phone,…

22 hours ago