CVE-2024-34158 json
Stack exhaustion in Parse in go/build/constraint
published 2024-09-06 2 y ago modified 2026-08-05 3 mo ago also BIT-golang-2024-34158 , EUVD-2024-34666 , GO-2024-3107
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
Summary
Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.
Patch / fix
- bitnami golang 1.22.7, 1.23.1
- go stdlib 1.22.7, 1.23.1
- Go standard library go/build/constraint 1.22.7, 1.23.1
- go_build_constraint go_standard_library 1.22.7, 1.23.1
- golang-1.17 Ubuntu 22.04 LTS 1.17.13-3ubuntu1.3
- golang-1.18 Ubuntu 20.04 LTS 1.18.1-1ubuntu1~20.04.3
- golang-1.18 Ubuntu 22.04 LTS 1.18.1-1ubuntu1.2
- golang-1.22 Ubuntu 20.04 LTS 1.22.2-2~20.04.2
- golang-1.22 Ubuntu 22.04 LTS 1.22.2-2~22.04.2
- golang-1.22 Ubuntu 24.04 LTS 1.22.2-2ubuntu0.3
- golang-1.18 Ubuntu Pro 16.04 LTS 1.18.1-1ubuntu1~16.04.6+esm1
- golang-1.18 Ubuntu Pro 18.04 LTS 1.18.1-1ubuntu1~18.04.4+esm1
ubuntu advisories UBUNTU-CVE-2024-34158
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- osbuild-composer RHEL 9 132-1.el9
- osbuild-composer-core RHEL 9 132-1.el9
- osbuild-composer-worker RHEL 9 132-1.el9
- cri-o openshift 4.14 1.27.8-12.rhaos4.14.git7597c43.el8
- cri-o openshift 4.14 1.27.8-12.rhaos4.14.git7597c43.el9
- podman openshift 4.14 3:4.4.1-21.rhaos4.14.el8
- podman openshift 4.14 3:4.4.1-21.rhaos4.14.el9
- skopeo openshift 4.14 2:1.11.3-4.rhaos4.14.el8
red hat advisories RHSA-2025:7118RHSA-2024:8700RHSA-2024:9459RHSA-2024:8694RHSA-2024:9454RHSA-2024:8690
- go1.22-openssl SLE Module for Development Tools 15 SP6, openSUSE Leap 15.6 1.22.7.1-150600.13.3.1
- go1.23-openssl SLE Module for Development Tools 15 SP6, openSUSE Leap 15.6 1.23.2.2-150600.13.3.1
- go1.21-openssl SLE Module for Development Tools 15 SP5, openSUSE Leap 15.5 1.21.13.4-150000.1.14.1
- go1.23-openssl SLE Module for Development Tools 15 SP5, openSUSE Leap 15.5 1.23.2.2-150000.1.3.1
- go1.22-openssl SLE Module for Development Tools 15 SP5, openSUSE Leap 15.5 1.22.7.1-150000.1.3.1
- kubernetes1.24 SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +1 more 1.24.17-150400.9.18.1
- kubernetes1.24 SLE Module for Containers 15 SP5, openSUSE Leap 15.6, openSUSE Leap 15.5 1.24.17-150500.3.24.1
- kubernetes1.24 SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 1.24.17-150300.7.9.1
suse advisories SUSE-SU-2024:3938-1SUSE-SU-2024:3937-1SUSE-SU-2024:3809-1SUSE-SU-2024:3773-1SUSE-SU-2024:3772-1SUSE-SU-2024:3458-1
- trivy Package Hub 15 SP6, openSUSE Leap 15.6 0.58.2-bp156.2.6.1
- go1.23 openSUSE Tumbleweed 1.23.1-1.1
- go1.22 openSUSE Tumbleweed 1.22.7-1.1
opensuse advisories openSUSE-SU-2025:0056-1openSUSE-SU-2024:14324-1openSUSE-SU-2024:14323-1
- osbuild AlmaLinux 9 141-1.el9.alma.1
- osbuild-composer AlmaLinux 9 132-1.el9.alma.1
- osbuild-lvm2 AlmaLinux 9 141-1.el9.alma.1
- osbuild-luks2 AlmaLinux 9 141-1.el9.alma.1
- osbuild-ostree AlmaLinux 9 141-1.el9.alma.1
- osbuild-selinux AlmaLinux 9 141-1.el9.alma.1
- python3-osbuild AlmaLinux 9 141-1.el9.alma.1
- osbuild-depsolve-dnf AlmaLinux 9 141-1.el9.alma.1
almalinux advisories ALSA-2025:7118ALSA-2024:9454ALSA-2024:9459ALSA-2024:8112ALSA-2024:8038ALSA-2024:8039
- podman Rocky Linux 9 4:4.9.4-13.el9_4
- criu Rocky Linux 8 3.18-5.module+el8.10.0+1815+5fe7415e
- crun Rocky Linux 8 1.14.3-2.module+el8.10.0+1815+5fe7415e
- runc Rocky Linux 8 1:1.1.12-5.module+el8.10.0+1874+ce489889
- udica Rocky Linux 8 0.2.6-21.module+el8.10.0+1815+5fe7415e
- conmon Rocky Linux 8 3:2.1.10-1.module+el8.10.0+1815+5fe7415e
- podman Rocky Linux 8 4:4.9.4-13.module+el8.10.0+1871+e6fa1069
- skopeo Rocky Linux 8 2:1.14.5-3.module+el8.10.0+1843+6892ab28
rocky linux advisories RLSA-2024:8039RLSA-2024:8038RLSA-2024:6913RLSA-2024:6908
- go Alpine 3.20 1.22.7-r0
- go Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 1.23.1-r0
alpine advisories ALPINE-CVE-2024-34158
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- go.dev/cl/611240 patch
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-34158 updated cvss 5.9
go/build/constraint: golang: Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion
-
Red Hat Machine Deletion Remediation Operator workload-availability/machine-deletion-remediation-rhel8-operator Red Hat Migration Toolkit for Applications 7 mta/mta-cli-rhel9affected: workaround, no fix planned “Will not fix”
-
Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-api-rhel9 Red Hat Multicluster Engine for Kubernetes multicluster-engine/cluster-api-provider-azure-rhel9affected: workaround, no fix available “Fix deferred”
-
Red Hat NBDE Tang Server tang-operator-container Red Hat Node HealthCheck Operator workload-availability/node-healthcheck-rhel8-operator Red Hat OpenShift Serverless openshift-serverless-clients, openshift-serverless-1/client-kn-rhel8affected: workaround, no fix planned “Will not fix”
-
Red Hat Power monitoring for Red Hat OpenShift kepler-container Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/subctl-rhel9affected: workaround, no fix available
-
Red Hat Advanced Cluster Security 4 advanced-cluster-security/rhacs-main-rhel8affected: workaround, no fix planned “Will not fix”
-
Red Hat Ansible Automation Platform 2 receptoraffected: workaround, no fix available
-
Red Hat Connectivity Link 1 rhcl-1/dns-operator-containeraffected: workaround, no fix available “Fix deferred”
-
Red Hat Enterprise Linux 8 osbuild-composer, osbuild-composer-core, osbuild-composer-worker, osbuild-composer-dnf-jsonaffected: workaround, no fix planned “Will not fix”
show 25 moreshow fewer
-
Red Hat Enterprise Linux 9 grafana, grafana-selinux, opentelemetry-collectoraffected: workaround, no fix available, no fix planned “Will not fix”
-
Red Hat Enterprise Linux 10 golang, podmanaffected: workaround, no fix available
-
Red Hat OpenShift Container Platform 4 prometheus-promu, openshift-prometheus-promu, golang-github-prometheus-promu Red Hat OpenShift Container Platform Assisted Installer 1 rhai-tech-preview/assisted-installer-rhel8affected: workaround, no fix planned “Will not fix”
-
Red Hat OpenShift Data Science (RHODS) rhods/odh-rhel8-operatoraffected: workaround, no fix available
-
Red Hat OpenShift Dev Spaces devspaces/traefik-rhel8affected: workaround, no fix planned “Will not fix”
-
Red Hat OpenShift distributed tracing 3 rhosdt/tempo-gateway-rhel8affected: workaround, no fix available
-
Red Hat OpenShift GitOps openshift-gitops-1/argocd-rhel8affected: workaround, no fix planned “Will not fix”
-
Red Hat Openshift Sandboxed Containers openshift-sandboxed-containers/osc-rhel8-operator Red Hat OpenShift Virtualization 4 openshift-golang-builder-containeraffected: workaround, no fix available
-
Red Hat OpenStack Platform 17.1 etcdaffected: workaround, no fix available “Fix deferred”
-
Red Hat Storage 3 golang, heketi, golang-bin, golang-src, golang-misc, golang-tests, +2 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Self Node Remediation Operator workload-availability/self-node-remediation-rhel8-operatoraffected: workaround, no fix planned “Will not fix”
-
Red Hat Cryostat 3 on RHEL 8 cryostat-tech-preview/cryostat-rhel8 3.0.1-5, cryostat-tech-preview/cryostat-db-rhel8 3.0.1-5, cryostat-tech-preview/jfr-datasource-rhel8 3.0.1-5, cryostat-tech-preview/cryostat-reports-rhel8 3.0.1-5, cryostat-tech-preview/cryostat-storage-rhel8 3.0.1-5, cryostat-tech-preview/cryostat-rhel8-operator 3.0.1-5, +3 morefixed: vendor fix RHSA-2024:8329
-
Red Hat KDO 5.0 for RHEL 9 kube-descheduler-operator/descheduler-rhel9 v5.0-45, kube-descheduler-operator/kube-descheduler-rhel9-operator v5.0-42fixed: vendor fix RHSA-2024:8704
-
Red Hat NETOBSERV 1.7 for RHEL 9 network-observability/network-observability-cli-rhel9 v1.7.0-67, network-observability/network-observability-operator-bundle 1.7.0-86, network-observability/network-observability-rhel9-operator v1.7.0-67, network-observability/network-observability-ebpf-agent-rhel9 v1.7.0-67, network-observability/network-observability-console-plugin-rhel9 v1.7.0-67, network-observability/network-observability-flowlogs-pipeline-rhel9 v1.7.0-67fixed: vendor fix RHSA-2024:8014
-
Red Hat OpenShift API for Data Protection 1.3 oadp/oadp-velero-rhel9 1.3.4-10fixed: vendor fix RHSA-2024:9960
-
Red Hat OpenShift API for Data Protection 1.4 oadp/oadp-velero-rhel9 1.4.2-11fixed: vendor fix RHSA-2025:0771
-
Red Hat OSSO 1.2 for RHEL 9 openshift-secondary-scheduler-operator/secondary-scheduler-rhel9-operator v1.2-47fixed: vendor fix RHSA-2024:8219
-
Red Hat Enterprise Linux AppStream (v. 8) crit 3.18-5.module+el8.10.0+22346+28c02849, criu 3.18-5.module+el8.10.0+22346+28c02849, crun 1.14.3-2.module+el8.10.0+22346+28c02849, runc 1.1.12-5.module+el8.10.0+22346+28c02849, delve 1.21.2-4.module+el8.10.0+22329+6cd5c9c6, udica 0.2.6-21.module+el8.10.0+22346+28c02849, +34 morefixed: vendor fix RHSA-2024:8038
-
Red Hat Enterprise Linux AppStream (v. 9) podman 5.2.2-9.el9_5, podman 4.9.4-13.el9_4, buildah 1.33.9-1.el9_4, buildah 1.37.5-1.el9_5, golang 1.21.13-3.el9_4, go-toolset 1.21.13-3.el9_4, +17 morefixed: vendor fix RHSA-2024:8112
-
Red Hat Migration Toolkit 1.8 rhmtc/openshift-migration-registry-rhel8 v1.8.5-6, rhmtc/openshift-migration-velero-plugin-for-mtc-rhel8 v1.8.5-6fixed: vendor fix RHSA-2024:10906
-
Red Hat OpenShift Container Platform 4.12 podman 4.4.1-8.rhaos4.12.el8, podman 4.2.0-12.rhaos4.12.el9, podman-tests 4.4.1-8.rhaos4.12.el8, podman-docker 4.4.1-8.rhaos4.12.el8, podman-remote 4.4.1-8.rhaos4.12.el8, podman-tests 4.2.0-12.rhaos4.12.el9, +188 morefixed: vendor fix RHSA-2024:8692
-
Red Hat OpenShift Container Platform 4.13 podman 4.4.1-15.rhaos4.13.el8, podman 4.4.1-16.rhaos4.13.el9, podman-tests 4.4.1-15.rhaos4.13.el8, podman-tests 4.4.1-16.rhaos4.13.el9, podman-docker 4.4.1-15.rhaos4.13.el8, podman-docker 4.4.1-16.rhaos4.13.el9, +188 morefixed: vendor fix RHSA-2024:8688
-
Red Hat OpenShift Container Platform 4.14 podman 4.4.1-21.rhaos4.14.el8, podman 4.4.1-21.rhaos4.14.el9, podman-tests 4.4.1-21.rhaos4.14.el8, podman-tests 4.4.1-21.rhaos4.14.el9, podman-docker 4.4.1-21.rhaos4.14.el8, podman-docker 4.4.1-21.rhaos4.14.el9, +194 morefixed: vendor fix RHSA-2024:8697
-
Red Hat OpenShift Container Platform 4.15 podman 4.4.1-31.rhaos4.15.el8, podman 4.4.1-31.rhaos4.15.el9, podman-tests 4.4.1-31.rhaos4.15.el8, podman-tests 4.4.1-31.rhaos4.15.el9, podman-docker 4.4.1-31.rhaos4.15.el8, podman-docker 4.4.1-31.rhaos4.15.el9, +189 morefixed: vendor fix RHSA-2024:8425
-
Red Hat OpenShift Container Platform 4.16 podman 4.9.4-10.rhaos4.16.el8, podman 4.9.4-12.rhaos4.16.el9, podman-tests 4.9.4-10.rhaos4.16.el8, podman-tests 4.9.4-12.rhaos4.16.el9, podman-docker 4.9.4-10.rhaos4.16.el8, podman-docker 4.9.4-12.rhaos4.16.el9, +186 morefixed: vendor fix RHSA-2024:8263
8 more fixed, 23 more not affected in the full advisory
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
1.05% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | golang | <1.22.7 >=1.23.0-0, <1.23.1 |
1.22.7 1.23.1 |
| go | stdlib | <1.22.7 >=1.23.0-0, <1.23.1 |
1.22.7 1.23.1 |
Affected products
- Go standard library go/build/constraint
- go_build_constraint go_standard_library
Classification
- Weakness
-
- CWE-674 Uncontrolled Recursion
References
Sources
- CVE List CVE-2024-34158
- NVD CVE-2024-34158
- OSV BIT-golang-2024-34158
- OSV GO-2024-3107
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.