Skip to content
Fencer Vulns
high 7.5

CVE-2024-34156 json

Stack exhaustion in Decoder.Decode in encoding/gob

published 2024-09-06 2 y ago modified 2026-06-17 4 mo ago also BIT-golang-2024-34156 , EUVD-2024-34665 , GO-2024-3106

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.1%
EPSS 1.1% chance of exploitation in 30 days, percentile 66%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami golang 1.22.7, 1.23.1
  • go stdlib 1.22.7, 1.23.1
  • Go standard library encoding/gob 1.22.7, 1.23.1
  • go_standard_library encoding\/gob 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-34156

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

  • skupper-cli service interconnect 1.4 1.4.7-1.el8
  • skupper-cli service interconnect 1.4 1.4.7-1.el9
  • delve RHEL 9 1.24.1-2.el9_5
  • golang RHEL 9 1.23.6-2.el9_5
  • go-toolset RHEL 9 1.23.6-2.el9_5
  • golang-bin RHEL 9 1.23.6-2.el9_5
  • golang-src RHEL 9 1.23.6-2.el9_5
  • golang-misc RHEL 9 1.23.6-2.el9_5

red hat advisories RHEA-2024:4866RHSA-2025:3773RHSA-2025:1190RHSA-2025:0203RHSA-2024:11217RHSA-2024:11216

  • 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

  • kured openSUSE Tumbleweed 1.20.0-1.1
  • trivy Package Hub 15 SP6, openSUSE Leap 15.6 0.58.2-bp156.2.6.1
  • opentofu openSUSE Tumbleweed 1.8.6-1.1
  • kyverno openSUSE Tumbleweed 1.12.6-1.1
  • go1.23 openSUSE Tumbleweed 1.23.1-1.1
  • go1.22 openSUSE Tumbleweed 1.22.7-1.1

opensuse advisories openSUSE-SU-2025:15505-1openSUSE-SU-2025:0056-1openSUSE-SU-2024:14520-1openSUSE-SU-2024:14375-1openSUSE-SU-2024:14324-1openSUSE-SU-2024:14323-1

  • delve AlmaLinux 9 1.24.1-2.el9_5
  • golang AlmaLinux 9 1.23.6-2.el9_5
  • go-toolset AlmaLinux 9 1.23.6-2.el9_5
  • golang-bin AlmaLinux 9 1.23.6-2.el9_5
  • golang-src AlmaLinux 9 1.23.6-2.el9_5
  • golang-misc AlmaLinux 9 1.23.6-2.el9_5
  • golang-race AlmaLinux 9 1.23.6-2.el9_5
  • golang-tests AlmaLinux 9 1.23.6-2.el9_5

almalinux advisories ALSA-2025:3773ALSA-2024:11216ALSA-2024:11217ALSA-2024:9454ALSA-2024:9456ALSA-2024:9459

  • delve Rocky Linux 9 1.24.1-2.el9_6
  • golang Rocky Linux 9 1.23.6-2.el9_6
  • containernetworking-plugins Rocky Linux 9 1:1.5.1-3.el9_5
  • skopeo Rocky Linux 9 2:1.16.1-2.el9_5
  • osbuild-composer Rocky Linux 9 118-2.el9_5.rocky.0.6
  • grafana-pcp Rocky Linux 9 5.1.1-9.el9_5
  • grafana Rocky Linux 9 10.2.6-7.el9_5
  • podman Rocky Linux 9 4:4.9.4-13.el9_4

rocky linux advisories RLSA-2025:3773RLSA-2024:11216RLSA-2024:11217RLSA-2024:9456RLSA-2024:9472RLSA-2024:9473

  • 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-34156

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

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-34156 updated cvss 7.5

encoding/gob: golang: Calling Decoder.Decode on a message which contains deeply nested structures can cause a panic due to stack exhaustion

  • Red Hat Builds for Red Hat OpenShift openshift-builds/openshift-builds-waiters-rhel8
    affected: no fix planned “Will not fix”
  • Red Hat cert-manager Operator for Red Hat OpenShift cert-manager/jetstack-cert-manager-rhel9
    affected: no fix available
  • Red Hat Migration Toolkit for Applications 7 mta/mta-hub-rhel9
    affected: no fix planned “Will not fix”
  • Red Hat Multicluster Engine for Kubernetes multicluster-engine/hive-rhel8
    affected: no fix available
  • Red Hat Node Maintenance Operator workload-availability/node-maintenance-rhel8-operator Red Hat OpenShift Serverless openshift-serverless-clients, openshift-serverless-1/kn-client-kn-rhel9
    affected: no fix planned “Will not fix”
  • Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/subctl-rhel9
    affected: no fix available
  • Red Hat Connectivity Link 1 rhcl-1/dns-rhel9-operator
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux 9 ignition, ignition-edge, ignition-grub, ignition-validate, opentelemetry-collector
    affected: no fix available, no fix planned “Will not fix”
show 30 more
  • Red Hat Enterprise Linux 10 skopeo
    affected: no fix available
  • Red Hat OpenShift AI (RHOAI) odh-operator-container
    affected: no fix planned “Will not fix”
  • Red Hat OpenShift Container Platform 4 openshift-golang-builder-container Red Hat OpenShift distributed tracing 3 rhosdt/tempo-rhel8
    affected: no fix available
  • Red Hat OpenShift GitOps openshift-gitops-1/gitops-rhel8, openshift-gitops-1/argo-rollouts-rhel8
    affected: no fix planned “Will not fix”
  • Red Hat OpenShift Virtualization 4 openshift-golang-builder-container
    affected: no fix available
  • Red Hat Storage 3 golang, heketi, golang-bin, golang-src, golang-misc, golang-tests, +2 more
    affected: no fix planned “Out of support scope”
  • Red Hat Self Node Remediation Operator workload-availability/self-node-remediation-rhel8-operator
    affected: no fix planned “Will not fix”
  • Red Hat streams for Apache Kafka golang-github-danielqsj-kafka_exporter
    affected: no fix available
  • 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 more
    fixed: vendor fix RHSA-2024:8329
  • Red Hat Custom Metric Autoscaler operator for Red Hat Openshift 2.15 custom-metrics-autoscaler 2.15.1-1742296747
    fixed: vendor fix RHSA-2025:3501
  • 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-67
    fixed: vendor fix RHSA-2024:8014
  • Red Hat OpenShift API for Data Protection 1.3 oadp/oadp-velero-rhel9 1.3.4-10
    fixed: vendor fix RHSA-2024:9960
  • Red Hat OpenShift API for Data Protection 1.4 oadp/oadp-velero-rhel9 1.4.2-11
    fixed: vendor fix RHSA-2025:0771
  • Red Hat Ceph Storage 5.3 Tools rhceph/rhceph-5-rhel8 5-535, rhceph/keepalived-rhel8 2.1.5-44, rhceph/snmp-notifier-rhel8 1.2.1-88, rhceph/rhceph-5-dashboard-rhel8 5-97, rhceph/rhceph-haproxy-rhel8 2.2.19-45
    fixed: vendor fix RHBA-2025:1479
  • Red Hat Ceph Storage 6.1 Tools rhceph/rhceph-6-rhel9 6-356, rhceph/rhceph-6-dashboard-rhel9 6-112, rhceph/rhceph-promtail-rhel9 v2.4.0-40, rhceph/keepalived-rhel9 2.2.8-1745816949, rhceph/snmp-notifier-rhel9 1.2.1-1745816915, rhceph/rhceph-haproxy-rhel9 2.4.22-1745816965
    fixed: vendor fix RHSA-2025:4240
  • Red Hat Ceph Storage 7.1 Tools rhceph/rhceph-7-rhel9 7-493, rhceph/ceph-nvmeof-cli-rhel9 1.2.19-1, rhceph/grafana-rhel9 10.4.8-1740412443, rhceph/rhceph-promtail-rhel9 v3.0.0-14, rhceph/keepalived-rhel9 2.2.8-1740412056, rhceph/snmp-notifier-rhel9 1.2.1-1740411201, +1 more
    fixed: vendor fix RHBA-2025:1772
  • Red Hat Ceph Storage 8.1 Tools rhceph/rhceph-8-rhel9 8-492, rhceph/grafana-rhel9 11.5.2-6, rhceph/keepalived-rhel9 2.2.8-65, rhceph/oauth2-proxy-rhel9 v7.6.0-27, rhceph/snmp-notifier-rhel9 1.2.1-115, rhceph/rhceph-haproxy-rhel9 2.4.22-67, +1 more
    fixed: vendor fix RHSA-2025:9776
  • Red Hat Enterprise Linux AppStream (v. 8) git-lfs 3.4.1-3.el8_10, osbuild-composer 101-2.el8_10, osbuild-composer-core 101-2.el8_10, osbuild-composer-worker 101-2.el8_10, crit 3.18-5.module+el8.10.0+22346+28c02849, criu 3.18-5.module+el8.10.0+22346+28c02849, +38 more
    fixed: vendor fix RHSA-2024:8038
  • Red Hat Enterprise Linux AppStream (v. 9) delve 1.24.1-2.el9_5, podman 5.2.2-9.el9_5, git-lfs 3.4.1-4.el9_4, golang 1.23.6-2.el9_5, podman 4.9.4-13.el9_4, skopeo 1.14.5-2.el9_4, +41 more
    fixed: vendor fix RHSA-2024:8112
  • Red Hat Enterprise Linux AppStream AUS (v.8.4) git-lfs 2.11.0-2.el8_4.3, osbuild-composer 28.7-2.el8_4, osbuild-composer-core 28.7-2.el8_4, osbuild-composer-worker 28.7-2.el8_4, crit 3.15-1.module+el8.4.0+22344+c04f7483, criu 3.15-1.module+el8.4.0+22344+c04f7483, +32 more
    fixed: vendor fix RHSA-2024:7822
  • Red Hat Enterprise Linux AppStream AUS (v.8.6) git-lfs 2.13.3-3.el8_6.2, osbuild-composer 46.3-2.el8_6, osbuild-composer-core 46.3-2.el8_6, osbuild-composer-worker 46.3-2.el8_6, osbuild-composer-dnf-json 46.3-2.el8_6, crun 1.5-1.module+el8.6.0+22336+84062bbb, +40 more
    fixed: vendor fix RHSA-2024:7852
  • Red Hat Enterprise Linux AppStream E4S (v.8.4) git-lfs 2.11.0-2.el8_4.3, osbuild-composer 28.7-2.el8_4, osbuild-composer-core 28.7-2.el8_4, osbuild-composer-worker 28.7-2.el8_4, crit 3.15-1.module+el8.4.0+22344+c04f7483, criu 3.15-1.module+el8.4.0+22344+c04f7483, +32 more
    fixed: vendor fix RHSA-2024:7822
  • Red Hat Enterprise Linux AppStream E4S (v.8.6) git-lfs 2.13.3-3.el8_6.2, osbuild-composer 46.3-2.el8_6, osbuild-composer-core 46.3-2.el8_6, osbuild-composer-worker 46.3-2.el8_6, osbuild-composer-dnf-json 46.3-2.el8_6, crun 1.5-1.module+el8.6.0+22336+84062bbb, +40 more
    fixed: vendor fix RHSA-2024:7852
  • Red Hat Enterprise Linux AppStream E4S (v.9.0) golang 1.17.13-2.el9_0, grafana 7.5.11-7.el9_0, podman 4.2.0-5.el9_0.1, skopeo 1.8.0-4.1.el9_0, buildah 1.26.7-1.el9_0.1, git-lfs 2.13.3-5.el9_0.2, +19 more
    fixed: vendor fix RHSA-2024:7793
  • Red Hat Enterprise Linux AppStream EUS (v.8.8) git-lfs 3.2.0-2.el8_8.2, osbuild-composer 75-2.el8_8, osbuild-composer-core 75-2.el8_8, osbuild-composer-worker 75-2.el8_8, osbuild-composer-dnf-json 75-2.el8_8, crit 3.15-4.module+el8.8.0+22332+2132e5c3, +40 more
    fixed: vendor fix RHSA-2024:7769
  • Red Hat Enterprise Linux AppStream EUS (v.9.2) grafana 9.0.9-5.el9_2, git-lfs 3.2.0-2.el9_2.1, golang 1.19.13-12.el9_2, podman 4.4.1-20.el9_2.1, buildah 1.29.3-1.el9_2.1, grafana-pcp 5.1.1-2.el9_2, +18 more
    fixed: vendor fix RHSA-2024:7819
  • Red Hat Enterprise Linux AppStream TUS (v.8.4) git-lfs 2.11.0-2.el8_4.3, osbuild-composer 28.7-2.el8_4, osbuild-composer-core 28.7-2.el8_4, osbuild-composer-worker 28.7-2.el8_4, crit 3.15-1.module+el8.4.0+22344+c04f7483, criu 3.15-1.module+el8.4.0+22344+c04f7483, +32 more
    fixed: vendor fix RHSA-2024:7822
  • Red Hat Enterprise Linux AppStream TUS (v.8.6) git-lfs 2.13.3-3.el8_6.2, osbuild-composer 46.3-2.el8_6, osbuild-composer-core 46.3-2.el8_6, osbuild-composer-worker 46.3-2.el8_6, osbuild-composer-dnf-json 46.3-2.el8_6, crun 1.5-1.module+el8.6.0+22336+84062bbb, +40 more
    fixed: vendor fix RHSA-2024:7852
  • Red Hat Migration Toolkit 1.8 rhmtc/openshift-migration-controller-rhel8 v1.8.5-11, rhmtc/openshift-migration-velero-plugin-for-mtc-rhel8 v1.8.5-6
    fixed: vendor fix RHSA-2024:10906
  • Red Hat OpenShift Container Platform 4.12 podman 4.4.1-8.rhaos4.12.el8, skopeo 1.9.4-7.rhaos4.12.el8, skopeo 1.9.4-7.rhaos4.12.el9, podman 4.2.0-12.rhaos4.12.el9, podman-tests 4.4.1-8.rhaos4.12.el8, skopeo-tests 1.9.4-7.rhaos4.12.el8, +193 more
    fixed: vendor fix RHSA-2024:8694

26 more fixed, 32 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.13% chance of exploitation in the next 30 days, higher than 66% 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 encoding/gob
  • go_standard_library encoding\/gob

References

Sources

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.