{"answers":{"affected":"2 open source packages ship an affected version, including golang and stdlib.","exploited":"There is no known exploitation of CVE-2024-34156 in the wild and no public exploit code.","fix":"Upgrade golang to a fixed version for your release line: 1.22.7 or 1.23.1.","what":"CVE-2024-34156 is a high-severity denial of service vulnerability in encoding/gob, published on 6 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-34156 and fix it if it is affected.\n\nWhat it is: CVE-2024-34156 is a high-severity denial of service vulnerability in encoding/gob, published on 6 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-34156 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- golang (Bitnami): affected all versions; fixed in 1.22.7, 1.23.1\n- stdlib (Go): affected all versions; fixed in 1.22.7, 1.23.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-34156/ (Markdown: https://insights.sbomify.com/CVE-2024-34156/index.md)","id":"CVE-2024-34156","markdown":"https://insights.sbomify.com/CVE-2024-34156/index.md","name":"CVE-2024-34156","record":{"aliases":["ALSA-2024:11216","ALSA-2024:11217","ALSA-2024:6946","ALSA-2024:6947","ALSA-2024:7135","ALSA-2024:7136","ALSA-2024:7204","ALSA-2024:8110","ALSA-2024:8111","ALSA-2024:9456","ALSA-2024:9472","ALSA-2025:3773","AZL-78970","AZL-98634","BELL-CVE-2024-34156","BIT-golang-2024-34156","CLSA-2025-1762420153","CLSA-2025-1762868093","DEBIAN-CVE-2024-34156","ECHO-0684-a311-5067","GHSA-crqm-pwhx-j97f","GO-2024-3106","MINI-8gj7-h6vw-783c","MINI-8mxr-h494-43jg","MINI-cjmx-g5r8-63r6","OESA-2024-2503","OESA-2024-2504","OESA-2024-2505","OESA-2024-2506","RHEA-2024:4866","RHSA-2024:11216","RHSA-2024:11217","RHSA-2024:6946","RHSA-2024:6947","RHSA-2024:7102","RHSA-2024:7103","RHSA-2024:7135","RHSA-2024:7136","RHSA-2024:7202","RHSA-2024:7203","RHSA-2024:7204","RHSA-2024:7205","RHSA-2024:7206","RHSA-2024:7207","RHSA-2024:7208","RHSA-2024:7261","RHSA-2024:7350","RHSA-2024:7351","RHSA-2024:7449","RHSA-2024:7455","RHSA-2024:7456","RHSA-2024:7485","RHSA-2024:7487","RHSA-2024:7488","RHSA-2024:7769","RHSA-2024:7791","RHSA-2024:7792","RHSA-2024:7793","RHSA-2024:7794","RHSA-2024:7818","RHSA-2024:7819","RHSA-2024:7820","RHSA-2024:7821","RHSA-2024:7822","RHSA-2024:7852","RHSA-2024:8110","RHSA-2024:8111","RHSA-2024:9456","RHSA-2024:9472","RHSA-2025:0203","RHSA-2025:1190","RLSA-2024:11216","RLSA-2024:11217","RLSA-2024:6946","RLSA-2024:6947","RLSA-2024:7135","RLSA-2024:7136","RLSA-2024:7204","RLSA-2024:8110","RLSA-2024:8111","RLSA-2024:9456","RLSA-2024:9472","UBUNTU-CVE-2024-34156","openSUSE-SU-2024:14375-1","openSUSE-SU-2024:14520-1","openSUSE-SU-2025:15505-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go standard library","requires_auth":"none","summary":"Attackers can cause a panic and denial of service by sending deeply nested structures to the Go encoding/gob decoder.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Go","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[],"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.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Bitnami","Go","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:openstack:16.2::el8","Red Hat:openstack:17.1::el9","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.4::appstream","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_eus:8.8::appstream","Red Hat:rhel_eus:9.2::appstream","Red Hat:rhel_tus:8.4::appstream","Red Hat:rhel_tus:8.6::appstream","Red Hat:service_interconnect:1.4::el8","Red Hat:service_interconnect:1.4::el9","Rocky Linux:8","Rocky Linux:9","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Stack exhaustion in Decoder.Decode in encoding/gob","id":"CVE-2024-34156","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":763,"n_references":4,"next":{"headline":"reserved but not needed","id":"CVE-2024-34157"},"packages":[{"ecosystem":"Bitnami","fixed":["1.22.7","1.23.1"],"introduced":["0","1.23.0-0"],"last_affected":[],"package":"golang","purl":"pkg:bitnami/golang","source":"BIT-golang-2024-34156"},{"ecosystem":"Go","fixed":["1.22.7","1.23.1"],"introduced":["0","1.23.0-0"],"last_affected":[],"package":"stdlib","purl":"pkg:golang/stdlib","source":"GO-2024-3106"},{"ecosystem":"AlmaLinux:8","fixed":["3.4.1-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git-lfs","purl":"pkg:rpm/almalinux/git-lfs","source":"ALSA-2024:7135"},{"ecosystem":"AlmaLinux:9","fixed":["1:1.4.0-6.el9_4"],"introduced":["0"],"last_affected":[],"package":"containernetworking-plugins","purl":"pkg:rpm/almalinux/containernetworking-plugins","source":"ALSA-2024:8110"},{"ecosystem":"AlmaLinux:9","fixed":["1:1.5.1-3.el9_5"],"introduced":["0"],"last_affected":[],"package":"containernetworking-plugins","purl":"pkg:rpm/almalinux/containernetworking-plugins","source":"ALSA-2024:11216"},{"ecosystem":"AlmaLinux:9","fixed":["1.24.1-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"delve","purl":"pkg:rpm/almalinux/delve","source":"ALSA-2025:3773"},{"ecosystem":"AlmaLinux:9","fixed":["3.4.1-4.el9_4"],"introduced":["0"],"last_affected":[],"package":"git-lfs","purl":"pkg:rpm/almalinux/git-lfs","source":"ALSA-2024:7136"},{"ecosystem":"AlmaLinux:9","fixed":["1.23.6-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"go-toolset","purl":"pkg:rpm/almalinux/go-toolset","source":"ALSA-2025:3773"},{"ecosystem":"AlmaLinux:9","fixed":["1.23.6-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"golang","purl":"pkg:rpm/almalinux/golang","source":"ALSA-2025:3773"},{"ecosystem":"AlmaLinux:9","fixed":["1.23.6-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"golang-bin","purl":"pkg:rpm/almalinux/golang-bin","source":"ALSA-2025:3773"},{"ecosystem":"AlmaLinux:9","fixed":["1.23.6-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"golang-docs","purl":"pkg:rpm/almalinux/golang-docs","source":"ALSA-2025:3773"},{"ecosystem":"AlmaLinux:9","fixed":["1.23.6-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"golang-misc","purl":"pkg:rpm/almalinux/golang-misc","source":"ALSA-2025:3773"},{"ecosystem":"AlmaLinux:9","fixed":["1.23.6-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"golang-race","purl":"pkg:rpm/almalinux/golang-race","source":"ALSA-2025:3773"},{"ecosystem":"AlmaLinux:9","fixed":["1.23.6-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"golang-src","purl":"pkg:rpm/almalinux/golang-src","source":"ALSA-2025:3773"},{"ecosystem":"AlmaLinux:9","fixed":["1.23.6-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"golang-tests","purl":"pkg:rpm/almalinux/golang-tests","source":"ALSA-2025:3773"},{"ecosystem":"AlmaLinux:9","fixed":["9.2.10-17.el9_4"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/almalinux/grafana","source":"ALSA-2024:6947"},{"ecosystem":"AlmaLinux:9","fixed":["5.1.1-3.el9_4"],"introduced":["0"],"last_affected":[],"package":"grafana-pcp","purl":"pkg:rpm/almalinux/grafana-pcp","source":"ALSA-2024:6946"},{"ecosystem":"AlmaLinux:9","fixed":["5.1.1-9.el9_5"],"introduced":["0"],"last_affected":[],"package":"grafana-pcp","purl":"pkg:rpm/almalinux/grafana-pcp","source":"ALSA-2024:9472"},{"ecosystem":"AlmaLinux:9","fixed":["9.2.10-17.el9_4"],"introduced":["0"],"last_affected":[],"package":"grafana-selinux","purl":"pkg:rpm/almalinux/grafana-selinux","source":"ALSA-2024:6947"},{"ecosystem":"AlmaLinux:9","fixed":["101-2.el9_4.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer","purl":"pkg:rpm/almalinux/osbuild-composer","source":"ALSA-2024:7204"},{"ecosystem":"AlmaLinux:9","fixed":["118-2.el9_5.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer","purl":"pkg:rpm/almalinux/osbuild-composer","source":"ALSA-2024:9456"},{"ecosystem":"AlmaLinux:9","fixed":["101-2.el9_4.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core","purl":"pkg:rpm/almalinux/osbuild-composer-core","source":"ALSA-2024:7204"},{"ecosystem":"AlmaLinux:9","fixed":["118-2.el9_5.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core","purl":"pkg:rpm/almalinux/osbuild-composer-core","source":"ALSA-2024:9456"},{"ecosystem":"AlmaLinux:9","fixed":["101-2.el9_4.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-worker","purl":"pkg:rpm/almalinux/osbuild-composer-worker","source":"ALSA-2024:7204"},{"ecosystem":"AlmaLinux:9","fixed":["118-2.el9_5.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-worker","purl":"pkg:rpm/almalinux/osbuild-composer-worker","source":"ALSA-2024:9456"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.14.5-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"skopeo","purl":"pkg:rpm/almalinux/skopeo","source":"ALSA-2024:8111"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.16.1-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"skopeo","purl":"pkg:rpm/almalinux/skopeo","source":"ALSA-2024:11217"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.14.5-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"skopeo-tests","purl":"pkg:rpm/almalinux/skopeo-tests","source":"ALSA-2024:8111"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.16.1-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"skopeo-tests","purl":"pkg:rpm/almalinux/skopeo-tests","source":"ALSA-2024:11217"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.4.1-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git-lfs","purl":"pkg:rpm/redhat/git-lfs","source":"RHSA-2024:7135"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.4.1-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git-lfs-debuginfo","purl":"pkg:rpm/redhat/git-lfs-debuginfo","source":"RHSA-2024:7135"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.4.1-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git-lfs-debugsource","purl":"pkg:rpm/redhat/git-lfs-debugsource","source":"RHSA-2024:7135"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:1.4.0-6.el9_4"],"introduced":["0"],"last_affected":[],"package":"containernetworking-plugins","purl":"pkg:rpm/redhat/containernetworking-plugins","source":"RHSA-2024:8110"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:1.5.1-3.el9_5"],"introduced":["0"],"last_affected":[],"package":"containernetworking-plugins","purl":"pkg:rpm/redhat/containernetworking-plugins","source":"RHSA-2024:11216"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:1.4.0-6.el9_4"],"introduced":["0"],"last_affected":[],"package":"containernetworking-plugins-debuginfo","purl":"pkg:rpm/redhat/containernetworking-plugins-debuginfo","source":"RHSA-2024:8110"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:1.5.1-3.el9_5"],"introduced":["0"],"last_affected":[],"package":"containernetworking-plugins-debuginfo","purl":"pkg:rpm/redhat/containernetworking-plugins-debuginfo","source":"RHSA-2024:11216"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:1.4.0-6.el9_4"],"introduced":["0"],"last_affected":[],"package":"containernetworking-plugins-debugsource","purl":"pkg:rpm/redhat/containernetworking-plugins-debugsource","source":"RHSA-2024:8110"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:1.5.1-3.el9_5"],"introduced":["0"],"last_affected":[],"package":"containernetworking-plugins-debugsource","purl":"pkg:rpm/redhat/containernetworking-plugins-debugsource","source":"RHSA-2024:11216"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.4.1-4.el9_4"],"introduced":["0"],"last_affected":[],"package":"git-lfs","purl":"pkg:rpm/redhat/git-lfs","source":"RHSA-2024:7136"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.4.1-4.el9_4"],"introduced":["0"],"last_affected":[],"package":"git-lfs-debuginfo","purl":"pkg:rpm/redhat/git-lfs-debuginfo","source":"RHSA-2024:7136"}],"prev":{"headline":"Stack exhaustion in all Parse functions in go/parser","id":"CVE-2024-34155"},"products":["encoding/gob"],"published":"2024-09-06","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-26","vendors":["Go standard library"]},"summary":"Attackers can cause a panic and denial of service by sending deeply nested structures to the Go encoding/gob decoder.","url":"https://insights.sbomify.com/CVE-2024-34156/"}