Sensitive Information Exposure Through Insecure Logging For Secrets Like Metadata.DockerBuildArgs
HighPublished Sep 11, 2024
### 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](mailto:aws-security@amazon.com). Please do not create a public GitHub issue. [1] https://docs.aws.amazon.com/serverless-application-model/lates...
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| AWS SAM CLI Product | < 1.122.0 | 1.122.0 |
Details and references
### 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](mailto: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
- Severity from
- GitHub (reviewed advisory)
More AWS advisories
All AWS| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Jan 172025 | IAM OIDC custom resource allows connection to unauthorized OIDC provider | Low | 2.177.0 |
| Nov 142024 | Undefined behavior at process exit | Low | v1.5.9+1 more |
| Aug 272024 | AWS CDK RestApi Construct: Authenticated users may have unintended access to protected APIs | Medium6.4 | 2.148.1 |
| Aug 92024 | mTLS API ordering may skip client authentication | Medium | v1.5.0+1 more |
| Jul 192024 | Potential weak encryption of session ticket | High | v1.4.18 |
| Jun 52024 | Potentially observable differences in RSA premaster secret handling | Low | v1.4.16+1 more |