GHSA-464c-974j-9xm6Low· 3.3▾ SunlitAWS CDK CodeBuild S3 Log Encryption Boolean Inversion
▾ Sunlit zone — Low / medium · no exploitation signal
impact 18.2 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
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 [email protected]. 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.
aws-cdk-lib < 2.253.0Amazon.CDK.Lib < 2.253.0software.amazon.awscdk:aws-cdk-lib < 2.253.0github.com/aws/aws-cdk-go/awscdk/v2 < 2.253.0@aws-cdk/aws-codebuild >= 1.75.0, <= 1.204.0Amazon.CDK.AWS.CodeBuild >= 1.75.0, <= 1.204.0software.amazon.awscdk:codebuild >= 1.75.0, <= 1.204.0github.com/aws/aws-cdk-go/awscdk >= 1.175.0-devpreview, <= 1.204.0-devpreviewaws-cdk-lib < 2.253.0aws-cdk-aws-codebuild >= 1.75.0, <= 1.204.0Upgrade to a patched release:
aws-cdk-lib 2.253.0Amazon.CDK.Lib 2.253.0software.amazon.awscdk:aws-cdk-lib 2.253.0github.com/aws/aws-cdk-go/awscdk/v2 2.253.0aws-cdk-lib 2.253.0Connected by shared product, vendor, weakness, or advisory.
CVE-2026-13760High· 7.3aws-cdk-lib: OS Command Injection in NodejsFunction Docker Bundling
CVE-2026-11417High· 7.3aws-cdk-lib: OS Command Injection in NodejsFunction Bundling
CVE-2026-33487High· 7.5goxmlsig provides XML Digital Signatures implemented in Go
CVE-2026-18459High· 8.7Incorrect Calculation vulnerability in RTI Connext Professional (Core Libraries) allows Abuse Existing Functionality
CVE-2026-92757Medium· 5.5Applications built on MongoDB Entity Framework Core Provider which place a database name in the connection string may inadvertently disable field level encryption.
CVE-2026-92756Medium· 5.5Applications built on MongoDB Entity Framework Core Provider which combine independent encryption settings and this provider's encryption settings may silently lose TLS and schema-map settings leading to protected fields being stored une…