CVE-2024-34156: Stack-exhaustion denial of service in Go encoding/gob
CVE-2024-34156 is an uncontrolled-recursion vulnerability in the Go standard library's encoding/gob package. When Decoder.Decode processes a crafted message containing deeply nested structures, recursive decoding can exhaust the stack and cause a panic, terminating the affected application. Applications that decode attacker-controlled gob messages may consequently be vulnerable to remote denial of service. The vulnerability is a follow-up to CVE-2022-30635.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can crash an affected application and render its services unavailable. The vulnerability has a high availability impact, with no identified confidentiality or integrity impact. It is rated CVSS 3.1 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H); actual network reachability depends on how the application exposes gob decoding.
Mitigation
If you can’t patch tonight, do this now.
Until fixed software can be deployed, do not decode gob data from untrusted sources. Restrict access to interfaces that accept gob-encoded messages to authenticated and trusted clients, enforce network segmentation, and apply application-layer input-size and structural-depth limits before invoking Decoder.Decode where feasible. Isolate decoder workloads and configure process supervision to reduce service disruption from a panic.
Remediation
Patch, then assume compromise.
Update to a Go release or vendor package containing the fix. For the Go 1.23 branch, update to version 1.23.1 or a later patched release, then rebuild and redeploy affected Go applications. For packaged applications and container images, install the applicable vendor security update. Examples include RHEL 9 Grafana 10.2.6-7.el9_5 and RHEL 8 osbuild-composer 101-2.el8_10. Account for vendor backports when assessing exposure; an older upstream version number alone does not establish that a vendor package remains vulnerable.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2024-34156 exploited in the wild?
- As of Nov 25, 2026, Mallory has no reports of CVE-2024-34156 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-34156?
- As of Nov 25, 2026, Mallory has found no public exploit for CVE-2024-34156.
- Is there a patch for CVE-2024-34156?
- Update to a Go release or vendor package containing the fix. For the Go 1.23 branch, update to version 1.23.1 or a later patched release, then rebuild and redeploy affected Go applications.
- How severe is CVE-2024-34156?
- CVE-2024-34156 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 1.4% (73rd percentile) as of Nov 25, 2026.
Recent activity
56 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.