CVE-2024-34158: Golang 1.10 · Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a
Affects golang-1.10Source GCVE Database
Not known to be exploited · CVSS 7.5 High · fixed in 1.18.1-1ubuntu1~16.04.6+esm1 : patch golang-1.10 soon.
Data as of 24 Nov 2026, 21:14 UTC
- EPSS
- 1.0% chance of exploitation in 30 days – higher than 64% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.18.1-1ubuntu1~16.04.6+esm1, 1.18.1-1ubuntu1~18.04.4+esm1, 1.18.1-1ubuntu1~20.04.3 +5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 6 Sep 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSgolang-1.21pkg:deb/ubuntu/golang-1.21?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSgolang-1.22pkg:deb/ubuntu/golang-1.22?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSgolang-1.17pkg:deb/ubuntu/golang-1.17?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSgolang-1.18pkg:deb/ubuntu/golang-1.18?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSgolang-1.20pkg:deb/ubuntu/golang-1.20?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSgolang-1.21pkg:deb/ubuntu/golang-1.21?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.
References
- ubuntu.com/security/CVE-2024-34158 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-34158 (opens in a new tab)
- groups.google.com/g/golang-announce/c/K-cEzDeCtpc (opens in a new tab)
- github.com/golang/go/commit/032ac075c20c01c6c35a672d1542d3e98eab84ea (opens in a new tab)
- github.com/golang/go/commit/d4c53812e6ce2ac368173d7fcd31d0ecfcffb002 (opens in a new tab)
- go.dev/cl/611240 (opens in a new tab)
- groups.google.com/g/golang-dev/c/S9POB9NCTdk (opens in a new tab)
- pkg.go.dev/vuln/GO-2024-3107 (opens in a new tab)
- ubuntu.com/security/notices/USN-7081-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7109-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7111-1 (opens in a new tab)