Skip to main content

Aws sam cli: Sensitive Information Exposure Through Insecure Logging For Secrets Like Metadata.DockerBuildArgs

0
Medium
Published: 08/13/2026 (08/13/2026, 16:37:01 UTC)
Source: GCVE Database
Product: aws-sam-cli

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

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N

Affected software

Homebrewmore threats →ghsa
aws-sam-cli
pkg:brew/aws-sam-cli
Affected versions
>=1.70.0 <1.122.0

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

AILast updated: 09/18/2026, 01:36:40 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses