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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 65% of CVEs (2026-12-01)
- Published: 2024-09-06T19:15:23.000Z
- Modified: 2026-08-05T10:56:57.290Z
- Also known as: GO-2024-3107, BIT-GOLANG-2024-34158
- Related: CGA-wphq-vqjw-gwmr, RHSA-2024:6908, RHSA-2024:6913, RHSA-2024:8038, RHSA-2024:8039, RHSA-2024:8112, RHSA-2024:8232, RHSA-2024:8263, RHSA-2024:8428, RHSA-2024:8690, RHSA-2024:8694, RHSA-2024:8700, RHSA-2024:9454, RHSA-2024:9459, RHSA-2025:7118
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Go

## Description

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

(As written by CVE List.)

## Affected

- go/build/constraint: before 1.22.7; from 1.23.0-0 before 1.23.1
- go_build_constraint go_standard_library: before 1.22.7; from 1.23.0-0 before 1.23.1
- stdlib (Go): before 1.22.7; from 1.23.0-0 before 1.23.1
- golang (Bitnami): before 1.22.7; from 1.23.0-0 before 1.23.1

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/cl/611240> (fix, web)
- <https://go.dev/issue/69141> (report, web)
- <https://groups.google.com/g/golang-dev/c/S9POB9NCTdk> (web)
- <https://pkg.go.dev/vuln/GO-2024-3107> (web)
- <https://security.netapp.com/advisory/ntap-20241004-0003/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-34158> (web)

## Sources

- CVE List: [CVE-2024-34158](https://www.cve.org/CVERecord?id=CVE-2024-34158), CVE Terms of Use, modified 2024-10-04
- Go Vulnerability Database: [GO-2024-3107](https://pkg.go.dev/vuln/GO-2024-3107), CC-BY-4.0, modified 2026-08-05
- NVD: [CVE-2024-34158](https://nvd.nist.gov/vuln/detail/CVE-2024-34158), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2024-34158](https://osv.dev/vulnerability/BIT-GOLANG-2024-34158), Apache-2.0, modified 2025-05-20

---

Page: https://cve.day/CVE-2024-34158 · Whole record: https://cve.day/CVE-2024-34158.json · Rebuilt by cve.day 2026-11-25T22:58:45.148Z
