CVE-2024-34158
JSON

7.5high

Stack exhaustion in Parse in go/build/constraint

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.05% (higher than 65% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GO-2024-3107BIT-GOLANG-2024-34158

Description

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

Affected

Product or packageVersionsReported by
go/build/constraintbefore 1.22.7, from 1.23.0-0 before 1.23.1CVE List
go_build_constraint go_standard_librarybefore 1.22.7, from 1.23.0-0 before 1.23.1CVE List
stdlib (Go)before 1.22.7, from 1.23.0-0 before 1.23.1Go Vulnerability Database
golang (Bitnami)before 1.22.7, from 1.23.0-0 before 1.23.1Bitnami Vulnerability Database

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-674

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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

NVD (es)

Llamar a Parse en una línea de compilación "// +build" con expresiones profundamente anidadas puede causar pánico debido al agotamiento de la pila.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2024-34158 changed 2024-10-04CVE Terms of Use
Go Vulnerability DatabaseGO-2024-3107 changed 2026-08-05CC-BY-4.0
NVDCVE-2024-34158 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2024-34158 changed 2025-05-20Apache-2.0