Medium

Sensitive Information Exposure Through Insecure Logging For Secrets Like Metadata.DockerBuildArgs

  • Disclosed: 11.09.2024
  • Updated: 11.10.2026 12:18

Summary

The AWS Serverless Application Model (SAM) CLI is an open source tool that allows customers to build, deploy and test their serverless applications built on AWS. AWS SAM CLI can build container (Docker) images and customers can specify arguments in the SAM template that are passed to the Docker engine during build [1].

Impact

If customers specify sensitive data in the DockerBuildArgs parameter of their template, the sensitive data will be shown in clear text in the AWS SAM CLI output via STDERR when running the sam build command.

Patches

A patch is included in aws-sam-cli>=1.122.0.

We strongly recommend customers install AWS SAM CLI v1.122.0 or above. Please review logs produced by your SAM CLI runs if you have used the DockerBuildArgs parameter and consider rotating the secrets if you believe they were exposed.

References

If you have any questions or comments about this issue, we ask that you contact AWS/Amazon Security via our vulnerability reporting page [2] or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.

[1] https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-build.html#build-container-image

[2] https://aws.amazon.com/security/vulnerability-reporting

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) aws-sam-cli < 1.122.0 1.122.0

References

CVSS score 4.8/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-532
Platform
Python (PyPI)
Package
aws-sam-cli
Disclosed
11.09.2024
Updated
11.10.2026 12:18

Sources and licenses

OSV / GitHub Advisory Database - GHSA-rjc6-vm4h-85cg - CC BY 4.0

Vulnerability history: aws-sam-cli

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
09.2024 03.2025
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Medium 3

Disclosures per year

  1. 2024: 1
  2. 2025: 2
  3. 2026: 0
  1. Medium · 6.5 CVE-2025-3048 < 1.134.0 1.134.0
  2. Medium · 6.5 CVE-2025-3047 < 1.133.0 1.133.0
  3. Sensitive Information Exposure Through Insecure Logging For Secrets Like Metadata.DockerBuildArgs this entry
    Medium · 4.8 ghsa-rjc6-vm4h-85cg < 1.122.0 1.122.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.