Skip to content
CVE PROGRAM SOURCE RECORD7.5 High

CVE-2024-24786

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

Description

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

google.golang.org/protobuf google.golang.org/protobuf/encoding/protojson

Default version status: unaffected

  • 0 to < 1.33.0affected

google.golang.org/protobuf google.golang.org/protobuf/internal/encoding/json

Default version status: unaffected

  • 0 to < 1.33.0affected

References