CVE-2024-28056
AWS Amplify CLI has incorrect trust policy management
Also known as GHSA-846g-p7hm-f54r
Mitigation
- Upgrade @aws-amplify/cli to 12.10.1 or later.
Who should check
- Projects that depend on npm package @aws-amplify/cli (< 12.10.1)
- Anyone running n/a (versions: see the vendor advisory)
- Anyone running aws amplify_cli < 12.10.1
Vulnerability facts
- Affected
- @aws-amplify/cli < 12.10.1
- Fixed in
- 12.10.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 2.03% chance of exploitation in 30 days (percentile 82, 2026-11-26)
- CWE
- CWE-276
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm @aws-amplify/cli | < 12.10.1 | 12.10.1 | osv |
| n/a | — | — | nvd |
| aws amplify_cli | < 12.10.1 | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-28056. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-28056.md Affected: @aws-amplify/cli < 12.10.1 Fixed in: 12.10.1 Steps: 1. Search this machine and project for @aws-amplify/cli (npm), n/a, aws amplify_cli: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Exploits and PoCs
Other
- https://github.com/aws-amplify/amplify-cli/releases/tag/v12.10.1
- https://github.com/aws-amplify/amplify-cli/blob/8ad57bf99a404f3c92547c8a175458016f682fac/packages/amplify-provider-awscloudformation/resources/update-idp-roles-cfn.json
- https://aws.amazon.com/security/security-bulletins/AWS-2024-003
- https://github.com/aws-amplify/amplify-cli
- https://securitylabs.datadoghq.com/articles/amplified-exposure-how-aws-flaws-made-amplify-iam-roles-vulnerable-to-takeover
FAQ
Is CVE-2024-28056 being exploited?
There is no confirmed exploitation: CVE-2024-28056 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.03% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-28056?
Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-28056?
@aws-amplify/cli < 12.10.1.
Is there a fix for CVE-2024-28056?
Yes. Fixed in 12.10.1. Upgrade @aws-amplify/cli to 12.10.1 or later.
How do I check if I'm affected by CVE-2024-28056?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.