cve.bz

CVE-2024-34156 go standard library encoding/gob

7.5 highEPSS 1.1%Fix available

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

On this page
Calling Decoder.Decode on a message which contains deeply nested structures can cause a panic due to stack exhaustion. This is a follow-up to CVE-2022-30635.

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.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th 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.
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-34156 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-34156?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-34156?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-34156 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 encoding/gobbefore 1.22.7
Go standard library encoding/gobfrom 1.23.0-0 before 1.23.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2024-3106Gostdlib<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-34156
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2024-34156
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2024-34156
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2024-34156
Ubuntu20.04:LTSgolang-1.13, golang-1.14, golang-1.20 and 1 moreno fix listedUBUNTU-CVE-2024-34156
Ubuntu20.04:LTSgolang-1.181.18.1-1ubuntu1~20.04.3UBUNTU-CVE-2024-34156 USN-7109-1
Ubuntu20.04:LTSgolang-1.221.22.2-2~20.04.2UBUNTU-CVE-2024-34156 USN-7081-1
Ubuntu22.04:LTSgolang-1.171.17.13-3ubuntu1.3UBUNTU-CVE-2024-34156 USN-7111-1
Ubuntu22.04:LTSgolang-1.181.18.1-1ubuntu1.2UBUNTU-CVE-2024-34156 USN-7109-1
Ubuntu22.04:LTSgolang-1.20, golang-1.21no fix listedUBUNTU-CVE-2024-34156
Ubuntu22.04:LTSgolang-1.221.22.2-2~22.04.2UBUNTU-CVE-2024-34156 USN-7081-1
Ubuntu24.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2024-34156
Ubuntu24.04:LTSgolang-1.221.22.2-2ubuntu0.3UBUNTU-CVE-2024-34156 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::appstreamgit-lfs, git-lfs-debuginfo, git-lfs-debugsource0:3.4.1-3.el8_10RHSA-2024:7135
181 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
6 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
42 more for AlmaLinux in the JSON.

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability in Go's `encoding/gob` package is of high severity because it exposes applications to potential Denial of Service (DoS) attacks through stack exhaustion. Since `gob` relies on recursive function calls to decode nested structures, an attacker could exploit this by sending crafted messages with excessively deep nesting, causing the application to panic due to stack overflow. This risk is particularly important in scenarios where untrusted or external input is processed, as it can lead to system unavailability or crashes, undermining the reliability and availability of services.

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
NETWORK-OBSERVABILITY-1.7.0-RHEL-9network-observability/network-observability-cli-rhel9:v1.7.0-67Fixed 2024-10-22RHSA-2024:8014
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-waiters-rhel8Will not fix
cert-manager Operator for Red Hat OpenShiftcert-manager/jetstack-cert-manager-rhel9Affected
Migration Toolkit for Applications 7mta/mta-hub-rhel9Will not fix
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-api-rhel9Not affected
Multicluster Engine for Kubernetesmulticluster-engine/hive-rhel8Affected
Node Maintenance Operatorworkload-availability/node-maintenance-rhel8-operatorWill not fix
OpenShift Serverlessopenshift-serverless-1/client-kn-rhel8Will not fix
OpenShift Serverlessopenshift-serverless-clientsWill not fix
OpenShift Service Mesh 2openshift-golang-builder-containerNot affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/subctl-rhel9Affected
519 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-34156.

References

Check your stackJSON