Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVEs through outdated golang version dependency #35690

Closed
synergiator opened this issue Sep 9, 2024 · 2 comments
Closed

CVEs through outdated golang version dependency #35690

synergiator opened this issue Sep 9, 2024 · 2 comments
Labels

Comments

@synergiator
Copy link

Terraform Version

Terraform v1.9.5
on linux_amd64

Terraform Configuration Files

not applicable

Debug Output

just static analysis

Expected Behavior

No CVE recognized through up to date release availability. Currently, Terraform links to the stdlib of Golang 1.22.5, whereas latest Golang release is 1.22.7/1.23.1

Actual Behavior

CVE found by dependency

Trivy output:

usr/local/bin/terraform (gobinary)

Total: 3 (UNKNOWN: 0, LOW: 0, MEDIUM: 2, HIGH: 1, CRITICAL: 0)

┌─────────┬────────────────┬──────────┬────────┬───────────────────┬────────────────┬─────────────────────────────────────────────────────────────┐
│ Library │ Vulnerability │ Severity │ Status │ Installed Version │ Fixed Version │ Title │
├─────────┼────────────────┼──────────┼────────┼───────────────────┼────────────────┼─────────────────────────────────────────────────────────────┤
│ stdlib │ CVE-2024-34156 │ HIGH │ fixed │ 1.22.5 │ 1.22.7, 1.23.1 │ encoding/gob: golang: Calling Decoder.Decode on a message │
│ │ │ │ │ │ │ which contains deeply nested structures... │
│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2024-34156
│ ├────────────────┼──────────┤ │ │ ├─────────────────────────────────────────────────────────────┤
│ │ CVE-2024-34155 │ MEDIUM │ │ │ │ go/parser: golang: Calling any of the Parse functions │
│ │ │ │ │ │ │ containing deeply nested literals... │
│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2024-34155
│ ├────────────────┤ │ │ │ ├─────────────────────────────────────────────────────────────┤
│ │ CVE-2024-34158 │ │ │ │ │ go/build/constraint: golang: Calling Parse on a "// +build" │
│ │ │ │ │ │ │ build tag line with... │
│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2024-34158
└─────────┴────────────────┴──────────┴────────┴───────────────────┴────────────────┴─────────────────────────────────────────────────────────────┘

Steps to Reproduce

see comparable scripts in hashicorp/packer#13159

Additional Context

No response

References

No response

@synergiator synergiator added bug new new issue not yet triaged labels Sep 9, 2024
@synergiator synergiator changed the title Transitive CVEs through outdated golang version CVEs through outdated golang version dependency Sep 9, 2024
@jbardin
Copy link
Member

jbardin commented Sep 9, 2024

Hi @synergiator,

The referenced CVEs don't directly affect the Terraform CLI so have not warranted a new release, however the runtime will be updated in an upcoming release. If you have any more questions related to the security of a product, please reach out to the security team directly https://www.hashicorp.com/trust/security.

Thanks!

@jbardin jbardin closed this as completed Sep 9, 2024
@jbardin jbardin added question and removed bug new new issue not yet triaged labels Sep 9, 2024
Copy link
Contributor

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants