CVE-2024-28056 AWS Amplify CLI has incorrect trust policy management

Critical 9.8 Published Updated

Improper IAM role trust policy configuration in AWS Amplify CLI allows unauthorized assume role access if Authentication components are removed.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-28056?

CVE-2024-28056 is a critical vulnerability in n/a, published on 15 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Amazon AWS Amplify CLI before 12.10.1 incorrectly configures the role trust policy of IAM roles associated with Amplify projects. When the Authentication component is removed from an Amplify project, a Condition property is removed but "Effect":"Allow" remains present, and consequently sts:AssumeRoleWithWebIdentity would be available to threat actors with no conditions. Thus, if Amplify CLI had been used to remove the Authentication component from a project built between August 2019 and January 2024, an "assume role" may have occurred, and may have been leveraged to obtain unauthorized access to an organization's AWS resources. NOTE: the problem could only occur if an authorized AWS user removed an Authentication component. (The vulnerability did not give a threat actor the ability to remove an Authentication component.) However, in realistic situations, an authorized AWS user may have removed an Authentication component, e.g., if the objective were to stop using built-in Cognito resources, or move to a completely different identity provider.

Weakness: CWE-276

Which versions are affected by CVE-2024-28056?

2 open source packages ship an affected version, including @aws-amplify/cli. It affects 1 product.

PackageAffectedFixed in
@aws-amplify/cli npmAll versions12.10.1
@aws-amplify/cli npmAll versions12.10.1

Products include Amazon Aws Amplify Cli.

How do I fix CVE-2024-28056?

Upgrade @aws-amplify/cli to 12.10.1 or later.

Is CVE-2024-28056 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-28056 exists.

Sources

Also known as GHSA-846g-p7hm-f54r.

Is CVE-2024-28056 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free