AWS Security ChangesHomeSearch

AWS cli medium security documentation change

Service: cli · 2026-05-22 · Security-related medium

File: cli/latest/reference/kms/re-encrypt.md

Summary

Added a note about grant constraints when using SourceArn with ReEncrypt operations

Security assessment

The change adds a security constraint requiring matching SourceArn values in grants for both source and destination KMS keys during re-encryption. This prevents potential privilege escalation by ensuring consistent authorization context across cryptographic operations.

Diff

diff --git a/cli/latest/reference/kms/re-encrypt.md b/cli/latest/reference/kms/re-encrypt.md
index cef8f3afa..d20820746 100644
--- a//cli/latest/reference/kms/re-encrypt.md
+++ b//cli/latest/reference/kms/re-encrypt.md
@@ -15 +15 @@
-  * [AWS CLI 2.34.49 Command Reference](../../index.html) »
+  * [AWS CLI 2.34.52 Command Reference](../../index.html) »
@@ -78,3 +78,7 @@ The KMS key that you use for this operation must be in a compatible key state. F
-> **Cross-account use** : Yes. The source KMS key and destination KMS key can be in different Amazon Web Services accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a different account, use the [key ARN](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN) or [alias ARN](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-alias-ARN) . A short [key ID](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id) is also acceptable for the source key when decrypting symmetric ciphertexts, though using a full key ARN is recommended to be more explicit about the intended KMS key.
-> 
-> **Required permissions** :
+### Note
+
+> When using grants with `SourceArn` constraints for `ReEncrypt` operations, the grants on both the source KMS key (for `ReEncryptFrom` ) and the destination KMS key (for `ReEncryptTo` ) must specify the same `SourceArn` value.
+
+**Cross-account use** : Yes. The source KMS key and destination KMS key can be in different Amazon Web Services accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a different account, use the [key ARN](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN) or [alias ARN](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-alias-ARN) . A short [key ID](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id) is also acceptable for the source key when decrypting symmetric ciphertexts, though using a full key ARN is recommended to be more explicit about the intended KMS key.
+
+**Required permissions** :
@@ -637 +641 @@ DestinationKeyMaterialId -> (string)
-  * [AWS CLI 2.34.49 Command Reference](../../index.html) »
+  * [AWS CLI 2.34.52 Command Reference](../../index.html) »