---
title: "CVE-2024-28056: AWS Amplify CLI has incorrect trust policy management"
url: https://erroneo.us/security/cve/CVE-2024-28056/
description: "CVE-2024-28056 (@aws-amplify/cli (npm)): Amazon AWS Amplify CLI before 12.10.1 incorrectly configures the role trust policy of IAM roles associated with…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-04-15
date_modified: 2025-03-21
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-28056"
kev: false
cvss: 9.8
epss: 0.01665
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 1.7% , percentile 77: FIRST’s model estimates a 1.7% chance of exploitation activity in the next 30 days, higher than 77% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes @aws-amplify/cli (npm) < 12.10.1, fixed in 12.10.1 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- npm `@aws-amplify/cli` < 12.10.1 → fixed: 12.10.1

## Affected products (CVE record)

- n/a n/a: see advisory

## Severity

- CISA-ADP CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 1.67% probability of exploitation activity in the next 30 days; percentile 77.

## Sources

- [GitHub Advisory GHSA-846g-p7hm-f54r](https://github.com/advisories/GHSA-846g-p7hm-f54r)
- [CVE.org record CVE-2024-28056](https://www.cve.org/CVERecord?id=CVE-2024-28056)
- [NVD entry CVE-2024-28056](https://nvd.nist.gov/vuln/detail/CVE-2024-28056)
- [github.com](https://github.com/aws-amplify/amplify-cli/releases/tag/v12.10.1)
- [github.com](https://github.com/aws-amplify/amplify-cli/commit/73b08dc424db2fb60399c5343c314e02e849d4a1)
- [github.com](https://github.com/aws-amplify/amplify-cli/blob/8ad57bf99a404f3c92547c8a175458016f682fac/packages/amplify-provider-awscloudformation/resources/update-idp-roles-cfn.json)
- [securitylabs.datadoghq.com](https://securitylabs.datadoghq.com/articles/amplified-exposure-how-aws-flaws-made-amplify-iam-roles-vulnerable-to-takeover/)
- [aws.amazon.com](https://aws.amazon.com/security/security-bulletins/AWS-2024-003/)

---
Source page: https://erroneo.us/security/cve/CVE-2024-28056/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
