Vulnerabilities

CVE-2024-34158

High 7.5 CVSS 3.1

Description

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

Description as published by the source, in English.

Key facts

Published
2024-09-06
Last modified
2026-06-17
Assigned by
security@golang.org
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scored by
134c704f-9b21-4f2e-91b3-4a467353bcc0
Probability of exploitation
1.0 % higher than 61 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Go standard library go/build/constraint ≥ 0, < 1.22.7 Affected
Go standard library go/build/constraint ≥ 1.23.0-0, < 1.23.1 Affected

Weakness type

  • CWE-674: Uncontrolled Recursion

    The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities