CVE-2024-24786

GHSA-8r3f-844c-mc37 · GO-2024-2611 · published 5 Mar 2024 · updated 14 Nov 2026

Infinite loop in JSON unmarshaling in google.golang.org/protobuf

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.33.0 and google.golang.org/protobuf 1.33.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
google.golang.org/protobuf<1.33.01.33.0
go: google.golang.org/protobuf<1.33.01.33.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-24786 severity on Zeptric[![CVE-2024-24786](https://zeptric.io/badge/cve/CVE-2024-24786.svg)](https://zeptric.io/cve/CVE-2024-24786)