CVE-2024-24786: Infinite loop in JSON unmarshaling in google.golang.org/protobuf

Published Mar 5, 2024
·
Updated

Last updated 18 September 2024

Other sources

The protojson.Unmarshal function can enter an infinite loop when unmarshaling certain forms of invalid JSON. This condition can occur when unmarshaling into a message which contains a google.protobuf.Any value, or when the UnmarshalOptions.DiscardUnknown option is set.

— Debian

Affected Software

31 affected componentsFixes available
go/google.golang.org/protobuf/internal/encoding/json<1.33.0
1.33.0
go/google.golang.org/protobuf/encoding/protojson<1.33.0
1.33.0
go/google.golang.org/protobuf<1.33.0
1.33.0
F5 BIG-IP Next Central Manager>=20.2.0<=20.2.1
F5 BIG-IP Next SPK>=1.7.0<=1.9.2
F5 BIG-IP Next CNF>=1.1.0<=1.3.1
F5 F5OS-A=1.7.0, >=1.5.1<=1.5.2
1.5.3
F5 F5OS-C>=1.6.0<=1.6.2
IBM watsonx.data<=2.2- 2.3.1
debian/golang-google-protobuf*
debian/golang-google-protobuf<1.33.0-1
1.33.0-1
debian/golang-google-protobuf<1.33.0-1
1.33.0-1
alpine/buildah<1.35.4-r0
1.35.4-r0
alpine/buildah<1.35.4-r0
1.35.4-r0
alpine/buildah<1.35.4-r0
1.35.4-r0
alpine/buildah<1.35.4-r0
1.35.4-r0
alpine/buildah<1.35.4-r0
1.35.4-r0
redhat/google.golang.org/protobuf<1.33.0
1.33.0
debian/golang-google-protobuf<=1.28.1-3
1.33.0-1
ubuntu/google-osconfig-agent*
ubuntu/google-osconfig-agent*
ubuntu/google-osconfig-agent*
ubuntu/golang-google-protobuf*
ubuntu/google-guest-agent<20231004.02-0ubuntu1~22.04.4
20231004.02-0ubuntu1~22.04.4
ubuntu/google-osconfig-agent<20230504.00-0ubuntu1~22.04.1
20230504.00-0ubuntu1~22.04.1
ubuntu/golang-google-protobuf*
ubuntu/google-guest-agent<20240213.00-0ubuntu3.1
20240213.00-0ubuntu3.1
ubuntu/google-osconfig-agent<20240320.00-0ubuntu1~24.04.1
20240320.00-0ubuntu1~24.04.1
ubuntu/golang-google-protobuf*
ubuntu/golang-google-protobuf*
ubuntu/golang-google-protobuf*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/google.golang.org/protobuf/internal/encoding/json to a version that resolves this vulnerability.

    Fixed in 1.33.0
  2. Upgrade

    Upgrade go/google.golang.org/protobuf/encoding/protojson to a version that resolves this vulnerability.

    Fixed in 1.33.0
  3. Upgrade

    Upgrade go/google.golang.org/protobuf to a version that resolves this vulnerability.

    Fixed in 1.33.0
  4. Upgrade

    Upgrade F5 F5OS to a version that resolves this vulnerability.

    Fixed in 1.5.3
  5. Upgrade

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

    Fixed in 1.33.0-1
  6. Upgrade

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

    Fixed in 1.35.4-r0
  7. Upgrade

    Upgrade redhat/google.golang.org/protobuf to a version that resolves this vulnerability.

    Fixed in 1.33.0
  8. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20231004.02-0ubuntu1~22.04.4
  9. Upgrade

    Upgrade ubuntu/google-osconfig-agent to a version that resolves this vulnerability.

    Fixed in 20230504.00-0ubuntu1~22.04.1
  10. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20240213.00-0ubuntu3.1
  11. Upgrade

    Upgrade ubuntu/google-osconfig-agent to a version that resolves this vulnerability.

    Fixed in 20240320.00-0ubuntu1~24.04.1

Event History

Mar 5, 2024
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
DescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
Advisory Published
via OSV·08:24 PM
Data Sourced
via OSV·08:24 PM
DescriptionAffected Software
CVE Published
via MITRE·10:22 PM
Data Sourced
via MITRE·10:22 PM
DescriptionWeakness
Data Sourced
via OSV·11:15 PM
Severity
Data Sourced
via NVD·11:15 PM
Description
Mar 6, 2024
Advisory Published
via GitHub·12:31 AM
Data Sourced
via GitHub·12:31 AM
DescriptionWeaknessAffected Software
Data Sourced
via Red Hat·06:49 AM
DescriptionSeverityAffected Software
Mar 13, 2024
Advisory Published
via GitHub·09:01 PM
Sep 20, 2024
Advisory Published
via F5·08:52 PM
Data Sourced
via F5·08:52 PM
DescriptionSeverityWeaknessAffected Software
Sep 23, 2024
Advisory Published
via F5·11:36 PM
Updated
via F5·11:36 PM
Affected Software
Nov 7, 2024
Data Sourced
via NVD·05:35 PM
Severity
Event
via NVD·05:35 PM
Data Sourced
via GitHub·07:19 PM
Severity
Nov 19, 2024
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Feb 4, 2025
Updated
via IBM·12:00 AM
Affected Software
Feb 20, 2025
Updated
via IBM·12:00 AM
Affected Software
Mar 12, 2025
Updated
via IBM·12:00 AM
Affected Software
Apr 3, 2025
Updated
via IBM·12:00 AM
Affected Software
Apr 8, 2025
Updated
via F5·06:17 AM
Affected Software
Apr 14, 2025
Updated
via IBM·12:00 AM
Affected Software
May 9, 2026
Updated
via IBM·12:00 AM
DescriptionAffected Software
Oct 12, 2026
Updated
via Red Hat·09:40 PM
Severity

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2024-24786?

CVE-2024-24786 is categorized as a denial of service vulnerability due to an infinite loop flaw in the rotojson.Unmarshal function.

2

How do I fix CVE-2024-24786?

To fix CVE-2024-24786, update the affected software packages to version 1.33.0 or later.

3

What software is affected by CVE-2024-24786?

CVE-2024-24786 affects the golang-google-protobuf package and certain versions of F5 and IBM products.

4

Can CVE-2024-24786 be exploited remotely?

Yes, CVE-2024-24786 can be exploited remotely by sending specially crafted requests that trigger the infinite loop.

5

What impact does CVE-2024-24786 have on systems?

The impact of CVE-2024-24786 is that it can cause a denial of service, potentially rendering the affected service unresponsive.

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