CloudFormationStackSetsOrgMemberServiceRolePolicy

Last Modified

Jul 22, 2026

July 22, 2026 at 09:04 PM UTC

Version

v2

Total Versions

3

Created

Jul 22, 2026

Actions

13

Risk

Medium

The same capabilities in a scoped form, resource policy writes, reads across all data, or full access to a whole service. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed

  • Medium

    Can grant itself more permissions

    Grants the actions of 2 documented escalation paths, but only on named resources or under a condition. Review that scope before trusting it.

    • iam-005iam:PutRolePolicyscoped
      • iam:PutRolePolicy: condition aws:ResourceAccount, on arn:aws:iam::*:role/stacksets-exec-*
    • iam-009iam:AttachRolePolicyscoped
      • iam:AttachRolePolicy: condition iam:PolicyARN, on arn:aws:iam::*:role/stacksets-exec-*

    Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.

  • Medium

    Can take over existing resources that run as another role

    Grants the actions of 1 documented escalation path, but only on named resources or under a condition. Review that scope before trusting it.

    • cloudformation-002cloudformation:UpdateStackscoped
      • cloudformation:UpdateStack: condition aws:ResourceAccount, on arn:aws:cloudformation:*:*:stack/stacksets-exec-role-stack-*

    Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": [
            "cloudformation:CreateStack",
            "cloudformation:DescribeStackEvents",
            "cloudformation:UpdateStack",
            "cloudformation:DeleteStack",
            "cloudformation:DescribeStacks"
          ],
          "Resource": [
            "arn:aws:cloudformation:*:*:stack/stacksets-exec-role-stack-*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Action": [
            "iam:CreateRole",
            "iam:DeleteRole",
            "iam:GetRole",
            "iam:GetRolePolicy",
            "iam:DeleteRolePolicy",
            "iam:PutRolePolicy"
          ],
          "Effect": "Allow",
          "Resource": [
            "arn:aws:iam::*:role/stacksets-exec-*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Action": [
            "iam:DetachRolePolicy",
            "iam:AttachRolePolicy"
          ],
          "Effect": "Allow",
          "Resource": [
            "arn:aws:iam::*:role/stacksets-exec-*"
          ],
          "Condition": {
            "StringEquals": {
              "iam:PolicyARN": "arn:aws:iam::aws:policy/AdministratorAccess"
            }
          }
        }
      ]
    },
    "VersionId": "v2",
    "IsDefaultVersion": true,
    "CreateDate": "2026-07-22T20:12:14+00:00"
  }
}

Version History (6 recorded)

Raw history
v2updated

8 actions added

10ee362
2 permissions management, incl. iam:DeleteRolePolicy: iam:DeleteRolePolicy, iam:PutRolePolicy
v1updated

scope changed, no action added or removed

d69f1ce

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 18, 2024

aafbae9

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

May 13, 2024

1b36617

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Dec 10, 2019

7bbb0cb

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Nov 15, 2019

0736cd0