CVE-2024-34156: Stack exhaustion in Decoder.Decode in encoding/gob

Published Sep 6, 2024
·
Updated

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.

Other sources

Golang Go is vulnerable to a denial of service, caused by a stack exhaustion in Decoder.Decode. By sending a specially crafted request, a remote attacker could exploit this vulnerability to cause a denial of service condition.

IBM

Affected Software

3 affected componentsFixes available
debian/golang-1.15<=1.15.15-1~deb11u4
debian/golang-1.19<=1.19.8-2
debian/golang-1.23
1.23.8-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/golang-1.23 to a version that resolves this vulnerability.

    Fixed in 1.23.8-1

Event History

Sep 6, 2024
CVE Published
via MITRE·08:42 PM
Data Sourced
via MITRE·08:42 PM
DescriptionWeakness
Data Sourced
via NVD·09:15 PM
DescriptionSeverity
Data Sourced
via Red Hat·09:20 PM
DescriptionSeverityAffected Software
Nov 22, 2024
Data Sourced
via Ubuntu·03:01 PM
RemedyDescriptionSeverityAffected Software
Feb 4, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Feb 26, 2025
Data Sourced
via Debian·03:18 PM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-34156?

CVE-2024-34156 is considered to be a medium severity vulnerability due to its potential to cause application crashes.

2

How do I fix CVE-2024-34156?

To remediate CVE-2024-34156, upgrade to golang-1.22 version 1.22.11-1 or golang-1.23 version 1.23.5-1.

3

Which software is affected by CVE-2024-34156?

CVE-2024-34156 affects IBM Concert Software versions up to 1.0.3 and specific versions of golang in Debian.

4

What mitigation strategies exist for CVE-2024-34156?

Mitigation can be achieved by limiting the depth of nested structures in messages processed by Decoder.Decode.

5

Is CVE-2024-34156 a follow-up to any previous vulnerabilities?

Yes, CVE-2024-34156 is a follow-up to CVE-2022-30635, relating to similar stack exhaustion issues.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2024-34156 - Stack exhaustion in Decoder.Decode in encoding/gob - SecAlerts