NetSight
high7.5

CVE-2024-24786

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

Impact

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 packages

EcosystemPackageAffectedFixed in
gogoogle.golang.org/protobuf< 1.33.01.33.0
gogoogle.golang.org/protobuf/encoding/protojson< 1.33.01.33.0
gogoogle.golang.org/protobuf/internal/encoding/json< 1.33.01.33.0

Weakness classification

References