CVE-2024-34158
7.5high
Stack exhaustion in Parse in go/build/constraint
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.05% (higher than 65% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GO-2024-3107BIT-GOLANG-2024-34158
Description
Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| go/build/constraint | before 1.22.7, from 1.23.0-0 before 1.23.1 | CVE List |
| go_build_constraint go_standard_library | before 1.22.7, from 1.23.0-0 before 1.23.1 | CVE List |
| stdlib (Go) | before 1.22.7, from 1.23.0-0 before 1.23.1 | Go Vulnerability Database |
| golang (Bitnami) | before 1.22.7, from 1.23.0-0 before 1.23.1 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.
NVD (es)
Llamar a Parse en una línea de compilación "// +build" con expresiones profundamente anidadas puede causar pánico debido al agotamiento de la pila.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-34158 changed 2024-10-04 | CVE Terms of Use |
| Go Vulnerability Database | GO-2024-3107 changed 2026-08-05 | CC-BY-4.0 |
| NVD | CVE-2024-34158 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2024-34158 changed 2025-05-20 | Apache-2.0 |