{"id":"CVE-2024-34158","published":"2024-09-06T20:42:42Z","modified":"2024-10-04T15:02:47Z","title":"Stack exhaustion in Parse in go/build/constraint","vendor":"Go standard library","product":"go/build/constraint","tier":"tail","description":{"text":"Calling Parse on a \"// +build\" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01046,"percentile":0.64982,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://go.dev/cl/611240","tags":[]},{"url":"https://go.dev/issue/69141","tags":[]},{"url":"https://groups.google.com/g/golang-dev/c/S9POB9NCTdk","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2024-3107","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20241004-0003/","tags":[]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":13.0},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"go/build/constraint","versions":["< 1.22.7",">= 1.23.0-0, < 1.23.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-09-09T13:59:30.881339Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.22.7",">=1.23.0-0, <1.23.1"],"patched":["1.22.7","1.23.1"],"from":["GO-2024-3107"],"provenance":"source"}],"summary":{"text":"The go/build/constraint package in the Go standard library contains a flaw in its Parse function, which handles \"// +build\" build tag lines. An attacker who can supply a build tag line containing deeply nested expressions can trigger a panic from stack exhaustion, with no authentication, user interaction, or special configuration required beyond the ability to provide that input to Parse.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:12Z"},"euvd":{"id":"EUVD-2024-34666","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-24791","published":"2024-07-02","fixed":"1.22.5","kev":false,"link":{"from":"CVE-2024-24791","to":"CVE-2024-34158","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.22.5","toFixed":"1.22.7","daysApart":66}]}},{"cve":"CVE-2024-34155","published":"2024-09-06","fixed":"1.23.1","kev":false},{"cve":"CVE-2024-34156","published":"2024-09-06","fixed":"1.23.1","kev":false},{"cve":"CVE-2024-34158","published":"2024-09-06","fixed":"1.23.1","kev":false},{"cve":"CVE-2024-45336","published":"2025-01-28","fixed":"1.24.0-rc.2","kev":false,"link":{"from":"CVE-2024-34158","to":"CVE-2024-45336","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.22.7","toFixed":"1.22.11","daysApart":144}]}},{"cve":"CVE-2024-45341","published":"2025-01-28","fixed":"1.24.0-rc.2","kev":false,"link":{"from":"CVE-2024-34158","to":"CVE-2024-45341","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.22.7","toFixed":"1.22.11","daysApart":144}]}},{"cve":"CVE-2025-22865","published":"2025-01-28","fixed":"1.24.0-rc.2","kev":false}],"package":"Go:stdlib"}}