CVE-2024-34158
Go vulnerability analysis and mitigation

Overview

A vulnerability was identified in the Go programming language's build/constraint package, tracked as CVE-2024-34158. The vulnerability was discovered and disclosed on September 6, 2024. The issue affects Go versions prior to 1.22.7 and versions from 1.23.0-0 before 1.23.1. When calling Parse on a '// +build' build tag line containing deeply nested expressions, it can trigger a panic due to stack exhaustion (Go Project, NVD).

Technical details

The vulnerability is classified with a CVSS v3.1 Base Score of 7.5 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. The issue specifically occurs in the go/build/constraint package of the Golang standard library when parsing build tag lines with deeply nested expressions. The vulnerability is categorized under CWE-674 (Uncontrolled Recursion) (CISA-ADP).

Impact

The successful exploitation of this vulnerability can lead to a Denial of Service (DoS) condition through stack exhaustion when parsing build tag lines. This can affect the availability of applications using the affected Go versions (Go Vuln).

Mitigation and workarounds

The vulnerability has been fixed in Go versions 1.22.7 and 1.23.1. Users are advised to upgrade to these patched versions to mitigate the issue. The fix was released on September 5, 2024, as part of minor point releases (Go Project).

Additional resources


SourceThis report was generated using AI

Related Go vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2023-54365HIGH8.7
  • Go logoGo
  • kubeflow-katib
NoYesJun 23, 2026
CVE-2026-39822HIGH7.8
  • Go logoGo
  • cluster-api-provider-vsphere-fips-1.14
NoYesJul 08, 2026
CVE-2026-42504HIGH7.5
  • Go logoGo
  • flux-cli-2.8
NoYesJun 02, 2026
CVE-2026-42505MEDIUM5.3
  • Go logoGo
  • eks-distro-1.34
NoYesJul 08, 2026
CVE-2026-42507MEDIUM5.3
  • Go logoGo
  • apm-server-8.19
NoYesJun 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management