CVE-2024-34156
encoding/gob: golang: Calling Decoder.Decode on a message which contains deeply nested structures can cause a panic due to stack exhaustion
Overview
Description
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected packages · 2
Operating systems · 1,245 fixes
Oracle Linux 2 releases · 26 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | udica | 0.2.6-21.module+el8.10.0+90416+5b0f6a17 |
| 8 | fuse-overlayfs | 1.13-1.module+el8.10.0+90416+5b0f6a17 |
| 8 | crun | 1.14.3-2.module+el8.10.0+90416+5b0f6a17 |
| 8 | oci-seccomp-bpf-hook | 1.2.10-1.module+el8.10.0+90416+5b0f6a17 |
| 8 | slirp4netns | 1.2.3-1.module+el8.10.0+90416+5b0f6a17 |
| 8 | go-toolset | 1.21.13-1.module+el8.10.0+90407+20770c94 |
28 more rows
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | go | 1.21.13-1.ph4 |
| 5.0 | go | 1.21.13-1.ph5 |
Red Hat 6 releases · 37 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| golang +10 | eol | — | |
| 7 | containernetworking-plugins +1 | affected | — |
| 8 | cri-o | 0:1.25.5-30.rhaos4.12.git53dc492.el8 | RHSA-2024:8694 |
| 8 | cri-tools | 0:1.26.0-7.el8 | RHSA-2024:8690 |
| 8 | cri-o | 0:1.26.5-26.rhaos4.13.giteb3d487.el8 | RHSA-2024:8690 |
| 8 | cri-o | 0:1.27.8-12.rhaos4.14.git7597c43.el8 | RHSA-2024:8700 |
187 more rows
SUSE Linux Enterprise 4 releases · 10 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | go1-22 +1 | 1.22.7-1.21.1 | SUSE-SU-2024:3196-1 |
| 12.5 | go1-23 +1 | 1.23.1-1.6.1 | SUSE-SU-2024:3197-1 |
| 15.4 | kubernetes1-24-client +1 | 1.24.17-150400.9.18.1 | SUSE-SU-2024:3458-1 |
| 15.4 | kubernetes1-25-client +1 | 1.25.16-150400.9.18.1 | SUSE-SU-2024:3457-1 |
| 15.4 | kubernetes1-26-client +1 | 1.26.15-150400.9.16.1 | SUSE-SU-2024:3456-1 |
| 15.4 | kubernetes1-27-client +1 | 1.27.16-150400.9.12.1 | SUSE-SU-2024:3455-1 |
19 more rows
alma 4 releases · 35 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | osbuild-composer +2 | 101-2.el8_10.alma.1 |
| 8 | git-lfs | 3.4.1-3.el8_10 |
| 8 (container-tools:rhel8) | toolbox | 0.0.99.5-2.module_el8.10.0+3845+87b84552 |
| 8 (container-tools:rhel8) | toolbox-tests | 0.0.99.5-2.module_el8.10.0+3901+4b80ecd7 |
| 8 (container-tools:rhel8) | udica | 0.2.6-21.module_el8.10.0+3876+e55593a8 |
| 8 (container-tools:rhel8) | fuse-overlayfs | 1.13-1.module_el8.10.0+3792+03eaed9c |
37 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.23.1-r0 |
| 3.23 | go | 1.23.1-r0 |
| 3.24 | go | 1.23.1-r0 |
| edge | go | 1.23.1-r0 |
amazon linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golang +6 | 1.22.7-1.amzn2023.0.1 |
| 2023 | amazon-cloudwatch-agent | 1.300052.1-1.amzn2023 |
chainguard 1 release · 508 packages
| Release | Package | Fixed in |
|---|---|---|
| go-1-20 | not affected | |
| harbor-cli | 0.0.1-r5 | |
| stakater-reloader-0-0-119 | 0.0.119-r13 | |
| stakater-reloader-0-0-128 | 0.0.128-r12 | |
| pombump | 0.0.13-r2 | |
| gke-gcloud-auth-plugin | 0.0.2-r13 |
502 more rows
debian 3 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | golang-1-15 | affected |
| 12 | golang-1-19 | affected |
| 13 | golang-1-23 | 1.23.1-1 |
echo 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| golang-1-19 | affected | |
| golang-1-23 | 1.23.1 |
minimos 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| solr-operator-0-8 | 0.8.1-r1 |
openSUSE 1 release · 5 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | kyverno +3 | 1.12.6-1.1 | openSUSE-SU-2024:14375-1 |
| Tumbleweed | kured +1 | 1.20.0-1.1 | openSUSE-SU-2025:15505-1 |
| Tumbleweed | go1-22 +3 | 1.22.7-1.1 | openSUSE-SU-2024:14323-1 |
| Tumbleweed | go1-23 +3 | 1.23.1-1.1 | openSUSE-SU-2024:14324-1 |
| Tumbleweed | opentofu | 1.8.6-1.1 | openSUSE-SU-2024:14520-1 |
rocky 4 releases · 27 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | osbuild-composer +2 | 101-2.el8_10.rocky.0.6 |
| 8 | git-lfs | 3.4.1-3.el8_10 |
| 8 (container-tools:rhel8) | toolbox +1 | 0.0.99.5-2.module+el8.10.0+1815+5fe7415e.rocky.0.2.rocky.0.2 |
| 8 (container-tools:rhel8) | udica | 0.2.6-21.module+el8.10.0+1815+5fe7415e |
| 8 (container-tools:rhel8) | fuse-overlayfs | 1.13-1.module+el8.10.0+1815+5fe7415e |
| 8 (container-tools:rhel8) | crun | 1.14.3-2.module+el8.10.0+1815+5fe7415e |
33 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-golang-1-19 | affected |
ubuntu 5 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | golang-1-18 | 1.18.1-1ubuntu1~18.04.4+esm1 |
| 20.04 | golang-1-18 | 1.18.1-1ubuntu1~20.04.3 |
| 20.04 | golang-1-22 | 1.22.2-2~20.04.2 |
| 20.04-ESM | golang-1-18 | 1.18.1-1ubuntu1~20.04.3 |
| 20.04-ESM | golang-1-22 | 1.22.2-2~20.04.2 |
| 22.04 | golang-1-17 | 1.17.13-3ubuntu1.3 |
3 more rows
wolfi 1 release · 374 packages
| Release | Package | Fixed in |
|---|---|---|
| go-1-20 | not affected | |
| harbor-cli | 0.0.1-r5 | |
| pombump | 0.0.13-r2 | |
| gke-gcloud-auth-plugin | 0.0.2-r13 | |
| wireguard-go | 0.0.20230223-r15 | |
| spegel | 0.0.24-r2 |
368 more rows
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:8038
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:3773
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-34156
- bugzilla.redhat.com https://bugzilla.redhat.com/2310528
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2268017
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2310527
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2310528
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2310529
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-45290
Show all 30 references
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-34155
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-34156
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-34158
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2025-3773.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2024:8038
- github.com https://github.com/golang/go/commit/2092294f2b097c5828f4eace6c98a322c1510b01 (go1.22.7)
- github.com https://github.com/golang/go/commit/fa8ff1a46deb6c816304441ec6740ec112e19012 (go1.23.1)
- go.dev https://go.dev/cl/611239
- go.dev https://go.dev/issue/69139
- groups.google.com https://groups.google.com/g/golang-announce/c/K-cEzDeCtpc
- groups.google.com https://groups.google.com/g/golang-dev/c/S9POB9NCTdk
- linux.oracle.com https://linux.oracle.com/cve/CVE-2024-34156.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-3773.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-34156
- pkg.go.dev https://pkg.go.dev/vuln/GO-2024-3106
- security.netapp.com https://security.netapp.com/advisory/ntap-20240926-0004/
- ubuntu.com https://ubuntu.com/security/notices/USN-7081-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7109-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7111-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-34156
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.