Every CVESearch/Get API key

GHSA-464c-974j-9xm6

AWS CDK CodeBuild S3 Log Encryption Boolean Inversion

3.3 LowFix available

Summary

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.

Impact

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

Patches

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.

Workarounds

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.

References

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/

Acknowledgement

AWS thanks AISafe for collaborating on this issue through the coordinated disclosure process.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
Low
Integrity
None
Availability
None

What each source reports

GitHub Advisories Score used3.3

AWS CDK CodeBuild S3 Log Encryption Boolean Inversion

Summary

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.

Impact

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

Patches

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.

Workarounds

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.

References

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/

Acknowledgement

AWS thanks AISafe for collaborating on this issue through the coordinated disclosure process.

Record
GHSA-464c-974j-9xm6
CVSS 3.1
3.3 LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Weakness
CWE-311, CWE-682
Updated
2026-11-02
OSV3.3

AWS CDK CodeBuild S3 Log Encryption Boolean Inversion

Summary

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.

Impact

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

Patches

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.

Workarounds

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.

References

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/

Acknowledgement

AWS thanks AISafe for collaborating on this issue through the coordinated disclosure process.

Record
GHSA-464c-974j-9xm6
CVSS 3.1
3.3 LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Weakness
CWE-311, CWE-682
Updated
2026-11-02
OSVGO-2026-6093No score

AWS CDK CodeBuild S3 Log Encryption Boolean Inversion in github.com/aws/aws-cdk-go/awscdk

AWS CDK CodeBuild S3 Log Encryption Boolean Inversion in github.com/aws/aws-cdk-go/awscdk

Record
GO-2026-6093
Updated
2026-11-02

Affected packages

Affected packages
PackageAffectedFixed
aws-cdk-lib
npm
before 2.253.0
2.253.0
Amazon.CDK.Lib
NuGet
before 2.253.0
2.253.0
software.amazon.awscdk:aws-cdk-lib
Maven
before 2.253.0
2.253.0
github.com/aws/aws-cdk-go/awscdk/v2
Go
before 2.253.0
2.253.0
@aws-cdk/aws-codebuild
npm
1.75.0 to 1.204.0None known
Amazon.CDK.AWS.CodeBuild
NuGet
1.75.0 to 1.204.0None known
software.amazon.awscdk:codebuild
Maven
1.75.0 to 1.204.0None known
github.com/aws/aws-cdk-go/awscdk
Go
1.175.0-devpreview to 1.204.0-devpreviewNone known
aws-cdk-lib
PyPI
before 2.253.0
2.253.0
aws-cdk-aws-codebuild
PyPI
1.75.0 to 1.204.0None known
Show 7 moreShow less
Affected packages
PackageAffectedFixed
Amazon.CDK.Lib
NuGet
before 2.253.0, plus listed versions
2.0.02.1.02.10.02.100.02.101.0
Show 45 moreShow less
2.101.12.102.02.102.12.103.02.103.12.104.02.105.02.106.02.106.12.107.02.108.02.108.12.109.02.11.02.110.02.110.12.111.02.112.02.113.02.114.02.114.12.115.02.116.02.116.12.117.02.118.02.119.02.12.02.120.02.121.02.121.12.122.02.123.02.124.02.125.02.126.02.127.02.128.02.129.02.13.02.130.02.131.02.132.02.132.12.133.0
2.253.0
software.amazon.awscdk:aws-cdk-lib
Maven
before 2.253.0, plus listed versions
2.0.02.0.0-alpha.102.0.0-alpha.112.0.0-alpha.122.0.0-alpha.13
Show 45 moreShow less
2.0.0-alpha.142.0.0-rc.12.0.0-rc.102.0.0-rc.112.0.0-rc.122.0.0-rc.132.0.0-rc.142.0.0-rc.152.0.0-rc.162.0.0-rc.172.0.0-rc.182.0.0-rc.192.0.0-rc.202.0.0-rc.212.0.0-rc.222.0.0-rc.232.0.0-rc.242.0.0-rc.252.0.0-rc.262.0.0-rc.272.0.0-rc.282.0.0-rc.292.0.0-rc.32.0.0-rc.302.0.0-rc.312.0.0-rc.322.0.0-rc.332.0.0-rc.42.0.0-rc.52.0.0-rc.62.0.0-rc.72.0.0-rc.82.0.0-rc.92.1.02.10.02.100.02.101.02.101.12.102.02.102.12.103.02.103.12.104.02.105.02.106.0
2.253.0
Amazon.CDK.AWS.CodeBuild
NuGet
1.75.0 to 1.204.0, plus listed versions
1.100.01.101.01.102.01.103.01.104.0
Show 45 moreShow less
1.105.01.106.01.106.11.107.01.108.01.108.11.109.01.110.01.110.11.111.01.112.01.113.01.114.01.115.01.116.01.117.01.118.01.119.01.120.01.121.01.122.01.123.01.124.01.125.01.126.01.127.01.128.01.129.01.130.01.131.01.132.01.133.01.134.01.135.01.136.01.137.01.138.01.138.11.138.21.139.01.140.01.141.01.142.01.143.01.144.0
None known
software.amazon.awscdk:codebuild
Maven
1.75.0 to 1.204.0, plus listed versions
1.100.01.101.01.102.01.103.01.104.0
Show 45 moreShow less
1.105.01.106.01.106.11.107.01.108.01.108.11.109.01.110.01.110.11.111.01.112.01.113.01.114.01.115.01.116.01.117.01.118.01.119.01.120.01.121.01.122.01.123.01.124.01.125.01.126.01.127.01.128.01.129.01.130.01.131.01.132.01.133.01.134.01.135.01.136.01.137.01.138.01.138.11.138.21.139.01.140.01.141.01.142.01.143.01.144.0
None known
aws-cdk-lib
PyPI
before 2.253.0, plus listed versions
2.0.02.0.0a12.0.0a112.0.0a122.0.0a13
Show 45 moreShow less
2.0.0a42.0.0a62.0.0rc12.0.0rc102.0.0rc112.0.0rc122.0.0rc132.0.0rc142.0.0rc152.0.0rc162.0.0rc172.0.0rc182.0.0rc192.0.0rc202.0.0rc212.0.0rc222.0.0rc232.0.0rc242.0.0rc252.0.0rc262.0.0rc272.0.0rc282.0.0rc292.0.0rc32.0.0rc302.0.0rc312.0.0rc322.0.0rc332.0.0rc42.0.0rc52.0.0rc62.0.0rc72.0.0rc82.0.0rc92.1.02.10.02.100.02.101.02.101.12.102.02.102.12.103.02.103.12.104.02.105.0
2.253.0
aws-cdk-aws-codebuild
PyPI
1.75.0 to 1.204.0, plus listed versions
1.100.01.101.01.102.01.103.01.104.0
Show 45 moreShow less
1.105.01.106.01.106.11.107.01.108.01.108.11.109.01.110.01.110.11.111.01.112.01.113.01.114.01.115.01.116.01.117.01.118.01.119.01.120.01.121.01.122.01.123.01.124.01.125.01.126.01.127.01.128.01.129.01.130.01.131.01.132.01.133.01.134.01.135.01.136.01.137.01.138.01.138.11.138.21.139.01.140.01.141.01.142.01.143.01.144.0
None known
github.com/aws/aws-cdk-go/awscdk
Go
1.175.0-devpreview and laterNone known

History

History
RecordedChangedSources
first indexedGitHub Advisories, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

GHSA-464c-974j-9xm6 is a low vulnerability (CVSS 3.3) in aws-cdk-lib, published July 24, 2026. No source lists public exploit code. Fixed in aws-cdk-lib 2.253.0.

References

This page doesn't list everything

Left out here: 1,235 versions. The JSON record has them.

MoveEnter Open