Loading advisory.
Loading advisory.
AWS CDK CodeBuild S3 Log Encryption Boolean Inversion
The AWS Cloud Development Kit (AWS CDK) is an open-source software development framework for defining cloud infrastructure in code and provisioning it through AWS CloudFormation.
Published 2026-07-24 16:44 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| aws-cdk-lib | npm | < 2.253.0 | 2.253.0 | npm install aws-cdk-lib@2.253.0 |
| Amazon.CDK.Lib | NuGet | < 2.253.0 versions 2.0.0, 2.1.0, 2.10.0, 2.100.0, 2.101.0, 2.101.1, 2.102.0, 2.102.1, 2.103.0, 2.103.1, 2.104.0, 2.105.0, 2.106.0, 2.106.1, 2.107.0, 2.108.0, 2.108.1, 2.109.0, 2.11.0, 2.110.0 and 320 more | 2.253.0 | dotnet add package Amazon.CDK.Lib --version 2.253.0 |
| software.amazon.awscdk:aws-cdk-lib | Maven | < 2.253.0 versions 2.0.0, 2.0.0-alpha.10, 2.0.0-alpha.11, 2.0.0-alpha.12, 2.0.0-alpha.13, 2.0.0-alpha.14, 2.0.0-rc.1, 2.0.0-rc.10, 2.0.0-rc.11, 2.0.0-rc.12, 2.0.0-rc.13, 2.0.0-rc.14, 2.0.0-rc.15, 2.0.0-rc.16, 2.0.0-rc.17, 2.0.0-rc.18, 2.0.0-rc.19, 2.0.0-rc.20, 2.0.0-rc.21, 2.0.0-rc.22 and 356 more | 2.253.0 | No single command for Maven. Update to 2.253.0 in your build file. |
| github.com/aws/aws-cdk-go/awscdk/v2 | Go | < 2.253.0 | 2.253.0 | go get github.com/aws/aws-cdk-go/awscdk/v2@v2.253.0 |
| @aws-cdk/aws-codebuild | npm | >= 1.75.0, <= 1.204.0 | No patch yet | No command until a fix exists. |
| Amazon.CDK.AWS.CodeBuild | NuGet | >= 1.75.0, <= 1.204.0 versions 1.100.0, 1.101.0, 1.102.0, 1.103.0, 1.104.0, 1.105.0, 1.106.0, 1.106.1, 1.107.0, 1.108.0, 1.108.1, 1.109.0, 1.110.0, 1.110.1, 1.111.0, 1.112.0, 1.113.0, 1.114.0, 1.115.0, 1.116.0 and 129 more | No patch yet | No command until a fix exists. |
| software.amazon.awscdk:codebuild | Maven | >= 1.75.0, <= 1.204.0 versions 1.100.0, 1.101.0, 1.102.0, 1.103.0, 1.104.0, 1.105.0, 1.106.0, 1.106.1, 1.107.0, 1.108.0, 1.108.1, 1.109.0, 1.110.0, 1.110.1, 1.111.0, 1.112.0, 1.113.0, 1.114.0, 1.115.0, 1.116.0 and 129 more | No patch yet | No command until a fix exists. |
| github.com/aws/aws-cdk-go/awscdk | Go | >= 1.175.0-devpreview, <= 1.204.0-devpreview >= 1.175.0-devpreview | No patch yet | No command until a fix exists. |
| aws-cdk-lib | PyPI | < 2.253.0 versions 2.0.0, 2.0.0a1, 2.0.0a11, 2.0.0a12, 2.0.0a13, 2.0.0a4, 2.0.0a6, 2.0.0rc1, 2.0.0rc10, 2.0.0rc11, 2.0.0rc12, 2.0.0rc13, 2.0.0rc14, 2.0.0rc15, 2.0.0rc16, 2.0.0rc17, 2.0.0rc18, 2.0.0rc19, 2.0.0rc20, 2.0.0rc21 and 358 more | 2.253.0 | pip install --upgrade 'aws-cdk-lib>=2.253.0' |
| aws-cdk-aws-codebuild | PyPI | >= 1.75.0, <= 1.204.0 versions 1.100.0, 1.101.0, 1.102.0, 1.103.0, 1.104.0, 1.105.0, 1.106.0, 1.106.1, 1.107.0, 1.108.0, 1.108.1, 1.109.0, 1.110.0, 1.110.1, 1.111.0, 1.112.0, 1.113.0, 1.114.0, 1.115.0, 1.116.0 and 129 more | No patch yet | No command until a fix exists. |
The AWS Cloud Development Kit (AWS CDK) is an open-source software development framework for defining cloud infrastructure in code and provisioning it through AWS CloudFormation. We identified an issue in which explicitly setting encrypted: true on the S3LoggingOptions property of an AWS CodeBuild project construct produces the opposite of the intended behavior, disabling encryption on CodeBuild build logs stored in S3.
The S3LoggingOptions.encrypted property in the aws-codebuild module uses positive polarity (true = encryption ON), but is mapped directly to the CloudFormation S3LogsConfig.EncryptionDisabled field, which uses negative polarity (true = encryption OFF). Because the value is not negated before being passed to CloudFormation, any explicit assignment produces inverted behavior:
Setting encrypted: true (intending encryption ON) causes CloudFormation to receive EncryptionDisabled: true, disabling encryption.
Setting encrypted: false (intending encryption OFF) causes CloudFormation to receive EncryptionDisabled: false, enabling encryption.
Users who omit the property entirely are not affected, as undefined passes through to CloudFormation, which defaults to encryption enabled.
Users affected by this issue could have CodeBuild S3 build logs stored using SSE-S3 (Amazon S3-managed keys, AES-256) rather than the AWS managed keys that CodeBuild applies by default. Since January 5, 2023, Amazon S3 automatically encrypts all new object uploads with SSE-S3, so logs written after that date remain encrypted at rest. However, logs written prior to that date to buckets that did not have default encryption configured at the time are potentially not encrypted at rest.
Impacted versions: >= 1.75.0 and <= 2.252.0
This issue has been addressed in aws-cdk-lib version 2.253.0. Upgrade to the latest version and ensure any forked or derivative code is patched to incorporate the new fixes.
Users who are unable to immediately upgrade to version 2.253.0 should omit the encrypted property from their S3LoggingOptions configuration entirely. When the property is omitted, the value is not passed to CloudFormation, and CodeBuild applies its default behavior of encrypting build logs using AWS managed keys.
If you have any questions or comments about this advisory, contact AWS Security via our issue reporting page [1] or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.
[1] https://aws.amazon.com/security/vulnerability-reporting/
AWS thanks AISafe for collaborating on this issue through the coordinated disclosure process.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
No EPSS history yet. Either the CVE has no score or the scores have not been fetched.