ADVISORIES

Vulnerability

CVE-2024-24786

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.

1431 advisories report this vulnerability, across 15 ecosystems.

Advisories in Go

  • GHSA-8r3f-844c-mc37

    Golang protojson.Unmarshal function infinite loop when unmarshaling certain forms of invalid JSON

    Moderate CVE-2024-24786 Go Updated 10 September 2026
  • GO-2024-2611

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

    CVE-2024-24786 Go Updated 23 November 2026

References