cve.bz

CVE-2024-34158 go standard library go/build/constraint: Uncontrolled Recursion

7.5 highEPSS 1.0%Fix available

High (7.5) in go standard library go/build/constraint. EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.22.7, 1.23.1.

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

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-09-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-674 Uncontrolled Recursion
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • stdlib (Go): fixed in 1.22.7, 1.23.1
  • Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine, Azure Linux, Alpaquita, BellSoft Hardened Containers: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2024-34158 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-34158?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-34158?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-34158 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library go/build/constraintbefore 1.22.7
Go standard library go/build/constraintfrom 1.23.0-0 before 1.23.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2024-3107Gostdlib<1.22.7
>=1.23.0-0 <1.23.1
1.22.7, 1.23.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.19no fix listedDEBIAN-CVE-2024-34158
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2024-34158
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2024-34158
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2024-34158
Ubuntu20.04:LTSgolang-1.13, golang-1.14, golang-1.20 and 1 moreno fix listedUBUNTU-CVE-2024-34158
Ubuntu20.04:LTSgolang-1.181.18.1-1ubuntu1~20.04.3UBUNTU-CVE-2024-34158 USN-7109-1
Ubuntu20.04:LTSgolang-1.221.22.2-2~20.04.2UBUNTU-CVE-2024-34158 USN-7081-1
Ubuntu22.04:LTSgolang-1.171.17.13-3ubuntu1.3UBUNTU-CVE-2024-34158 USN-7111-1
Ubuntu22.04:LTSgolang-1.181.18.1-1ubuntu1.2UBUNTU-CVE-2024-34158 USN-7109-1
Ubuntu22.04:LTSgolang-1.20, golang-1.21no fix listedUBUNTU-CVE-2024-34158
Ubuntu22.04:LTSgolang-1.221.22.2-2~22.04.2UBUNTU-CVE-2024-34158 USN-7081-1
Ubuntu24.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2024-34158
Ubuntu24.04:LTSgolang-1.221.22.2-2ubuntu0.3UBUNTU-CVE-2024-34158 USN-7081-1
5 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::appstreamaardvark-dns2:1.10.1-2.module+el8.10.0+22346+28c02849RHSA-2024:8038
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more2:1.33.8-4.module+el8.10.0+22346+28c02849RHSA-2024:8038
Red Hatenterprise_linux:8::appstreamcockpit-podman0:84.1-1.module+el8.10.0+22346+28c02849RHSA-2024:8038
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource3:2.1.10-1.module+el8.10.0+22346+28c02849RHSA-2024:8038
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.229.0-2.module+el8.10.0+22346+28c02849RHSA-2024:8038
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.4.0-5.module+el8.10.0+22346+28c02849RHSA-2024:8038
Red Hatenterprise_linux:8::appstreamcontainers-common2:1-82.module+el8.10.0+22346+28c02849RHSA-2024:8038
Red Hatenterprise_linux:8::appstreamcrit, criu, criu-libs and 5 more0:3.18-5.module+el8.10.0+22346+28c02849RHSA-2024:8038
Red Hatenterprise_linux:8::appstreamcrun, crun-debuginfo, crun-debugsource0:1.14.3-2.module+el8.10.0+22346+28c02849RHSA-2024:8038
Red Hatenterprise_linux:8::appstreamdelve, delve-debuginfo, delve-debugsource0:1.21.2-4.module+el8.10.0+22329+6cd5c9c6RHSA-2024:6908
Red Hatenterprise_linux:8::appstreamfuse-overlayfs, fuse-overlayfs-debuginfo, fuse-overlayfs-debugsource0:1.13-1.module+el8.10.0+22346+28c02849RHSA-2024:8038
Red Hatenterprise_linux:8::appstreamgo-toolset0:1.21.13-1.module+el8.10.0+22329+6cd5c9c6RHSA-2024:6908
76 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morekubernetes1.241.24.17-150300.7.9.1SUSE-SU-2024:3459-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Containers 15 SP5 and 3 morekubernetes1.251.25.16-150400.9.18.1SUSE-SU-2024:3457-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Containers 15 SP5 and 3 morekubernetes1.261.26.15-150400.9.16.1SUSE-SU-2024:3456-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Containers 15 SP5 and 3 morekubernetes1.271.27.16-150400.9.12.1SUSE-SU-2024:3455-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Containers 15 SP5 and 3 morekubernetes1.281.28.13-150400.9.10.1SUSE-SU-2024:3454-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morekubernetes1.241.24.17-150400.9.18.1SUSE-SU-2024:3458-1
SUSELinux Enterprise Module for Containers 15 SP5kubernetes1.241.24.17-150500.3.24.1SUSE-SU-2024:3453-1
SUSELinux Enterprise Module for Development Tools 15 SP5go1.21-openssl1.21.13.4-150000.1.14.1SUSE-SU-2024:3809-1
SUSELinux Enterprise Module for Development Tools 15 SP5go1.22-openssl1.22.7.1-150000.1.3.1SUSE-SU-2024:3772-1
SUSELinux Enterprise Module for Development Tools 15 SP5go1.23-openssl1.23.2.2-150000.1.3.1SUSE-SU-2024:3773-1
SUSELinux Enterprise Module for Development Tools 15 SP5, Linux Enterprise Module for Development Tools 15 SP6go1.221.22.7-150000.1.27.1SUSE-SU-2024:3213-1
SUSELinux Enterprise Module for Development Tools 15 SP5, Linux Enterprise Module for Development Tools 15 SP6go1.231.23.1-150000.1.6.1SUSE-SU-2024:3214-1
5 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5go1.21-openssl1.21.13.4-150000.1.14.1SUSE-SU-2024:3809-1
openSUSELeap 15.5go1.22-openssl1.22.7.1-150000.1.3.1SUSE-SU-2024:3772-1
openSUSELeap 15.5go1.23-openssl1.23.2.2-150000.1.3.1SUSE-SU-2024:3773-1
openSUSELeap 15.5, Leap 15.6go1.221.22.7-150000.1.27.1SUSE-SU-2024:3213-1
openSUSELeap 15.5, Leap 15.6go1.231.23.1-150000.1.6.1SUSE-SU-2024:3214-1
openSUSELeap 15.5, Leap 15.6kubernetes1.241.24.17-150500.3.24.1SUSE-SU-2024:3453-1
openSUSELeap 15.5, Leap 15.6kubernetes1.251.25.16-150400.9.18.1SUSE-SU-2024:3457-1
openSUSELeap 15.5, Leap 15.6kubernetes1.261.26.15-150400.9.16.1SUSE-SU-2024:3456-1
openSUSELeap 15.5, Leap 15.6kubernetes1.271.27.16-150400.9.12.1SUSE-SU-2024:3455-1
openSUSELeap 15.5, Leap 15.6kubernetes1.281.28.13-150400.9.10.1SUSE-SU-2024:3454-1
openSUSELeap 15.6go1.22-openssl1.22.7.1-150600.13.3.1SUSE-SU-2024:3938-1
openSUSELeap 15.6go1.23-openssl1.23.2.2-150600.13.3.1SUSE-SU-2024:3937-1
3 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8aardvark-dns2:1.10.1-2.module_el8.10.0+3901+4b80ecd7ALSA-2024:8038
AlmaLinux8buildah, buildah-tests2:1.33.8-4.module_el8.10.0+3876+e55593a8ALSA-2024:8038
AlmaLinux8buildah, buildah-tests2:1.33.8-4.module_el8.10.0+3901+4b80ecd7ALSA-2024:8038
AlmaLinux8cockpit-podman84.1-1.module_el8.10.0+3876+e55593a8ALSA-2024:8038
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3845+87b84552ALSA-2024:8038
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3858+6ad51f9fALSA-2024:8038
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3876+e55593a8ALSA-2024:8038
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3901+4b80ecd7ALSA-2024:8038
AlmaLinux8container-selinux2:2.229.0-2.module_el8.10.0+3901+4b80ecd7ALSA-2024:8038
AlmaLinux8containernetworking-plugins1:1.4.0-5.module_el8.10.0+3876+e55593a8ALSA-2024:8038
AlmaLinux8containernetworking-plugins1:1.4.0-5.module_el8.10.0+3901+4b80ecd7ALSA-2024:8038
AlmaLinux8containers-common2:1-82.module_el8.10.0+3876+e55593a8ALSA-2024:8038
43 more for AlmaLinux in the JSON.
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+1874+ce489889RLSA-2024:8038
Rocky Linux8buildah2:1.33.8-4.module+el8.10.0+1843+6892ab28RLSA-2024:8038
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1815+5fe7415eRLSA-2024:8038
Rocky Linux8conmon3:2.1.10-1.module+el8.10.0+1815+5fe7415eRLSA-2024:8038
Rocky Linux8container-selinux2:2.229.0-2.module+el8.10.0+1815+5fe7415eRLSA-2024:8038
Rocky Linux8containernetworking-plugins1:1.4.0-5.module+el8.10.0+1843+6892ab28RLSA-2024:8038
Rocky Linux8containers-common2:1-82.module+el8.10.0+1843+6892ab28RLSA-2024:8038
Rocky Linux8criu0:3.18-5.module+el8.10.0+1815+5fe7415eRLSA-2024:8038
Rocky Linux8crun0:1.14.3-2.module+el8.10.0+1815+5fe7415eRLSA-2024:8038
Rocky Linux8delve0:1.21.2-4.module+el8.10.0+1868+7f5969f2RLSA-2024:6908
Rocky Linux8fuse-overlayfs0:1.13-1.module+el8.10.0+1815+5fe7415eRLSA-2024:8038
Rocky Linux8go-toolset0:1.21.13-1.module+el8.10.0+1868+7f5969f2RLSA-2024:6908
13 more for Rocky Linux in the JSON.
Alpinev3.20go1.22.7-r0ALPINE-CVE-2024-34158
Alpinev3.21, v3.22, v3.23 and 1 morego1.23.1-r0ALPINE-CVE-2024-34158
Azure Linux2golang1.18.8-6AZL-48929
Azure Linux3golangno fix listedAZL-79078 AZL-98805
Alpaquita23go1.23.8-r0BELL-CVE-2024-34158
Alpaquitastreamgo1.24.0-r0BELL-CVE-2024-34158
BellSoft Hardened Containers23go1.23.8-r0BELL-CVE-2024-34158
BellSoft Hardened Containersstreamgo1.24.0-r0BELL-CVE-2024-34158

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-db-rhel8:3.0.1-5Fixed 2024-10-22RHSA-2024:8329
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-grafana-dashboard-rhel8:3.0.1-5Fixed 2024-10-22RHSA-2024:8329
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-operator-bundle:3.0.1-5Fixed 2024-10-22RHSA-2024:8329
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-ose-oauth-proxy-rhel8:3.0.1-5Fixed 2024-10-22RHSA-2024:8329
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-reports-rhel8:3.0.1-5Fixed 2024-10-22RHSA-2024:8329
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-rhel8:3.0.1-5Fixed 2024-10-22RHSA-2024:8329
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-rhel8-operator:3.0.1-5Fixed 2024-10-22RHSA-2024:8329
Cryostat 3 on RHEL 8cryostat-tech-preview/cryostat-storage-rhel8:3.0.1-5Fixed 2024-10-22RHSA-2024:8329
Cryostat 3 on RHEL 8cryostat-tech-preview/jfr-datasource-rhel8:3.0.1-5Fixed 2024-10-22RHSA-2024:8329
KDO-5.0-RHEL-9kube-descheduler-operator/descheduler-rhel9:v5.0-45Fixed 2024-12-02RHSA-2024:8704
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel8Not affected
Logical Volume Manager Storagelvms4/lvms-rhel9-operatorNot affected
Machine Deletion Remediation Operatorworkload-availability/machine-deletion-remediation-rhel8-operatorWill not fix
Migration Toolkit for Applications 7mta/mta-cli-rhel9Will not fix
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-api-rhel9Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/cluster-api-provider-azure-rhel8Fix deferred
NBDE Tang Servertang-operator-containerWill not fix
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel8-operatorWill not fix
OpenShift Serverlessopenshift-serverless-1/client-kn-rhel8Will not fix
OpenShift Serverlessopenshift-serverless-clientsWill not fix
521 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-34158.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON