{"answers":{"affected":"22 open source packages ship an affected version, including github.com/aws/aws-cdk-go/awscdk, github.com/aws/aws-cdk-go/awscdk/v2 and software.amazon.awscdk:aws-cdk-lib.","exploited":"There is no known exploitation of GHSA-464c-974j-9xm6 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"GHSA-464c-974j-9xm6 is a vulnerability in github.com/aws/aws-cdk-go/awscdk, published on 24 Jul 2026."},"fix_prompt":"Check this codebase for GHSA-464c-974j-9xm6 and fix it if it is affected.\n\nWhat it is: GHSA-464c-974j-9xm6 is a vulnerability in github.com/aws/aws-cdk-go/awscdk, published on 24 Jul 2026. \nExploitation: There is no known exploitation of GHSA-464c-974j-9xm6 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/aws/aws-cdk-go/awscdk (Go): affected from 1.175.0-devpreview; no fix listed\n- github.com/aws/aws-cdk-go/awscdk (Go): affected from 1.175.0-devpreview up to 1.204.0-devpreview; no fix listed\n- github.com/aws/aws-cdk-go/awscdk (Go): affected from 1.175.0-devpreview up to 1.204.0-devpreview; no fix listed\n- github.com/aws/aws-cdk-go/awscdk/v2 (Go): affected all versions; fixed in 2.253.0\n- github.com/aws/aws-cdk-go/awscdk/v2 (Go): affected all versions; fixed in 2.253.0\n- github.com/aws/aws-cdk-go/awscdk/v2 (Go): affected all versions; fixed in 2.253.0\n- software.amazon.awscdk:aws-cdk-lib (Maven): affected all versions; fixed in 2.253.0\n- software.amazon.awscdk:aws-cdk-lib (Maven): affected all versions; fixed in 2.253.0\n- software.amazon.awscdk:codebuild (Maven): affected from 1.75.0 up to 1.204.0; no fix listed\n- software.amazon.awscdk:codebuild (Maven): affected from 1.75.0 up to 1.204.0; no fix listed\n- Amazon.CDK.AWS.CodeBuild (NuGet): affected from 1.75.0 up to 1.204.0; no fix listed\n- Amazon.CDK.AWS.CodeBuild (NuGet): affected from 1.75.0 up to 1.204.0; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-464c-974j-9xm6/ (Markdown: https://insights.sbomify.com/GHSA-464c-974j-9xm6/index.md)","id":"GHSA-464c-974j-9xm6","markdown":"https://insights.sbomify.com/GHSA-464c-974j-9xm6/index.md","name":"GHSA-464c-974j-9xm6","record":{"aliases":["GO-2026-6093"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"unknown","non_default_config":true,"product_category":"AWS CDK CodeBuild","requires_auth":"none","summary":"Developers using AWS CDK CodeBuild may inadvertently disable S3 log encryption due to a boolean inversion bug, exposing build logs to unauthorized access.","user_interaction":"not_required","vuln_class":"misconfiguration"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"## Summary\n\nThe 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.\n\n## Impact\n\nThe `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:\n\n* Setting `encrypted: true` (intending encryption ON) causes CloudFormation to receive `EncryptionDisabled: true`, disabling encryption.\n\n* Setting `encrypted: false` (intending encryption OFF) causes CloudFormation to receive `EncryptionDisabled: false`, enabling encryption.\n\nUsers who omit the property entirely are not affected, as `undefined` passes through to CloudFormation, which defaults to encryption enabled.\n\nUsers 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.\n\nImpacted versions: \u003e= 1.75.0 and \u003c= 2.252.0\n\n## Patches\n\nThis 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.\n\n## Workarounds\n\nUsers 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.\n\n## References\n\nIf 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](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.\n\n\\[1\\] \u003chttps://aws.amazon.com/security/vulnerability-reporting/\u003e\n\n## Acknowledgement\n\nAWS thanks AISafe for collaborating on this issue through the coordinated disclosure process.","ecosystems":["Go","Maven","NuGet","PyPI","npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"AWS CDK CodeBuild S3 Log Encryption Boolean Inversion","id":"GHSA-464c-974j-9xm6","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"misconfiguration","year":"2026"},"n_packages":22,"n_references":null,"packages":[{"ecosystem":"Go","fixed":[],"introduced":["1.175.0-devpreview"],"last_affected":[],"package":"github.com/aws/aws-cdk-go/awscdk","purl":"pkg:golang/github.com/aws/aws-cdk-go/awscdk","source":"GO-2026-6093"},{"ecosystem":"Go","fixed":[],"introduced":["1.175.0-devpreview"],"last_affected":["1.204.0-devpreview"],"package":"github.com/aws/aws-cdk-go/awscdk","purl":null,"source":"GHSA-464c-974j-9xm6"},{"ecosystem":"Go","fixed":[],"introduced":["1.175.0-devpreview"],"last_affected":["1.204.0-devpreview"],"package":"github.com/aws/aws-cdk-go/awscdk","purl":"pkg:golang/github.com/aws/aws-cdk-go/awscdk","source":"GHSA-464c-974j-9xm6"},{"ecosystem":"Go","fixed":["2.253.0"],"introduced":["0"],"last_affected":[],"package":"github.com/aws/aws-cdk-go/awscdk/v2","purl":null,"source":"GHSA-464c-974j-9xm6"},{"ecosystem":"Go","fixed":["2.253.0"],"introduced":["0"],"last_affected":[],"package":"github.com/aws/aws-cdk-go/awscdk/v2","purl":"pkg:golang/github.com/aws/aws-cdk-go/awscdk/v2","source":"GHSA-464c-974j-9xm6"},{"ecosystem":"Go","fixed":["2.253.0"],"introduced":["0"],"last_affected":[],"package":"github.com/aws/aws-cdk-go/awscdk/v2","purl":"pkg:golang/github.com/aws/aws-cdk-go/awscdk/v2","source":"GO-2026-6093"},{"ecosystem":"Maven","fixed":["2.253.0"],"introduced":["0"],"last_affected":[],"package":"software.amazon.awscdk:aws-cdk-lib","purl":null,"source":"GHSA-464c-974j-9xm6"},{"ecosystem":"Maven","fixed":["2.253.0"],"introduced":["0"],"last_affected":[],"package":"software.amazon.awscdk:aws-cdk-lib","purl":"pkg:maven/software.amazon.awscdk/aws-cdk-lib","source":"GHSA-464c-974j-9xm6"},{"ecosystem":"Maven","fixed":[],"introduced":["1.75.0"],"last_affected":["1.204.0"],"package":"software.amazon.awscdk:codebuild","purl":null,"source":"GHSA-464c-974j-9xm6"},{"ecosystem":"Maven","fixed":[],"introduced":["1.75.0"],"last_affected":["1.204.0"],"package":"software.amazon.awscdk:codebuild","purl":"pkg:maven/software.amazon.awscdk/codebuild","source":"GHSA-464c-974j-9xm6"},{"ecosystem":"NuGet","fixed":[],"introduced":["1.75.0"],"last_affected":["1.204.0"],"package":"Amazon.CDK.AWS.CodeBuild","purl":null,"source":"GHSA-464c-974j-9xm6"},{"ecosystem":"NuGet","fixed":[],"introduced":["1.75.0"],"last_affected":["1.204.0"],"package":"Amazon.CDK.AWS.CodeBuild","purl":"pkg:nuget/Amazon.CDK.AWS.CodeBuild","source":"GHSA-464c-974j-9xm6"},{"ecosystem":"NuGet","fixed":["2.253.0"],"introduced":["0"],"last_affected":[],"package":"Amazon.CDK.Lib","purl":null,"source":"GHSA-464c-974j-9xm6"},{"ecosystem":"NuGet","fixed":["2.253.0"],"introduced":["0"],"last_affected":[],"package":"Amazon.CDK.Lib","purl":"pkg:nuget/Amazon.CDK.Lib","source":"GHSA-464c-974j-9xm6"},{"ecosystem":"PyPI","fixed":[],"introduced":["1.75.0"],"last_affected":["1.204.0"],"package":"aws-cdk-aws-codebuild","purl":"pkg:pypi/aws-cdk-aws-codebuild","source":"GHSA-464c-974j-9xm6"},{"ecosystem":"PyPI","fixed":["2.253.0"],"introduced":["0"],"last_affected":[],"package":"aws-cdk-lib","purl":null,"source":"GHSA-464c-974j-9xm6"},{"ecosystem":"PyPI","fixed":["2.253.0"],"introduced":["0"],"last_affected":[],"package":"aws-cdk-lib","purl":"pkg:pypi/aws-cdk-lib","source":"GHSA-464c-974j-9xm6"},{"ecosystem":"PyPI","fixed":[],"introduced":["1.75.0"],"last_affected":["1.204.0"],"package":"aws-cdk.aws-codebuild","purl":null,"source":"GHSA-464c-974j-9xm6"},{"ecosystem":"npm","fixed":[],"introduced":["1.75.0"],"last_affected":["1.204.0"],"package":"@aws-cdk/aws-codebuild","purl":null,"source":"GHSA-464c-974j-9xm6"},{"ecosystem":"npm","fixed":[],"introduced":["1.75.0"],"last_affected":["1.204.0"],"package":"@aws-cdk/aws-codebuild","purl":"pkg:npm/%40aws-cdk/aws-codebuild","source":"GHSA-464c-974j-9xm6"},{"ecosystem":"npm","fixed":["2.253.0"],"introduced":["0"],"last_affected":[],"package":"aws-cdk-lib","purl":null,"source":"GHSA-464c-974j-9xm6"},{"ecosystem":"npm","fixed":["2.253.0"],"introduced":["0"],"last_affected":[],"package":"aws-cdk-lib","purl":"pkg:npm/aws-cdk-lib","source":"GHSA-464c-974j-9xm6"}],"products":null,"published":"2026-07-24","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Developers using AWS CDK CodeBuild may inadvertently disable S3 log encryption due to a boolean inversion bug, exposing build logs to unauthorized access.","url":"https://insights.sbomify.com/GHSA-464c-974j-9xm6/"}