Skip to main content
← All vulnerabilities
CVE-2024-34158GO-2024-3107BIT-GOLANG-2024-34158

Stack exhaustion in Parse in go/build/constraint

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.22.7, 1.23.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • go/build/constraint

    fixed in 1.22.7; From 1.23.0-0 · fixed in 1.23.1

  • stdlibGo

    fixed in 1.22.7; From 1.23.0-0 · fixed in 1.23.1

References 4

go.dev

groups.google.com

pkg.go.dev