Aws sam cli: Sensitive Information Exposure Through Insecure Logging For Secrets Like Metadata.DockerBuildArgs
Affects aws-sam-cliSource GCVE Database
CVSS 4.8 Medium : upgrade to 1.122.0 when convenient.
Data as of 26 Oct 2026, 18:58 UTC
- Patch
- Available – fixed in 1.122.0
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:NWhat to do
Upgrade aws-sam-cli to 1.122.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewaws-sam-clipkg:brew/aws-sam-cliOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
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.
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.