Check provider logo

CDKToolkit CloudFormation stack has Bootstrap version 21 or higher

cloudformation_stack_cdktoolkit_bootstrap_version

Severityhigh
by Prowler

CloudFormation CDKToolkit stack's BootstrapVersion is compared to a recommended minimum (default 21). A lower value indicates the environment uses legacy bootstrap resources and IAM roles from older templates.

Risk

Outdated bootstrap stacks can lack recent hardening. Asset buckets or ECR repos may be easier to misuse, and deployment roles may have broader trust.

Adversaries could tamper artifacts or assume privileged roles, compromising integrity/confidentiality and enabling privilege escalation.

Run this check with Prowler CLI

prowler aws --checks cloudformation_stack_cdktoolkit_bootstrap_version

Recommendation

Standardize on the modern bootstrap at or above the recommended version (e.g., >= 21) in every account and Region.

Apply least privilege to bootstrap roles, limit trusted accounts, enable termination protection, and periodically review for version drift to strengthen defense in depth.

Remediation

CLI

cdk bootstrap aws://<ACCOUNT_ID>/<REGION>

Native IaC
Terraform
Other
  1. Sign in to the AWS Console and open CloudShell
  2. Run: cdk bootstrap aws://<ACCOUNT_ID>/<REGION>
  3. In the console, go to CloudFormation > Stacks > CDKToolkit > Outputs
  4. Confirm Output "BootstrapVersion" is 21 or higher

Source Code

Resource Type

AwsCloudFormationStack

References