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

Stack exhaustion in Decoder.Decode in encoding/gob

— Microsoft

Affected Software

35 affected componentsFixes available
Microsoft cbl2 golang 1.18.8-10
Microsoft cbl2 golang 1.18.8-8
Microsoft cbl2 golang 1.18.8-9
debian/golang-1.19*
debian/golang-1.19<=1.19.8-2
alpine/go<1.22.7-r0
1.22.7-r0
alpine/go<1.23.1-r0
1.23.1-r0
alpine/go<1.23.1-r0
1.23.1-r0
alpine/go<1.23.1-r0
1.23.1-r0
alpine/go<1.23.1-r0
1.23.1-r0
IBM SevOne Network Performance Management<=7.0.0 - 8.2.2
go/stdlib<1.22.7
1.22.7
go/stdlib>=1.23.0-0<1.23.1
1.23.1
ubuntu/golang-1.10*
ubuntu/golang-1.18<1.18.1-1ubuntu1~16.04.6+esm1
1.18.1-1ubuntu1~16.04.6+esm1
ubuntu/golang-1.10*
ubuntu/golang-1.6*
ubuntu/golang-1.13*
ubuntu/golang-1.10*
ubuntu/golang-1.13*
ubuntu/golang-1.16*
ubuntu/golang-1.18<1.18.1-1ubuntu1~18.04.4+esm1
1.18.1-1ubuntu1~18.04.4+esm1
ubuntu/golang-1.8*
ubuntu/golang-1.18<1.18.1-1ubuntu1~20.04.3
1.18.1-1ubuntu1~20.04.3
ubuntu/golang-1.22<1.22.2-2~20.04.2
1.22.2-2~20.04.2
ubuntu/golang-1.13*
ubuntu/golang-1.16*
ubuntu/golang-1.20*
ubuntu/golang-1.17<1.17.13-3ubuntu1.3
1.17.13-3ubuntu1.3
ubuntu/golang-1.18<1.18.1-1ubuntu1.2
1.18.1-1ubuntu1.2
ubuntu/golang-1.20*
ubuntu/golang-1.22<1.22.2-2~22.04.2
1.22.2-2~22.04.2
ubuntu/golang-1.13*
ubuntu/golang-1.21*
ubuntu/golang-1.22<1.22.2-2ubuntu0.3
1.22.2-2ubuntu0.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.22.7-r0
  2. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.23.1-r0
  3. Upgrade

    Upgrade go/stdlib to a version that resolves this vulnerability.

    Fixed in 1.22.7
  4. Upgrade

    Upgrade go/stdlib to a version that resolves this vulnerability.

    Fixed in 1.23.1
  5. Upgrade

    Upgrade ubuntu/golang-1.18 to a version that resolves this vulnerability.

    Fixed in 1.18.1-1ubuntu1~16.04.6+esm1
  6. Upgrade

    Upgrade ubuntu/golang-1.18 to a version that resolves this vulnerability.

    Fixed in 1.18.1-1ubuntu1~18.04.4+esm1
  7. Upgrade

    Upgrade ubuntu/golang-1.18 to a version that resolves this vulnerability.

    Fixed in 1.18.1-1ubuntu1~20.04.3
  8. Upgrade

    Upgrade ubuntu/golang-1.22 to a version that resolves this vulnerability.

    Fixed in 1.22.2-2~20.04.2
  9. Upgrade

    Upgrade ubuntu/golang-1.17 to a version that resolves this vulnerability.

    Fixed in 1.17.13-3ubuntu1.3
  10. Upgrade

    Upgrade ubuntu/golang-1.18 to a version that resolves this vulnerability.

    Fixed in 1.18.1-1ubuntu1.2
  11. Upgrade

    Upgrade ubuntu/golang-1.22 to a version that resolves this vulnerability.

    Fixed in 1.22.2-2~22.04.2
  12. Upgrade

    Upgrade ubuntu/golang-1.22 to a version that resolves this vulnerability.

    Fixed in 1.22.2-2ubuntu0.3

Event History

Sep 6, 2024
Advisory Published
via OSV·07:15 PM
Data Sourced
via OSV·07:15 PM
DescriptionAffected Software
CVE Published
via MITRE·08:42 PM
Data Sourced
via MITRE·08:42 PM
DescriptionWeakness
Data Sourced
via OSV·09:15 PM
Severity
Data Sourced
via NVD·09:15 PM
Description
Data Sourced
via Red Hat·09:20 PM
DescriptionSeverityAffected Software
Sep 9, 2024
Data Sourced
via NVD·03:35 PM
Severity
Jan 6, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Feb 4, 2025
Updated
via IBM·12:00 AM
Affected Software
Mar 7, 2025
Updated
via IBM·12:00 AM
Affected Software
Mar 12, 2025
Updated
via IBM·12:00 AM
Affected Software
Sep 3, 2025
Data Sourced
via Microsoft·09:38 PM
DescriptionSeverityWeaknessAffected Software
Sep 26, 2026
Updated
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

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