What’s Vulnerable › Vulnerabilities

CVE-2024-34158: Stack exhaustion in Parse in go/build/constraint

Description

Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.

Affected products

How to fix

Upgrade to a fixed version: Go Build Constraint Go Standard Library 1.22.7, 1.23.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-34158 or the next vulnerability affects your stack