Aws sam cli: Sensitive Information Exposure Through Insecure Logging For Secrets Like Metadata.DockerBuildArgs
AWS SAM CLI versions from 1.70.0 up to but not including 1.122.0 expose sensitive information through insecure logging. Specifically, sensitive data provided in the DockerBuildArgs parameter of the SAM template is output in clear text to STDERR during the sam build command. This can lead to unintended disclosure of secrets. A patch is available in version 1.122.0 and later.
AI Analysis
Technical Summary
The AWS Serverless Application Model (SAM) CLI allows building container images with DockerBuildArgs parameters that may contain sensitive data. In affected versions (>=1.70.0 <1.122.0), this sensitive data is logged in clear text to STDERR during the sam build process, exposing secrets. This vulnerability is addressed by a patch included in aws-sam-cli version 1.122.0 and above.
Potential Impact
Sensitive information such as secrets specified in DockerBuildArgs can be exposed in clear text logs during the build process, potentially leading to unauthorized disclosure of confidential data. The impact is limited to information exposure; integrity and availability are not affected.
Mitigation Recommendations
Upgrade AWS SAM CLI to version 1.122.0 or later, where this issue is patched. Review existing logs from sam build commands if DockerBuildArgs was used, and rotate any secrets that may have been exposed. No other mitigation is indicated by the vendor advisory.
Aws sam cli: Sensitive Information Exposure Through Insecure Logging For Secrets Like Metadata.DockerBuildArgs
Description
AWS SAM CLI versions from 1.70.0 up to but not including 1.122.0 expose sensitive information through insecure logging. Specifically, sensitive data provided in the DockerBuildArgs parameter of the SAM template is output in clear text to STDERR during the sam build command. This can lead to unintended disclosure of secrets. A patch is available in version 1.122.0 and later.
CVSS v3.1
Score 4.8medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The AWS Serverless Application Model (SAM) CLI allows building container images with DockerBuildArgs parameters that may contain sensitive data. In affected versions (>=1.70.0 <1.122.0), this sensitive data is logged in clear text to STDERR during the sam build process, exposing secrets. This vulnerability is addressed by a patch included in aws-sam-cli version 1.122.0 and above.
Potential Impact
Sensitive information such as secrets specified in DockerBuildArgs can be exposed in clear text logs during the build process, potentially leading to unauthorized disclosure of confidential data. The impact is limited to information exposure; integrity and availability are not affected.
Mitigation Recommendations
Upgrade AWS SAM CLI to version 1.122.0 or later, where this issue is patched. Review existing logs from sam build commands if DockerBuildArgs was used, and rotate any secrets that may have been exposed. No other mitigation is indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-aws-sam-cli-GHSA-rjc6-vm4h-85cg
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6aac8e1b55bf5e2cf5490456
Added to database: 09/18/2026, 01:04:27 UTC
Last enriched: 09/18/2026, 01:36:40 UTC
Last updated: 09/18/2026, 02:14:07 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.