You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kind/bugCategorizes issue or PR as related to a bug.
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Trivy crashes with a Go stack overflow while scanning a directory containing Terraform files:
This can be observed locally on MacOS and in a GitHub self-hosted runner after a (Terraform) directory scan.
Potentially an issue with this
trivy/pkg/iac/scanners/terraform/parser/sort.go
Lines 32 to 58 in 6fb20c8
Desired Behavior
No error, no crash
Actual Behavior
See above
Reproduction Steps
1. Run trivy with `trivy fs . --scanners vuln,misconfig --exit-code 1 --severity CRITICAL,HIGH --format table --debug` 2. Observe the stack overflow errorTarget
Git Repository
Scanner
Vulnerability
Output Format
Table
Mode
Standalone
Debug Output
Operating System
Linux and MacOS
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions