CVE-2024-34158
HIGH 7.5CVSS 3.1Stack exhaustion in Parse in go/build/constraint
Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.
- Published
- 6 Sep 2024
- Last modified
- 5 Aug 2026
- Assigned by
- security@golang.org
- NVD status
- Deferred
- Weakness
- CWE-674
- Also known as
- BIT-golang-2024-34158GO-2024-3107
- Sources
- NVDJSONOSV GO-2024-3107JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | stdlib | < 1.22.7; >= 1.23.0-0, < 1.23.1 | 1.22.7, 1.23.1 |
References
- https://go.dev/cl/611240 · FIX
- https://go.dev/issue/69141 · REPORT
- https://groups.google.com/g/golang-dev/c/S9POB9NCTdk · WEB
- https://pkg.go.dev/vuln/GO-2024-3107
- https://security.netapp.com/advisory/ntap-20241004-0003/
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 6 Sep 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Sep 2024)