runatlantis / atlantis

Terraform Pull Request Automation
https://www.runatlantis.io
Other
7.56k stars 1.02k forks source link

GO vulns present in multiple locations in atlantis image #3699

Open richgerrard opened 11 months ago

richgerrard commented 11 months ago

Community Note


Overview of the Issue

Vulnerability scanners looking at the latest atlantis image 0.25.0 reveal 5 versions of go installed at different paths. image Only /usr/local/bin/atlantis and /usr/local/bin/terraform are at high enough versions of go to pass vulnerability scans. The go vulns present in the other three paths require an upgrade of those components, or we cannot deploy this tool. image

Reproduction Steps

Download the atlantis:latest (atlants:0.25.0) image locally and scan it with your favourite vulnerability scanner. All the go vulns will light up like a stop light.

Logs

N/A

Environment details

Atlantis server-side config file: n/a

Repo atlantis.yaml file: n/a

Any other information you can provide about the environment/deployment (efs/nfs, aws/gcp, k8s/fargate, etc)

Additional Context

https://nvd.nist.gov/vuln/detail/CVE-2023-29400 https://nvd.nist.gov/vuln/detail/CVE-2023-29402 https://nvd.nist.gov/vuln/detail/CVE-2023-29403 https://nvd.nist.gov/vuln/detail/CVE-2023-29404 https://nvd.nist.gov/vuln/detail/CVE-2023-29405 https://nvd.nist.gov/vuln/detail/CVE-2023-39533 https://nvd.nist.gov/vuln/detail/CVE-2023-24534 https://nvd.nist.gov/vuln/detail/CVE-2023-24536 https://nvd.nist.gov/vuln/detail/CVE-2023-24537 https://nvd.nist.gov/vuln/detail/CVE-2023-24538 https://nvd.nist.gov/vuln/detail/CVE-2023-24539 https://nvd.nist.gov/vuln/detail/CVE-2023-24540 etc...

dbalucas commented 5 months ago

I'd like to enriche this issue with some already fixed critical dependencies which are still missing in the Image of Atlantis:

image The moby/buildkit maintainers took care and released a fix for their current CVE's in version 0.12.5:

for reproduction the list of fixed vulnerabilities I recommend: docker scout cves runatlantis/atlantis:latest --only-severity critical --only-fixed